All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jdce.impl.rmi.DataBahnImpl

java.lang.Object
   |
   +----java.rmi.server.RemoteObject
           |
           +----java.rmi.server.RemoteServer
                   |
                   +----java.rmi.server.UnicastRemoteObject
                           |
                           +----jdce.impl.rmi.DataBahnImpl

public class DataBahnImpl
extends UnicastRemoteObject
implements RMIDataBahn

Constructor Index

 o DataBahnImpl()
Construct a transient object.
 o DataBahnImpl(String)
Construct a persistently named object.

Method Index

 o broadcast(String)
The broadcast operation routes the message to all the clients who are in the jdceCollaboration mode (achieved by the registration process)
 o broadcastMessage(jdceMessage)
The broadcast operation routes the message to all the clients who are in the jdceCollaboration mode (achieved by the registration process)
 o deregister(String)
The deRegistration process ensures the safe switch over from the jdceCollaboration mode
 o expelClient(String, String)
 o getApplicationServerName()

Operation: ::jdce::coordinator::partyCoordinator::getApplicationServerName.

 o getClientNames()

Operation: ::jdce::coordinator::partyCoordinator::getClientNames.

 o inform(jdceMessage)
The inform operation routes the message to all the clients who are in the jdceCollaboration mode (achieved by the registration process) excluding the client itself.
 o isEmpty()

Operation: ::jdce::coordinator::partyCoordinator::isEmpty.

 o numberOfMembers()

Operation: ::jdce::coordinator::partyCoordinator::numberOfMembers.

 o register(String, RMIClientProxy)
The registration process is a pre-requisite to switching to the Collaboration mode
 o setScheduler(ThreadScheduler)
 o whisper(String, String)
The whisper operation routes the message to a specific client who is in the jdceCollaboration mode.
 o whisperMessage(jdceMessage, String)
The whisper operation routes the message to a specific client who is in the jdceCollaboration mode.

Constructors

 o DataBahnImpl
 public DataBahnImpl(String name) throws RemoteException
Construct a persistently named object.

 o DataBahnImpl
 public DataBahnImpl() throws RemoteException
Construct a transient object.

Methods

 o setScheduler
 public boolean setScheduler(ThreadScheduler scheduler)
 o getApplicationServerName
 public String getApplicationServerName() throws RemoteException

Operation: ::jdce::coordinator::partyCoordinator::getApplicationServerName.

string getApplicationServerName();

 o numberOfMembers
 public int numberOfMembers() throws RemoteException

Operation: ::jdce::coordinator::partyCoordinator::numberOfMembers.

long numberOfMembers();

 o getClientNames
 public synchronized String[] getClientNames() throws RemoteException

Operation: ::jdce::coordinator::partyCoordinator::getClientNames.

::jdce::coordinator::partyCoordinator::sequence_of_string getClientNames();

 o isEmpty
 public boolean isEmpty() throws RemoteException

Operation: ::jdce::coordinator::partyCoordinator::isEmpty.

boolean isEmpty();

 o register
 public int register(String _clientName,
                     RMIClientProxy _clientObjRef) throws RemoteException, jdceRMIBahnException, jdceRMIClientException
The registration process is a pre-requisite to switching to the Collaboration mode

Parameters:
clientName - The name of the Client to be registered
clientObjRef - The Client Object Reference.
Throws: jdceRMIBahnException
If a Bahn exception has occured.
Throws: jdceRMIClientException
If a Client exception has occured.
The following exception types can occur:
   NAME_IN_USE   - a client with a similar name  exists.
   ALREADY_BOUND - The client & the obj Reference have been registered.
   CLIENT_NOT_REGISTERED - The registration process failed. 
 
See Also:
jdceException
 o expelClient
 public boolean expelClient(String _sender,
                            String _expelee) throws RemoteException, jdceRMIBahnException, jdceRMIClientException

Parameters:
sender - The name of the Client invoking expel privilages
expelee - The name of the Client to be expelled from the session
Throws: jdceRMIBahnException
If a Bahn exception has occured.
Throws: jdceRMIClientException
If a Client exception has occured
The following exception types can occur:
   NO_SUCH_CLIENT  - client given does not exist.
   PERMISSION_DENIED - you do not have permission for this operation.
 
See Also:
jdceException
 o deregister
 public boolean deregister(String _clientName) throws jdceRMIClientException, RemoteException
The deRegistration process ensures the safe switch over from the jdceCollaboration mode

Parameters:
clientName - The name of the Client to be deregistered
Throws: jdceRMIClientException
If a Shared Data exception has occured.
The following exception types can occur:
   NO_SUCH_CLIENT  - client does not exist.
   CLIENT_NOT_RELEASED - client was not succesfully dergistered.
   CLIENT_NOT_REGISTERED - The registration process failed. 
 
See Also:
jdceException
 o broadcast
 public boolean broadcast(String _message) throws RemoteException
The broadcast operation routes the message to all the clients who are in the jdceCollaboration mode (achieved by the registration process)

Parameters:
message - The String that needs to be routed.

Operation: ::jdce::coordinator::partyCoordinator::broadcast.

boolean broadcast(
in ::java::lang::Object arg0
);

 o broadcastMessage
 public boolean broadcastMessage(jdceMessage _message) throws RemoteException
The broadcast operation routes the message to all the clients who are in the jdceCollaboration mode (achieved by the registration process)

Parameters:
message - The jdceMessage that needs to be routed.
See Also:
jdceMessage
 o inform
 public boolean inform(jdceMessage _message) throws jdceRMIBahnException, RemoteException
The inform operation routes the message to all the clients who are in the jdceCollaboration mode (achieved by the registration process) excluding the client itself.

Parameters:
message - The jdceMessage that needs to be routed.
Throws: jdceRMIBahnException
If a Shared Data exception has occured.
See Also:
jdceException, jdceMessage
 o whisper
 public boolean whisper(String _message,
                        String _clientName) throws jdceRMIClientException, jdceRMIBahnException, RemoteException
The whisper operation routes the message to a specific client who is in the jdceCollaboration mode.

Parameters:
message - The String that needs to be routed.
clientName - The client to which the info is whispered.
Throws: jdceRMIBahnException
If a Bahn exception has occured.
Throws: jdceRMIClientException
If a Client exception has occured

Operation: ::jdce::coordinator::partyCoordinator::whisper.

boolean whisper(in ::java::lang::Object arg0, in string arg1);

See Also:
jdceException, whisperMessage
 o whisperMessage
 public boolean whisperMessage(jdceMessage _message,
                               String _clientName) throws jdceRMIClientException, jdceRMIBahnException, RemoteException
The whisper operation routes the message to a specific client who is in the jdceCollaboration mode.

Parameters:
message - The jdceMessage that needs to be routed.
clientName - The client to which the info is whispered.
Throws: jdceRMIBahnException
If a Bahn exception has occured.
Throws: jdceRMIClientException
If a Client exception has occured
See Also:
jdceException, jdceMessage

All Packages  Class Hierarchy  This Package  Previous  Next  Index