|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.comm.HWMCommMgr
public class HWMCommMgr
Title: HWMCommMgr Description: The manager class that manages all the connections with the slave applications
. Company Altair Engineering, Inc.
:
Constructor Summary | |
---|---|
HWMCommMgr()
Constructor |
Method Summary | |
---|---|
void |
AddComm(java.lang.String strSessionName,
HWMComm hwmComm)
Add a new HWMComm instance to the hashtable of comms strSessionName - The session name for this comm instance hwmComm - The comm instance to add |
HWMClientComm |
ConnectToApp(java.lang.String szSessionName,
java.lang.String strAddress,
int nPort)
Purpose: Connects to any generic application that is listening at a specified port. |
HWMCommHM |
ConnectToHM(java.lang.String szSessionName,
java.lang.String strAddress,
int nPort)
Purpose: Connects to an HM session that is listening at a specified port. |
HWMCommHM |
ConnectToMotion(java.lang.String szSessionName,
java.lang.String strAddress,
int nPort)
Purpose: Connects to an HM session that is listening at a specified port. |
void |
DisconnectAllComms()
Shutsdown the applications that were started and the clients that connected to server. |
void |
DisconnectComm(java.lang.String strSessionName)
Shuts down the application started by a particular session |
HWMClientComm |
GetClientComm(java.lang.String strSessionName)
Purpose: Searches the HashTable for the HWMClientComm that is associated with a given session name. |
HWMComm |
GetComm(java.lang.String strSessionName)
Purpose: Searches the HashTable for the HWMServerComm that is associated with a given session name. |
DBServerComm |
GetDBComm(java.lang.String strSessionName)
Purpose: Searches the HashTable for the DBServerComm that is associated with a given session name. |
HWMFSComm |
GetFileServerComm(java.lang.String strSessionName)
Purpose: Searches the HashTable for the file server comm class that is associated with a given session name. |
HWMCommHM |
GetHM(java.lang.String szSessionName)
Purpose: Searches the HashTable for the HWMCommHM that is associated with a given session name. |
HWMCommHM |
GetMotion(java.lang.String szSessionName)
Purpose: Searches the HashTable for the HWMCommHM that is associated with a given session name. |
void |
RemoveSession(java.lang.String szSessionName)
Purpose: Removes a Session/client comm Thread pair from the hashtable. |
HWMClientComm |
StartApp(java.lang.String szApp,
java.lang.String[] arrszArgs,
java.lang.String szWorkingDir,
java.lang.String szSessionName)
Purpose: Starts any generic application. |
DBServerComm |
StartDBComm(java.lang.String strSessionName)
Purpose: Starts DB communication. |
HWMFSComm |
StartFileServerComm(java.lang.String strName,
java.lang.String strAddress)
Purpose: Starts communication with file server. |
HWMCommHM |
StartHM(java.lang.String szHMPath,
java.lang.String[] arrszArgs,
java.lang.String szWorkingDir,
java.lang.String szSessionName)
Purpose: Starts a new instance of HyperMesh. |
HWMCommHM |
StartMotion(java.lang.String szHMPath,
java.lang.String[] arrszArgs,
java.lang.String szWorkingDir,
java.lang.String szSessionName)
Purpose: Starts a new instance of MotionView/HyperView/HyperGraph (Built on the Motion FrameWork) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWMCommMgr()
Method Detail |
---|
public void DisconnectAllComms()
public void DisconnectComm(java.lang.String strSessionName)
strSessionName
- The session id that started the applicationpublic void RemoveSession(java.lang.String szSessionName)
szSessionName
- -- The SessionName of the pair to be removedpublic HWMComm GetComm(java.lang.String strSessionName)
String
- strSessionName -- The Session Name that the Hash Table
needs to be scanned forpublic void AddComm(java.lang.String strSessionName, HWMComm hwmComm) throws java.lang.Exception
java.lang.Exception
- If an comm by that session name existspublic HWMClientComm StartApp(java.lang.String szApp, java.lang.String[] arrszArgs, java.lang.String szWorkingDir, java.lang.String szSessionName)
String
- szApp -- The application that the ClientComm Thread will be
associated withString[]
- arrszArgs -- Any arguments that need to be passed to the
application, BEYOND those needed for the communicationsString
- szWorkingDir -- The directory that the application should
be started fromString
- szSessionName -- The Session Name that should be usedpublic HWMClientComm ConnectToApp(java.lang.String szSessionName, java.lang.String strAddress, int nPort) throws java.lang.Exception
String
- szSessionName -- The Session Name that should be usedString
- strAddress -- The IP address that the server app is
listening atint
- nPort -- The port number that the server app is listening to
java.lang.Exception
- If any error occurspublic HWMClientComm GetClientComm(java.lang.String strSessionName)
String
- szSessionName -- The Session Name that the Hash Table
needs to be scanned forpublic HWMCommHM StartHM(java.lang.String szHMPath, java.lang.String[] arrszArgs, java.lang.String szWorkingDir, java.lang.String szSessionName)
String
- szHMPath -- The full path to the version of HyperMesh that
will be used.String[]
- arrszArgs -- Any arguments that need to be passed to the
application, BEYOND those needed for the communicationsString
- szWorkingDir -- The directory that the application should
be started fromString
- szSessionName -- The Session Name that should be usedpublic HWMCommHM ConnectToHM(java.lang.String szSessionName, java.lang.String strAddress, int nPort) throws java.lang.Exception
String
- szSessionName -- The Session Name that should be usedString
- strAddress -- The IP address that the HM is
listening atint
- nPort -- The port number that the HM "server" is listening to
java.lang.Exception
- If any error occurspublic HWMCommHM GetHM(java.lang.String szSessionName)
String
- szSessionName -- The Session Name that the Hash Table
needs to be scanned forpublic HWMCommHM StartMotion(java.lang.String szHMPath, java.lang.String[] arrszArgs, java.lang.String szWorkingDir, java.lang.String szSessionName)
String
- szHMPath -- The full path to the version of MV that
will be used.String[]
- arrszArgs -- Any arguments that need to be passed to the
application, BEYOND those needed for the communicationsString
- szWorkingDir -- The directory that the application should
be started fromString
- szSessionName -- The Session Name that should be usedpublic HWMCommHM ConnectToMotion(java.lang.String szSessionName, java.lang.String strAddress, int nPort) throws java.lang.Exception
String
- szSessionName -- The Session Name that should be usedString
- strAddress -- The IP address that the HM is
listening atint
- nPort -- The port number that the HM "server" is listening to
java.lang.Exception
- If any error occurspublic HWMCommHM GetMotion(java.lang.String szSessionName)
String
- szSessionName -- The Session Name that the Hash Table
needs to be scanned forpublic DBServerComm StartDBComm(java.lang.String strSessionName) throws java.lang.Exception
String
- strSessionName -- The name for this session
java.lang.Exception
public DBServerComm GetDBComm(java.lang.String strSessionName)
String
- strSessionName -- The Session Name that the Hash Table
needs to be scanned forpublic HWMFSComm StartFileServerComm(java.lang.String strName, java.lang.String strAddress) throws java.lang.Exception
strName
- -- The name for this session
java.lang.Exception
public HWMFSComm GetFileServerComm(java.lang.String strSessionName)
String
- strSessionName -- The Session Name that the Hash Table
needs to be scanned for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |