All Packages Class Hierarchy This Package Previous Next Index
Class com.arcsinc.remotenode.AbsRemoteNodeServer
java.lang.Object
|
+----java.rmi.server.RemoteObject
|
+----java.rmi.server.RemoteServer
|
+----java.rmi.server.UnicastRemoteObject
|
+----com.arcsinc.remotenode.AbsRemoteNodeServer
- public abstract class AbsRemoteNodeServer
- extends UnicastRemoteObject
- implements RemoteNodeServer
The AbsRemoteNodeServer
class is the base class for a
remote node server.
-
dataSpec
- The dataSpec is a
Vector
of descriptions for each
element of dataVector
.
-
dataVector
- The dataVector is a
Vector
of the latest data items.
-
nodes
- The nodes is a
Vector
of all
RemoteNodeImpl
..
-
AbsRemoteNodeServer()
- This is the default constructor which must be called by any
derived class.
-
addRemoteNodeClient(RemoteNodeClient)
- This method is used to register a
RemoteNodeClient
with this server.
-
getAvailableDataItems()
- Return a of descriptions for each published data item.
-
removeRemoteNodeClient(RemoteNodeClient)
- This method unsubscribes a client from the server.
-
updateAllNodes()
- This function should be called by all derived classes after new
data is placed in
dataVectordataVector
.
nodes
protected Vector nodes
- The nodes is a
Vector
of all
RemoteNodeImpl
. Typically, derived classes will
not need to interact with this member.
dataSpec
protected Vector dataSpec
- The dataSpec is a
Vector
of descriptions for each
element of dataVector
. Derived classes will need
to populate this data member.
dataVector
protected Vector dataVector
- The dataVector is a
Vector
of the latest data items.
Derived classes will need to populate this data member.
AbsRemoteNodeServer
public AbsRemoteNodeServer() throws RemoteException
- This is the default const>
- This is the default constructor which must be called by any
derived class.
- Throws: RemoteException
- if there is a network failure.
updateAllNodes
protected void updateAllNodes()
- This function should be called by all derived classes after new
data is placed in
dataVector
.
getAvailableDataItems
public abstract Vector getAvailableDataItems() throws RemoteException
- Return a of descriptions for each published data item.
The standard definition for this description is
ExtVariableSpec
.
- Returns:
- vector of descriptions
- Throws: RemoteException
- if there is a network failure.
addRemoteNodeClient
public RemoteNode addRemoteNodeClient(RemoteNodeClient nodeClient) throws RemoteException
- This method is used to register a
RemoteNodeClient
with this server. Typically, this method is called by the
client. This method will need to be overridden.
- Parameters:
- nodeClient - The client that is to subscribe to this data.
- Returns:
- The assigned RemoteNode
- Throws: RemoteException
- if there is a network failure.
removeRemoteNodeClient
public boolean removeRemoteNodeClient(RemoteNodeClient nodeClient) throws RemoteException
- This method unsubscribes a client from the server.
- Parameters:
- nodeClient - The client that is to subscribe to this data.
- Returns:
- success (true) or failure (false)
- Throws: RemoteException
- if there is a network failure.
All Packages Class Hierarchy ="tree.html">Class Hierarchy This Package Previous Next Index