|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
AttributePersistence
| Method Summary | |
void |
changePersistentClient(ClientServices client,
java.util.ArrayList args)
Change a client int the database. |
void |
cleanup()
Called when the server is shutting down. |
void |
createPersistentClient(ClientServices client,
java.util.ArrayList args)
Create a client in the database. |
boolean |
init(java.util.HashMap attributes)
Init the Attribute Persistence object. |
void |
loadRoom(RoomServices roomServices)
Load the Attributes for a room with ID roomID when the Room is spawned. |
void |
loadServer(ServerServices serverServices)
Load the server Attributes |
void |
loginClient(ClientServices client,
java.util.ArrayList args)
Load the Attributes for the Client when loginClient is called by a Room. |
void |
removePersistentClient(ClientServices client,
java.util.ArrayList args)
Remove a client from the database. |
void |
storeClient(ClientServices client,
java.util.HashMap map)
Store the Attributes of the Client when the Client disconnects. |
void |
storeRoom(java.lang.String roomID,
org.moock.unity.core.AttributeList list)
Store the Attributes for a room with ID roomID when the Room is shutdown. |
void |
storeServer(org.moock.unity.core.AttributeList list)
Store the server Attributes when the server is shutdown. |
| Method Detail |
public boolean init(java.util.HashMap attributes)
throws org.moock.unity.core.exception.AttributePersistenceException
settings - the ATTRIBUTES specified in the config file.
public void loadServer(ServerServices serverServices)
throws org.moock.unity.core.exception.AttributePersistenceException
ServerServices - to load the Attributes
public void storeServer(org.moock.unity.core.AttributeList list)
throws org.moock.unity.core.exception.AttributePersistenceException
public void loadRoom(RoomServices roomServices)
throws org.moock.unity.core.exception.AttributePersistenceException
public void storeRoom(java.lang.String roomID,
org.moock.unity.core.AttributeList list)
throws org.moock.unity.core.exception.AttributePersistenceException
public void createPersistentClient(ClientServices client,
java.util.ArrayList args)
throws org.moock.unity.core.exception.PersistentClientAlreadyExistsException,
org.moock.unity.core.exception.AttributePersistenceException
public void removePersistentClient(ClientServices client,
java.util.ArrayList args)
throws org.moock.unity.core.exception.PersistentClientNotFoundException,
org.moock.unity.core.exception.AttributePersistenceException
public void changePersistentClient(ClientServices client,
java.util.ArrayList args)
throws org.moock.unity.core.exception.PersistentClientNotFoundException,
org.moock.unity.core.exception.AuthenticationFailedException,
org.moock.unity.core.exception.AttributePersistenceException
public void loginClient(ClientServices client,
java.util.ArrayList args)
throws org.moock.unity.core.exception.PersistentClientNotFoundException,
org.moock.unity.core.exception.AuthenticationFailedException,
org.moock.unity.core.exception.AttributePersistenceException
ClientServices - used to load the attributes.args - passed by the Room to identify the Client.
public void storeClient(ClientServices client,
java.util.HashMap map)
throws org.moock.unity.core.exception.AttributePersistenceException
public void cleanup()
throws org.moock.unity.core.exception.AttributePersistenceException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||