|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omg.CORBA.portable.ObjectImpl | +--org.omg.CORBA.DynamicImplementation | +--ChatApp._ChatRegistryImplBase | +--ChatApp.ChatRegistryServant
This class represents the server's registry for maintaining clients IDs. The ChatRegistryServant extends the _ChatRegistryImplBase which implements the ChatRegistry interface The ChatRegistry has a set of methods that are remotely invoked by the ChatClient objects using CORBA is the network middleware.
Constructor Summary | |
ChatRegistryServant(org.omg.CORBA.ORB orb)
Constructs a new ChatRegistryServant. |
Method Summary | |
void |
broadcast(byte[] Message,
java.lang.String sourceID)
Broadcasts a message from one registered client to all other registered clients on the Chat Server. |
void |
register(java.lang.String clientID)
Registers a client to the chat server. |
void |
sendPrivateMessage(byte[] Message,
java.lang.String SourceID,
java.lang.String DestID)
Sends a private message from one registered user to another registered user. |
void |
unregister(java.lang.String clientID)
Unregisters a client from the server |
Methods inherited from class ChatApp._ChatRegistryImplBase |
_ids,
invoke |
Methods inherited from class org.omg.CORBA.portable.ObjectImpl |
_create_request,
_create_request,
_duplicate,
_get_delegate,
_get_domain_managers,
_get_interface_def,
_get_policy,
_hash,
_invoke,
_is_a,
_is_equivalent,
_is_local,
_non_existent,
_orb,
_release,
_releaseReply,
_request,
_request,
_servant_postinvoke,
_servant_preinvoke,
_set_delegate,
_set_policy_override,
equals,
hashCode,
toString |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ChatRegistryServant(org.omg.CORBA.ORB orb)
orb
- The CORBA object to fetch objects from the CORBA NameServiceMethod Detail |
public void register(java.lang.String clientID)
clientID
- The ID of the registering clientpublic void unregister(java.lang.String clientID)
clientID
- The ID of the unregistrating client.
key.public void sendPrivateMessage(byte[] Message, java.lang.String SourceID, java.lang.String DestID)
Message
- The message from the clientSourceID
- The ID of the senderDestID
- The ID of the receiverpublic void broadcast(byte[] Message, java.lang.String sourceID)
Message
- The encrypted messagesourceID
- The ID of the sender.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |