public class SessionManager
extends java.lang.Object
Constructor and Description |
---|
SessionManager(CorbaManager corbaManager) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addAvalonWoker(AoFactory aoFactory,
java.lang.String hostname)
Add an new Avalon Worker to the internal session list
|
java.lang.String |
addAvalonWoker(AoFactory aoFactory,
java.lang.String hostname,
java.lang.String workerName)
Add an new Avalon Worker to the internal session list with the given worker name
|
void |
addSession(java.lang.String workerId,
int id)
New AoSession was created from factory
|
AoFactory |
getNextAoFactory()
Return the next avalon worker factory for creating new session
|
int |
getNextSessionId(java.lang.String workerId)
Returns the next session id
|
com.highqsoft.avalon.distributor.SessionManager.AvalonWorkerInfo |
getNextWorker()
Get the next worker to create a session
|
void |
initialize()
Initialize the session informations
|
void |
notifySessionClosed(java.lang.String workerId,
int sessionId)
This is called, when the session is closed, to remove the session from the list.
|
void |
removeAvalonWorker(java.lang.String workerId)
Removes a avalon worker from the list, when worker is no longr available
|
int |
setNextSessionId(int distributorSessionId)
Called from redundant distributor for synchronizing session id.
|
int |
setNextWorkerId(int distributorWorkerId)
Is called from redundant distributor to the the next worker id
|
void |
showJavaMemory()
Show the used java memory.
|
void |
stopObserverThread() |
com.highqsoft.avalon.T_Distributor_Data |
synchronizeDistributorData(com.highqsoft.avalon.T_Distributor_Data distributorData)
Synchronizes the worker and session informations with the delivered information from
redundant avalon distributor.
|
public SessionManager(CorbaManager corbaManager)
public java.lang.String addAvalonWoker(AoFactory aoFactory, java.lang.String hostname)
public java.lang.String addAvalonWoker(AoFactory aoFactory, java.lang.String hostname, java.lang.String workerName) throws com.highqsoft.avalon.AvalonException
com.highqsoft.avalon.AvalonException
public int setNextWorkerId(int distributorWorkerId)
public int getNextSessionId(java.lang.String workerId) throws com.highqsoft.avalon.AvalonException
com.highqsoft.avalon.AvalonException
public int setNextSessionId(int distributorSessionId)
public AoFactory getNextAoFactory() throws com.highqsoft.avalon.AvalonException
com.highqsoft.avalon.AvalonException
public com.highqsoft.avalon.distributor.SessionManager.AvalonWorkerInfo getNextWorker() throws com.highqsoft.avalon.AvalonException
com.highqsoft.avalon.AvalonException
- in case no worker is found.public void notifySessionClosed(java.lang.String workerId, int sessionId)
public void removeAvalonWorker(java.lang.String workerId) throws com.highqsoft.avalon.AvalonException
com.highqsoft.avalon.AvalonException
public void addSession(java.lang.String workerId, int id)
public void stopObserverThread()
public com.highqsoft.avalon.T_Distributor_Data synchronizeDistributorData(com.highqsoft.avalon.T_Distributor_Data distributorData) throws com.highqsoft.avalon.AvalonException
com.highqsoft.avalon.AvalonException
public void initialize()
public void showJavaMemory()