|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omg.PortableServer.Servant hep.aida.ref.remote.corba.generated.TreeClientPOA hep.aida.ref.remote.corba.CorbaTreeClientImpl
This is Basic implementation of AidaTreeClient that support both "Duplex" and "non-Duplex" modes of communication with the AIDA Tree server. In "Duplex" mode AidaTreeServant call stateChanged() method to notify BasicTreeClient about updates/changes in the server-side AIDA tree. In "non-Duplex" mode BasicTreeClient runs as a separate thread and periodically calls updates() method of AidaTreeServant to get information about updates/changes in the server-side AIDA tree. BasicTreeClient also implements IMutableStore, so it can be used as a Store for any IDevTree.
Field Summary | |
protected String |
clientID
|
protected boolean |
duplex
|
protected String |
ior
|
protected boolean |
isConnected
|
protected boolean |
keepUpdating
|
protected String |
nsName
|
protected ORB |
orb
|
protected RemoteUpdatableQueue |
queue
|
protected POA |
rootPOA
|
protected TreeServant |
servant
|
protected TreeServer |
server
|
protected IDevMutableStore |
store
|
protected TreeClient |
treeClient
|
protected long |
updateInterval
|
Constructor Summary | |
CorbaTreeClientImpl()
Creates a new instance of CorbaTreeClient Duplex is default to "true". |
|
CorbaTreeClientImpl(IDevMutableStore store,
String ior)
|
|
CorbaTreeClientImpl(IDevMutableStore store,
String ior,
String nsName)
|
Method Summary | |
boolean |
connect()
|
protected void |
connectDuplex()
Retrieves Duplex AidaTreeServant from the AidaTreeServer. |
protected void |
connectNonDuplex()
Retrieves non-Duplex AidaTreeServant from the AidaTreeServer. |
boolean |
disconnect()
|
Object |
find(String path)
|
protected TreeServer |
getServer()
Retrieves reference to the TreeServer. |
protected void |
init()
|
boolean |
isConnected()
|
String[] |
listObjectNames(String path)
|
String[] |
listObjectTypes(String path)
|
static void |
main(String[] args)
|
void |
run()
|
void |
setDuplex(boolean duplex)
Set duplex mode. |
void |
setUpdateTime(long updateInterval)
Set time interval (in milliseconds) for AidaTreeClient to check for updates. |
void |
setValid(String path)
|
void |
stateChanged(AidaUpdateEvent[] events)
This method can be called by AidaTreeServant to notify AidaTreeClient about updates in the server-side ITree. |
void |
stateChanged(EventStruct[] events)
In this implementation stateChanged(UpdateEvent[] events) method simply schedules updates in the UpdatableQueue. |
Methods inherited from class hep.aida.ref.remote.corba.generated.TreeClientPOA |
_all_interfaces, _invoke, _this, _this |
Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TreeServer server
protected TreeServant servant
protected IDevMutableStore store
protected RemoteUpdatableQueue queue
protected boolean duplex
protected boolean isConnected
protected long updateInterval
protected boolean keepUpdating
protected String clientID
protected ORB orb
protected POA rootPOA
protected TreeClient treeClient
protected String ior
protected String nsName
Constructor Detail |
public CorbaTreeClientImpl()
public CorbaTreeClientImpl(IDevMutableStore store, String ior)
public CorbaTreeClientImpl(IDevMutableStore store, String ior, String nsName)
Method Detail |
protected void init()
protected TreeServer getServer()
public void setUpdateTime(long updateInterval)
public void setDuplex(boolean duplex)
protected void connectDuplex() throws RemoteConnectionException
RemoteConnectionException
protected void connectNonDuplex() throws RemoteConnectionException
RemoteConnectionException
public void setValid(String path)
public String[] listObjectNames(String path) throws IllegalArgumentException
IllegalArgumentException
public String[] listObjectTypes(String path) throws IllegalArgumentException
IllegalArgumentException
public Object find(String path) throws IllegalArgumentException
IllegalArgumentException
public void stateChanged(EventStruct[] events)
stateChanged
in interface TreeClientOperations
public void stateChanged(AidaUpdateEvent[] events)
AidaTreeClient
stateChanged
in interface AidaTreeClient
public boolean isConnected()
isConnected
in interface TreeClientOperations
public boolean connect()
connect
in interface TreeClientOperations
public boolean disconnect()
disconnect
in interface TreeClientOperations
public void run()
run
in interface Runnable
public static void main(String[] args)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |