|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.commonreality.participant.impl.AbstractParticipant
org.commonreality.reality.impl.DefaultReality
public class DefaultReality
| Field Summary | |
|---|---|
static java.lang.String |
MESSAGE_TTL
|
| Constructor Summary | |
|---|---|
DefaultReality()
|
|
| Method Summary | |
|---|---|
void |
add(ICredentials credentials,
boolean wantsClockControl)
|
void |
cleanUp()
disconnect and shutdown |
void |
configure(java.util.Map<java.lang.String,java.lang.String> options)
|
IAddressingInformation |
getAddressingInformation()
|
MasterClock |
getClock()
return the clock that this participant has access to |
ConnectionTracker |
getConnectionTracker()
|
ICredentials |
getCredentials()
|
java.lang.String |
getName()
|
long |
getTimeout()
|
void |
initialize()
initialize common reality. |
IIdentifier |
newIdentifier(IIdentifier owner,
IIdentifier template)
|
void |
remove(ICredentials credentials)
|
void |
reset(boolean clockWillBeReset)
called when we are to reset to a post-initialize state. |
void |
resume()
|
java.util.concurrent.Future<IAcknowledgement> |
send(IIdentifier identifier,
IMessage message)
send a message to a specific participant. |
java.util.concurrent.Future<IAcknowledgement> |
send(IMessage message)
this will actually send to EVERYONE connected - and returns a null acknowldgement for now.. |
void |
setTimeout(long timeout)
|
void |
shutdown()
tell folks to shut down.. |
void |
start()
tell all the participants to start |
void |
stop()
called when this participant needs to stop |
void |
suspend()
|
| Methods inherited from class org.commonreality.participant.impl.AbstractParticipant |
|---|
addClientService, addServerService, connect, disconnect, getAfferentObjectManager, getAgentObjectManager, getEfferentCommandManager, getEfferentObjectManager, getIdentifier, getRealObjectManager, getSensorObjectManager, isConnected, isInitialized, isStarted, isSuspended, setIdentifier, waitForConnection, waitForInitialization, waitForResumption, waitForStart, waitForStop, waitForSuspension |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.commonreality.participant.IParticipant |
|---|
connect, disconnect, getAfferentObjectManager, getAgentObjectManager, getEfferentCommandManager, getEfferentObjectManager, getRealObjectManager, getSensorObjectManager, isConnected, isInitialized, isStarted, isSuspended, waitForConnection, waitForResumption, waitForStart, waitForStop, waitForSuspension |
| Methods inherited from interface org.commonreality.identifier.IIdentifiable |
|---|
getIdentifier |
| Field Detail |
|---|
public static final java.lang.String MESSAGE_TTL
| Constructor Detail |
|---|
public DefaultReality()
| Method Detail |
|---|
public ConnectionTracker getConnectionTracker()
public long getTimeout()
public void setTimeout(long timeout)
public java.lang.String getName()
getName in class AbstractParticipantpublic MasterClock getClock()
AbstractParticipant
getClock in interface IParticipantgetClock in interface IRealitygetClock in class AbstractParticipant
public void initialize()
throws java.lang.Exception
initialize in interface IParticipantinitialize in class AbstractParticipantjava.lang.ExceptionAbstractParticipant.initialize()
public void configure(java.util.Map<java.lang.String,java.lang.String> options)
throws java.lang.Exception
configure in interface IParticipantconfigure in class AbstractParticipantjava.lang.Exceptionpublic void cleanUp()
public void reset(boolean clockWillBeReset)
throws java.lang.Exception
AbstractParticipant
reset in interface IParticipantreset in class AbstractParticipantjava.lang.Exceptionorg.commonreality.participant.impl.AbstractParticipant#reset()
public void start()
throws java.lang.Exception
start in interface IParticipantstart in class AbstractParticipantjava.lang.ExceptionAbstractParticipant.start()
public void stop()
throws java.lang.Exception
AbstractParticipant
stop in interface IParticipantstop in class AbstractParticipantjava.lang.ExceptionAbstractParticipant.stop()public java.util.concurrent.Future<IAcknowledgement> send(IMessage message)
send in interface IParticipantsend in class AbstractParticipantAbstractParticipant.send(org.commonreality.message.IMessage)
public java.util.concurrent.Future<IAcknowledgement> send(IIdentifier identifier,
IMessage message)
IRealityIIdentifier.ALL by sending the message to all participants
send in interface IReality
public void resume()
throws java.lang.Exception
resume in interface IParticipantresume in class AbstractParticipantjava.lang.ExceptionAbstractParticipant.resume()
public void shutdown()
throws java.lang.Exception
shutdown in interface IParticipantshutdown in class AbstractParticipantjava.lang.ExceptionAbstractParticipant.shutdown()
public void suspend()
throws java.lang.Exception
suspend in interface IParticipantsuspend in class AbstractParticipantjava.lang.ExceptionAbstractParticipant.suspend()public IAddressingInformation getAddressingInformation()
getAddressingInformation in class AbstractParticipantAbstractParticipant.getAddressingInformation()public ICredentials getCredentials()
getCredentials in class AbstractParticipantAbstractParticipant.getCredentials()
public IIdentifier newIdentifier(IIdentifier owner,
IIdentifier template)
newIdentifier in interface IRealityorg.commonreality.reality.IReality#newIdentifier(org.commonreality.participant.identifier.IParticipantIdentifier,
java.lang.String)
public void add(ICredentials credentials,
boolean wantsClockControl)
add in interface IRealityorg.commonreality.reality.IReality#add(org.commonreality.message.credentials.ICredentials)public void remove(ICredentials credentials)
remove in interface IRealityIReality.remove(org.commonreality.message.credentials.ICredentials)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||