All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jdce.impl.corba.DataBahnImpl

java.lang.Object
   |
   +----org.omg.CORBA.portable.ObjectImpl
           |
           +----org.omg.CORBA.portable.Skeleton
                   |
                   +----jdce.byteways._dataBahnImplBase
                           |
                           +----jdce.impl.corba.DataBahnImpl

public class DataBahnImpl
extends _dataBahnImplBase
Data Bahn Implementation

Version:
0.5 20 April 1998
Author:
Shrideep Pallickara

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, clientProxy)
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)
Construct a persistently named object.

 o DataBahnImpl
 public DataBahnImpl()
Construct a transient object.

Methods

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

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

string getApplicationServerName();

Overrides:
getApplicationServerName in class _dataBahnImplBase
 o numberOfMembers
 public int numberOfMembers()

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

long numberOfMembers();

Overrides:
numberOfMembers in class _dataBahnImplBase
 o getClientNames
 public synchronized String[] getClientNames()

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

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

Overrides:
getClientNames in class _dataBahnImplBase
 o isEmpty
 public boolean isEmpty()

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

boolean isEmpty();

Overrides:
isEmpty in class _dataBahnImplBase
 o register
 public int register(String _clientName,
                     clientProxy _clientObjRef) throws jdceBahnException, jdceClientException
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: jdceBahnException
If a Bahn exception has occured.
Throws: jdceClientException
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. 
 
Overrides:
register in class _dataBahnImplBase
See Also:
jdceException
 o expelClient
 public boolean expelClient(String _sender,
                            String _expelee) throws jdceBahnException, jdceClientException

Parameters:
sender - The name of the Client invoking expel privilages
expelee - The name of the Client to be expelled from the session
Throws: jdceBahnException
If a Bahn exception has occured.
Throws: jdceClientException
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.
 
Overrides:
expelClient in class _dataBahnImplBase
See Also:
jdceException
 o deregister
 public boolean deregister(String _clientName) throws jdceClientException
The deRegistration process ensures the safe switch over from the jdceCollaboration mode

Parameters:
clientName - The name of the Client to be deregistered
Throws: jdceClientException
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. 
 
Overrides:
deregister in class _dataBahnImplBase
See Also:
jdceException
 o broadcast
 public boolean broadcast(String _message)
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
);

Overrides:
broadcast in class _dataBahnImplBase
 o broadcastMessage
 public boolean broadcastMessage(jdceMessage _message)
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.
Overrides:
broadcastMessage in class _dataBahnImplBase
See Also:
jdceMessage
 o inform
 public boolean inform(jdceMessage _message) throws jdceBahnException
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: jdceBahnException
If a Shared Data exception has occured.
Overrides:
inform in class _dataBahnImplBase
See Also:
jdceException, jdceMessage
 o whisper
 public boolean whisper(String _message,
                        String _clientName) throws jdceClientException, jdceBahnException
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: jdceBahnException
If a Bahn exception has occured.
Throws: jdceClientException
If a Client exception has occured

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

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

Overrides:
whisper in class _dataBahnImplBase
See Also:
jdceException, whisperMessage
 o whisperMessage
 public boolean whisperMessage(jdceMessage _message,
                               String _clientName) throws jdceClientException, jdceBahnException
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: jdceBahnException
If a Bahn exception has occured.
Throws: jdceClientException
If a Client exception has occured
Overrides:
whisperMessage in class _dataBahnImplBase
See Also:
jdceException, jdceMessage

All Packages  Class Hierarchy  This Package  Previous  Next  Index