|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.user1.union.core.event.BaseEvent net.user1.union.core.event.RemoteServerEvent
public class RemoteServerEvent
RemoteServerEvent is a simple data class used to pass information from the server to registered event-listeners when a remote server event occurs. The RemoteServerEvent class also defines constants representing the available server events. To register for a remote server event, use the Server class's addRemoteEventListener() method.
Field Summary | |
---|---|
static java.lang.String |
PROP_ROOMDEF
This property contains the RoomDef when REMOTE_ROOM_CREATED is dispatched. |
static java.lang.String |
REMOTE_ROOM_CREATED
Dispatched when a clustered room has been created on a node. |
static java.lang.String |
REMOTE_ROOM_REMOVED
Dispatched when a clustered master room has been removed from a node. |
Fields inherited from class net.user1.union.core.event.BaseEvent |
---|
m_eventProperties |
Constructor Summary | |
---|---|
RemoteServerEvent()
Constructor. |
|
RemoteServerEvent(java.lang.String nodeID,
java.lang.String roomID)
Constructor. |
|
RemoteServerEvent(java.lang.String nodeID,
java.lang.String roomID,
java.util.Map<java.lang.String,java.lang.Object> props)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getNodeID()
Returns the ID of the node where the event originated. |
java.lang.String |
getRoomID()
Returns the ID of the room involved in the event. |
void |
readExternal(java.io.ObjectInput in)
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class net.user1.union.core.event.BaseEvent |
---|
getProperty, isCanceled, preventDefault |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.user1.union.core.event.Event |
---|
getProperty, isCanceled, preventDefault |
Field Detail |
---|
public static final java.lang.String REMOTE_ROOM_CREATED
public static final java.lang.String REMOTE_ROOM_REMOVED
public static final java.lang.String PROP_ROOMDEF
Constructor Detail |
---|
public RemoteServerEvent()
public RemoteServerEvent(java.lang.String nodeID, java.lang.String roomID)
public RemoteServerEvent(java.lang.String nodeID, java.lang.String roomID, java.util.Map<java.lang.String,java.lang.Object> props)
Method Detail |
---|
public java.lang.String getNodeID()
public java.lang.String getRoomID()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |