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.


Variable Index

 o dataSpec
The dataSpec is a Vector of descriptions for each element of dataVector.
 o dataVector
The dataVector is a Vector of the latest data items.
 o nodes
The nodes is a Vector of all RemoteNodeImpl..

Constructor Index

 o AbsRemoteNodeServer()
This is the default constructor which must be called by any derived class.

Method Index

 o addRemoteNodeClient(RemoteNodeClient)
This method is used to register a RemoteNodeClient with this server.
 o getAvailableDataItems()
Return a of descriptions for each published data item.
 o removeRemoteNodeClient(RemoteNodeClient)
This method unsubscribes a client from the server.
 o updateAllNodes()
This function should be called by all derived classes after new data is placed in dataVectordataVector.

Variables

 o nodes
 protected Vector nodes
The nodes is a Vector of all RemoteNodeImpl. Typically, derived classes will not need to interact with this member.

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

 o dataVector
 protected Vector dataVector
The dataVector is a Vector of the latest data items. Derived classes will need to populate this data member.

Constructors

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

Methods

 o updateAllNodes
 protected void updateAllNodes()
This function should be called by all derived classes after new data is placed in dataVector.

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