|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Interface for handling services associated with Clients.
Services| Method Summary | |
void |
broadcastClient(java.lang.String message)
Broadcasts to a client. |
java.util.HashMap |
getAllAttributes()
Returns a HashMap keyed by scope containing HashMaps keyed by Attribute name of all of the attributes. |
java.util.HashMap |
getAllAttributes(java.lang.String fqRoomID)
Returns a HashMap containing all of the attributes for the client. |
java.util.HashMap |
getAllSharedAttributes()
Returns a HashMap keyed by scope containing HashMaps keyed by Attribute name of all of the attributes flagged as shared for the client. |
java.lang.Object |
getAttribute(java.lang.String name,
java.lang.String fqRoomID)
Returns objects from the clients . |
java.lang.String |
getClientID()
Get the ID for the client. |
long |
getConnectToServerTime()
Retrieves the time the Client connected to the server. |
java.lang.String |
getIP()
Gets the ip of this client. |
java.util.HashSet |
getRoomList()
Returns a list of RoomID's of Rooms the Client is in. |
java.util.HashMap |
getSharedAttributes(java.lang.String fqRoomID)
Returns a HashMap containing the attributes flagged as shared for the client for the Room fqRoomID. |
boolean |
isDying()
Returns true if the client has been shutdown. |
boolean |
isLoggedIn()
Gets if this Client has been logged in set by AttributePersistence. |
int |
joinRoom(java.lang.String roomID)
Attempts to have client join room with ID roomID. |
void |
killClient()
Removes the client from the server. |
int |
leaveRoom(java.lang.String roomID)
Removes the client from the room with ID roomID. |
int |
loginRoom(java.lang.String roomID,
java.util.ArrayList args)
Attempts to have client join room with ID roomID. |
void |
removeAttribute(java.lang.String name,
java.lang.String fqRoomID)
Removes an object from the clients . |
void |
setAttribute(java.lang.String name,
java.lang.Object obj,
java.lang.String fqRoomID,
int flags)
Adds an object to the client's custom . |
| Method Detail |
public int loginRoom(java.lang.String roomID,
java.util.ArrayList args)
throws org.moock.unity.core.exception.RoomNotFoundException,
org.moock.unity.core.exception.NamespaceNotFoundException
public int joinRoom(java.lang.String roomID)
throws org.moock.unity.core.exception.RoomNotFoundException,
org.moock.unity.core.exception.NamespaceNotFoundException
public int leaveRoom(java.lang.String roomID)
throws org.moock.unity.core.exception.RoomNotFoundException,
org.moock.unity.core.exception.NamespaceNotFoundException
public void broadcastClient(java.lang.String message)
message - the message to sendpublic java.lang.String getClientID()
public void killClient()
public java.util.HashSet getRoomList()
public void setAttribute(java.lang.String name,
java.lang.Object obj,
java.lang.String fqRoomID,
int flags)
name - the name under which to store the objectobj - the object to storefqRoomID - the fully qualified id of the room this property should attached to, null for globalflags - 0=none,1=shared,2=persistent,3=shared and persistent
public java.lang.Object getAttribute(java.lang.String name,
java.lang.String fqRoomID)
name - the name under which the desired object has been storedfqRoomID - the fully qualified id of the room this property is attached to, null for global
public void removeAttribute(java.lang.String name,
java.lang.String fqRoomID)
name - the name of the object to removefqRoomID - the fully qualified id of the room this property is attached to, null for globalpublic java.util.HashMap getAllAttributes()
public java.util.HashMap getAllAttributes(java.lang.String fqRoomID)
fqRoomID - the fully qualified id of the room this property is attached to, null for globalpublic java.util.HashMap getSharedAttributes(java.lang.String fqRoomID)
fqRoomID - the fully qualified id of the room this property is attached to, null for globalpublic java.util.HashMap getAllSharedAttributes()
public java.lang.String getIP()
public boolean isLoggedIn()
public boolean isDying()
public long getConnectToServerTime()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||