|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.npsnet.xrti.XRTIExecutive
The XRTI executive application. Acts as a central server for federations operating in client-server or hybrid modes.
| Field Summary | |
private java.util.Properties |
configuration
The list of configuration properties. |
private boolean |
debugModeEnabled
Whether or not debug mode is enabled. |
private java.util.Vector |
executiveClientAmbassadors
The list of ALL executive client ambassadors connected to XRTI. |
private java.util.HashMap |
federationExecutionNameAmbassadorMap
Maps federation execution names to their corresponding ambassadors. |
private long |
handleCounter
The global handle counter. |
private java.lang.Thread |
channelAcceptorThread
The message channel acceptor thread. |
private boolean |
keepGoing
The keep-going flag. |
private XRTIExecutiveMainWindow |
mainWindow
Application's main window. |
private FederationExecutionAmbassador |
metaFederationAmbassador
The meta-federation execution ambassador. |
private MetaFederationProxyAmbassador |
metaFederationProxyAmbassador
The meta-federation proxy ambassador. |
private boolean |
useGUI
Whether or not use graphical user interface. |
| Constructor Summary | |
XRTIExecutive(java.util.Properties pConfiguration,
boolean useGUI)
Constructor. |
|
| Method Summary | |
protected long |
acquireHandles(long blockSize)
Acquires a block of handles. |
protected boolean |
createFederationExecution(java.lang.String name,
org.w3c.dom.Document fdd)
Creates a new federation execution. |
protected void |
debug(java.lang.String message)
Prints the specified message to the error stream if debug mode is enabled. |
protected void |
destroyFederationExecution(java.lang.String name)
Destroys a federation execution (if there are no federates in it). |
protected FederationExecutionAmbassador |
getFederationExecutionAmbassador(java.lang.String name)
Retrieves the federation execution ambassador corresponding to the execution with the specified name. |
protected java.util.HashMap |
getFederationExecutionNameAmbassadorMap()
Returns the map with federation execution names and their corresponding ambassadors. |
protected FederationExecutionAmbassador |
getMetaFederationAmbassador()
Returns the federation execution ambassador for the meta-federation execution. |
static void |
main(java.lang.String[] args)
Application entry point. |
void |
stop()
Stops the executive process. |
protected void |
updateJoinedFederatesList()
Updates the list of joined federates. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.Properties configuration
private boolean keepGoing
private java.lang.Thread channelAcceptorThread
private long handleCounter
private FederationExecutionAmbassador metaFederationAmbassador
private MetaFederationProxyAmbassador metaFederationProxyAmbassador
private java.util.HashMap federationExecutionNameAmbassadorMap
private boolean debugModeEnabled
private boolean useGUI
private XRTIExecutiveMainWindow mainWindow
private java.util.Vector executiveClientAmbassadors
| Constructor Detail |
public XRTIExecutive(java.util.Properties pConfiguration,
boolean useGUI)
pConfiguration - the list of configuration properties| Method Detail |
protected void debug(java.lang.String message)
message - the message to printprotected FederationExecutionAmbassador getMetaFederationAmbassador()
protected long acquireHandles(long blockSize)
blockSize - the number of handles desired
protected boolean createFederationExecution(java.lang.String name,
org.w3c.dom.Document fdd)
name - the name of the federation execution to createfdd - the parsed federation description documentprotected void destroyFederationExecution(java.lang.String name)
name - the name of the federation execution to destroyprotected FederationExecutionAmbassador getFederationExecutionAmbassador(java.lang.String name)
name - the name of the federation execution
null if no such
ambassador existspublic void stop()
protected java.util.HashMap getFederationExecutionNameAmbassadorMap()
protected void updateJoinedFederatesList()
public static void main(java.lang.String[] args)
args - the command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||