All Packages Class Hierarchy This Package Previous Next Index
Class engine.Bind
java.lang.Object
|
+----java.rmi.server.RemoteObject
|
+----java.rmi.server.RemoteServer
|
+----java.rmi.server.UnicastRemoteObject
|
+----engine.Bind
- public class Bind
- extends UnicastRemoteObject
- implements Compute
RMI server class which implements the remote method executeTask
that carries out the task of connecting to the database, executing
the query and returning the results to the calling client class
-
Bind()
- Constructor
-
executeTask(String)
- Method called by remote object to execute query
-
main(String[])
- Main for Bind, executed when the server is started up.
Bind
public Bind() throws RemoteException
- Constructor
- Throws: RemoteException
- cant connect
executeTask
public Object executeTask(String string)
- Method called by remote object to execute query
- Parameters:
- string - Query to be executed on the database
- Returns:
- Object Result of the execution of the query
main
public static void main(String args[])
- Main for Bind, executed when the server is started up. The main
creates an object of type Bind and registers it with the rmiregistry
so that an rmi client can look up this object and call its method
that work with the database
- Parameters:
- args[] - Command line arguments
All Packages Class Hierarchy This Package Previous Next Index