public class DistributorFactory
extends com.highqsoft.avalon.AvalonDistributorFactoryPOA
implements com.highqsoft.avalon.AvalonDistributorFactory
| Constructor and Description |
|---|
DistributorFactory(SessionManager sessionManager,
EventManager eventManager) |
| Modifier and Type | Method and Description |
|---|---|
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result) |
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist) |
org.omg.CORBA.Object |
_duplicate() |
org.omg.CORBA.DomainManager[] |
_get_domain_managers() |
org.omg.CORBA.Policy |
_get_policy(int policy_type) |
int |
_hash(int maximum) |
boolean |
_is_equivalent(org.omg.CORBA.Object other) |
void |
_release() |
org.omg.CORBA.Request |
_request(java.lang.String operation) |
org.omg.CORBA.Object |
_set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add) |
void |
deRegisterAvalonWorker(java.lang.String workerId)
Is called from Avalon worker for deregistration, when it shut down
|
T_LONGLONG |
getCurrentTimeStamp()
Is called from Avalon worker for checking Avalon Distributor is alive
|
int |
getNextSessionId(java.lang.String workerId)
Is called from Avalon worker to get the next session id
|
void |
initializeDistributor() |
void |
newCorbaEvent(java.lang.String workerId,
com.highqsoft.avalon.T_CorbaEvent event) |
void |
newSessionEvent(java.lang.String workerId,
com.highqsoft.avalon.T_SessionEvent event) |
void |
notifySessionClosed(java.lang.String workerId,
int sessionId)
Is called from Avalon worker when a session is closed
|
java.lang.String |
registerAvalonWorker(AoFactory aoFactory,
java.lang.String hostname)
Is called from Avalon worker for registering
|
java.lang.String |
registerAvalonWorkerWithName(AoFactory aoFactory,
java.lang.String hostname,
java.lang.String workername) |
int |
setNextDistributorSessionId(int distributorSessionId) |
int |
setNextDistributorWorkerId(int distributorWorkerId) |
com.highqsoft.avalon.T_Distributor_Data |
synchronizeDistributorData(com.highqsoft.avalon.T_Distributor_Data distributorData)
Is called from redundant Avalon Distributor for synchronizing session information
|
_all_interfaces, _invoke, _this, _this_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_objectpublic DistributorFactory(SessionManager sessionManager, EventManager eventManager)
public java.lang.String registerAvalonWorker(AoFactory aoFactory, java.lang.String hostname) throws com.highqsoft.avalon.AvalonException
registerAvalonWorker in interface com.highqsoft.avalon.AvalonDistributorFactoryOperationscom.highqsoft.avalon.AvalonExceptionpublic java.lang.String registerAvalonWorkerWithName(AoFactory aoFactory, java.lang.String hostname, java.lang.String workername) throws com.highqsoft.avalon.AvalonException
registerAvalonWorkerWithName in interface com.highqsoft.avalon.AvalonDistributorFactoryOperationscom.highqsoft.avalon.AvalonExceptionpublic void deRegisterAvalonWorker(java.lang.String workerId)
throws com.highqsoft.avalon.AvalonException
deRegisterAvalonWorker in interface com.highqsoft.avalon.AvalonDistributorFactoryOperationscom.highqsoft.avalon.AvalonExceptionpublic void notifySessionClosed(java.lang.String workerId,
int sessionId)
notifySessionClosed in interface com.highqsoft.avalon.AvalonDistributorFactoryOperationspublic void newCorbaEvent(java.lang.String workerId,
com.highqsoft.avalon.T_CorbaEvent event)
throws com.highqsoft.avalon.AvalonException
newCorbaEvent in interface com.highqsoft.avalon.AvalonDistributorFactoryOperationscom.highqsoft.avalon.AvalonExceptionpublic void newSessionEvent(java.lang.String workerId,
com.highqsoft.avalon.T_SessionEvent event)
throws com.highqsoft.avalon.AvalonException
newSessionEvent in interface com.highqsoft.avalon.AvalonDistributorFactoryOperationscom.highqsoft.avalon.AvalonExceptionpublic T_LONGLONG getCurrentTimeStamp() throws com.highqsoft.avalon.AvalonException
getCurrentTimeStamp in interface com.highqsoft.avalon.AvalonDistributorFactoryOperationscom.highqsoft.avalon.AvalonExceptionpublic int getNextSessionId(java.lang.String workerId)
throws com.highqsoft.avalon.AvalonException
getNextSessionId in interface com.highqsoft.avalon.AvalonDistributorFactoryOperationscom.highqsoft.avalon.AvalonExceptionpublic com.highqsoft.avalon.T_Distributor_Data synchronizeDistributorData(com.highqsoft.avalon.T_Distributor_Data distributorData)
throws com.highqsoft.avalon.AvalonException
synchronizeDistributorData in interface com.highqsoft.avalon.AvalonDistributorFactoryOperationscom.highqsoft.avalon.AvalonExceptionpublic int setNextDistributorSessionId(int distributorSessionId)
throws com.highqsoft.avalon.AvalonException
setNextDistributorSessionId in interface com.highqsoft.avalon.AvalonDistributorFactoryOperationscom.highqsoft.avalon.AvalonExceptionpublic int setNextDistributorWorkerId(int distributorWorkerId)
throws com.highqsoft.avalon.AvalonException
setNextDistributorWorkerId in interface com.highqsoft.avalon.AvalonDistributorFactoryOperationscom.highqsoft.avalon.AvalonExceptionpublic boolean _is_equivalent(org.omg.CORBA.Object other)
_is_equivalent in interface org.omg.CORBA.Objectpublic int _hash(int maximum)
_hash in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _duplicate()
_duplicate in interface org.omg.CORBA.Objectpublic void _release()
_release in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _request(java.lang.String operation)
_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result)
_create_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist)
_create_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Policy _get_policy(int policy_type)
_get_policy in interface org.omg.CORBA.Objectpublic org.omg.CORBA.DomainManager[] _get_domain_managers()
_get_domain_managers in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add)
_set_policy_override in interface org.omg.CORBA.Objectpublic void initializeDistributor()
throws com.highqsoft.avalon.AvalonException
initializeDistributor in interface com.highqsoft.avalon.AvalonDistributorFactoryOperationscom.highqsoft.avalon.AvalonException