FreeHEP API
Version current

hep.aida.ref.remote.rmi.client
Class RmiRemoteServer

java.lang.Object
  extended byhep.aida.ref.remote.rmi.client.RmiRemoteServer
All Implemented Interfaces:
AidaTreeServer

public class RmiRemoteServer
extends Object
implements AidaTreeServer

This is a wraper class that allows separation of RMi transport layer and internal hep.aide.ref.remote interfaces. Not a very elegant solution, but needed for now since transport interfaces may be different for different protocol type.

Author:
serbo
Source Code:
RmiRemoteServer.java

Constructor Summary
RmiRemoteServer(RmiServer server)
          Creates a new instance of RmiAidaTreeServer
 
Method Summary
 AidaTreeServant connectDuplex(AidaTreeClient aidaClient)
          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 aidaClient)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmiRemoteServer

public RmiRemoteServer(RmiServer server)
Creates a new instance of RmiAidaTreeServer

Method Detail

connectDuplex

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

Specified by:
connectDuplex in interface AidaTreeServer

connectNonDuplex

public AidaTreeServant connectNonDuplex(String clientID)
Description copied from interface: AidaTreeServer
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.

Specified by:
connectNonDuplex in interface AidaTreeServer

disconnectDuplex

public boolean disconnectDuplex(AidaTreeClient aidaClient)
Specified by:
disconnectDuplex in interface AidaTreeServer

disconnectNonDuplex

public boolean disconnectNonDuplex(String clientID)
Specified by:
disconnectNonDuplex in interface AidaTreeServer

supportDuplexMode

public boolean supportDuplexMode()
Description copied from interface: AidaTreeServer
Returns "true" if this TreeServer/TreeServant implementation support "Duplex Mode".

Specified by:
supportDuplexMode in interface AidaTreeServer

treeName

public String treeName()
Description copied from interface: AidaTreeServer
Return the name of the ITree it is connected to.

Specified by:
treeName in interface AidaTreeServer

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.