All Packages Class Hierarchy This Package Previous Next Index
Class com.arcsinc.remotenode.AbsRemoteNodeClient
java.lang.Object
|
+----java.rmi.server.RemoteObject
|
+----java.rmi.server.RemoteServer
|
+----java.rmi.server.UnicastRemoteObject
|
+----com.arcsinc.remotenode.AbsRemoteNodeClient
- public abstract class AbsRemoteNodeClient
- extends UnicastRemoteObject
- implements RemoteNodeClient
The AbsRemoteNodeClient
class is the base class for
receiving remote data from a server.
- See Also:
- RemoteNodeClient, UnicastRemoteObject, RemoteNode
-
remoteNode
-
-
AbsRemoteNodeClient()
- Default and only constructor, calls constructor for UnicastRemoteObject.
-
isRunning()
- This function is called to determine if the client is alive and
well.
-
receiveDataVector(Vector)
- This function is called by this client's
RemoteNode
with the latest remote data.
-
setRemoteNode(RemoteNode)
- This function establishes this client's RemoteNode.
remoteNode
protected RemoteNode remoteNode
AbsRemoteNodeClient
public AbsRemoteNodeClient() throws RemoteException
- teException
- Default and only constructor, calls constructor for UnicastRemoteObject.
setRemoteNode
public boolean setRemoteNode(RemoteNode node)
- This function establishes this client's RemoteNode. This
parameter will be to control the remote data operations.
- Parameters:
- node - This client's RemoteNode.
- Returns:
- true or false.
isRunning
public boolean isRunning() throws RemoteException
- This function is called to determine if the client is alive and
well. If either the function returns
false
a
RemoteException
is thrown, the client is declared
dead and its associated RemoteNode
is deleted.
- Returns:
- true or false
- Throws: RemoteException
- if there is a network failure.
receiveDataVector
public abstract boolean receiveDataVector(Vector dataVec) throws RemoteException
- This function is called by this client's
RemoteNode
with the latest remote data. This function normally returns
true
. This is an abstract function which must be
overridden.
- Parameters:
- dataVec - vector of the latest data.
- Returns:
- true or false
- Throws: RemoteException
- if there is a network failure.
All Packages Class Hierarchy This Package Previous Next Index