|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Interface for handling services associated with a Namespace.
Services| Method Summary | |
boolean |
addObserver(java.lang.String clientID)
Adds the client specified by clientID as an observer to the room. |
void |
broadcastNamespace(java.lang.String message,
boolean recurse)
Broadcasts the message to all clients in Rooms within the Namespace. |
void |
broadcastNamespaceButClient(java.lang.String butClientID,
java.lang.String message,
boolean recurse)
Broadcasts the message to all clients in Rooms within the Namespace except for the client ID specified by butClientID. |
boolean |
containsRoom(java.lang.String roomID)
Returns true if the Namespace contains Room roomID. |
java.util.HashSet |
getClientList(boolean recurse)
Returns a HashSet of all Clients by ID in the Namespace. |
java.lang.String |
getFullName()
Returns the fully qualified name of the Namespace. |
java.util.HashSet |
getNamespaceList(boolean recurse)
Returns a HashSet of all immediate child Namespaces of the Namespace. |
int |
getNumClients(boolean recurse)
Returns the number of Clients in the Namespace. |
int |
getNumRooms(boolean recurse)
Returns the number of Rooms in the Namespace. |
java.util.HashSet |
getRoomList(boolean recurse)
Returns a HashSet of all Rooms by ID in the Namespace. |
void |
killRooms(boolean recurse)
Kills all the rooms in the Namespace. |
boolean |
removeObserver(java.lang.String clientID)
Removes the client specified by clientID as an observer from the room. |
| Method Detail |
public void broadcastNamespace(java.lang.String message,
boolean recurse)
message - the message to broadcastrecurse - true to broadcast to any sub-namespaces, false otherwise
public void broadcastNamespaceButClient(java.lang.String butClientID,
java.lang.String message,
boolean recurse)
butClientID - the client ID of the client to be omitted from the broadcastmessage - the message to broadcastrecurse - true to broadcast to any sub-namespaces, false otherwisepublic java.util.HashSet getClientList(boolean recurse)
public int getNumRooms(boolean recurse)
public int getNumClients(boolean recurse)
public java.util.HashSet getNamespaceList(boolean recurse)
recurse - true if recurse to all child Namespacespublic java.util.HashSet getRoomList(boolean recurse)
recurse - true if recurse to all child Namespacespublic boolean containsRoom(java.lang.String roomID)
public java.lang.String getFullName()
public boolean addObserver(java.lang.String clientID)
public boolean removeObserver(java.lang.String clientID)
public void killRooms(boolean recurse)
recurse - true to broadcast to any sub-namespaces, false otherwise
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||