public class AvalonWorkerSupport
extends java.lang.Object
Constructor and Description |
---|
AvalonWorkerSupport(java.lang.String hostName,
java.lang.String workerName,
java.lang.String serviceName,
org.omg.CosNaming.NamingContextExt namingContext,
SessionNotificationEventManager sessionNotificationEventManager) |
Modifier and Type | Method and Description |
---|---|
com.highqsoft.avalon.AvalonDistributorFactory |
getAvalonDistributorFactory() |
java.lang.String |
getAvalonWorkerId() |
int |
getNextSessionId()
Returns the new session id, retrieved from the Avalon Distributor factory.
|
void |
removeSessionFromDistributor(int sessionId)
When avalon stopps, this method deregisters the Avalon Worker from the Avalon Distributor.
|
void |
retrieveDistributorFactory()
Retrieve the Avalon Distributor factory object from corba nameservice.
|
void |
startRegisterThread(org.omg.CORBA.Object aofRef)
Starts the thread for registering Avalon Worker on the Avalon Distributor.
|
void |
stopWorkerSupport()
Stops the registration thread and notify distributor
|
boolean |
waitOfDistributorResponse()
Checks whether the Avalon Distributor factory is available, when not
the method waits max 10 seconds to get connection.
|
public AvalonWorkerSupport(java.lang.String hostName, java.lang.String workerName, java.lang.String serviceName, org.omg.CosNaming.NamingContextExt namingContext, SessionNotificationEventManager sessionNotificationEventManager)
public void retrieveDistributorFactory() throws com.highqsoft.avalon.AvalonException
com.highqsoft.avalon.AvalonException
public void startRegisterThread(org.omg.CORBA.Object aofRef) throws com.highqsoft.avalon.AvalonException
com.highqsoft.avalon.AvalonException
public void stopWorkerSupport()
public int getNextSessionId() throws com.highqsoft.avalon.AvalonException
com.highqsoft.avalon.AvalonException
public void removeSessionFromDistributor(int sessionId)
public boolean waitOfDistributorResponse()
public java.lang.String getAvalonWorkerId()
public com.highqsoft.avalon.AvalonDistributorFactory getAvalonDistributorFactory()