FreeHEP API
Version current

hep.aida.ref.remote.interfaces
Interface AidaTreeServer

All Known Implementing Classes:
RemoteServer, RmiRemoteServer

public interface AidaTreeServer

Main AIDA Tree Server - manages connect/disconnect of AidaTreeClients and life cycle of AidaTreeServants. Each TreeServant can be associated with only one TreeClient. Each AidaTreeServer can be associated with only one ITree.

Author:
serbo
Source Code:
AidaTreeServer.java

Method Summary
 AidaTreeServant connectDuplex(AidaTreeClient client)
          connect/disconnect methods for TreeClient that does support "Duplex" Mode.
 AidaTreeServant connectNonDuplex(String clientID)
          connect/disconnect methods for TreeClient that does not support "Duplex" Mode.
 boolean disconnectDuplex(AidaTreeClient client)
           
 boolean disconnectNonDuplex(String clientID)
           
 boolean supportDuplexMode()
          Returns "true" if this TreeServer/TreeServant implementation support "Duplex Mode".
 String treeName()
          Return the name of the ITree it is connected to.
 

Method Detail

treeName

public String treeName()
Return the name of the ITree it is connected to.


supportDuplexMode

public boolean supportDuplexMode()
Returns "true" if this TreeServer/TreeServant implementation support "Duplex Mode".


connectNonDuplex

public AidaTreeServant connectNonDuplex(String clientID)
connect/disconnect methods for TreeClient that does not support "Duplex" Mode. TreeClient has to provide a unique "clientID" to TreeServer. If "clientID" is not unique, TreeServer changes it, so TreeClient must check "newClientID", returned by TreeServer.


disconnectNonDuplex

public boolean disconnectNonDuplex(String clientID)

connectDuplex

public AidaTreeServant connectDuplex(AidaTreeClient client)
connect/disconnect methods for TreeClient that does support "Duplex" Mode. Reference to instance of TreeClient serves also as a unique client ID.


disconnectDuplex

public boolean disconnectDuplex(AidaTreeClient client)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.