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


Constructor Index

 o Bind()
Constructor

Method Index

 o executeTask(String)
Method called by remote object to execute query
 o main(String[])
Main for Bind, executed when the server is started up.

Constructors

 o Bind
 public Bind() throws RemoteException
Constructor

Throws: RemoteException
cant connect

Methods

 o 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
 o 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