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

Variable Index

 o remoteNode

Constructor Index

 o AbsRemoteNodeClient()
Default and only constructor, calls constructor for UnicastRemoteObject.

Method Index

 o isRunning()
This function is called to determine if the client is alive and well.
 o receiveDataVector(Vector)
This function is called by this client's RemoteNode with the latest remote data.
 o setRemoteNode(RemoteNode)
This function establishes this client's RemoteNode.

Variables

 o remoteNode
 protected RemoteNode remoteNode

Constructors

 o AbsRemoteNodeClient
 public AbsRemoteNodeClient() throws RemoteException
teException
Default and only constructor, calls constructor for UnicastRemoteObject.

Methods

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