FreeHEP API
Version v1.2.2

hep.aida.ref.remote.testRemote
Class AidaTreeServerTest

java.lang.Object
  |
  +--hep.aida.ref.remote.testRemote.AidaTreeServerTest
All Implemented Interfaces:
AidaTreeServer

public class AidaTreeServerTest
extends Object
implements AidaTreeServer

This is a very simple AidaTreeServer that just delegates most of the methods to the TestUtils class. This class supports duplex mode by default.

Author:
serbo

Constructor Summary
AidaTreeServerTest()
          Creates a new instance of AidaTreeServerTest
AidaTreeServerTest(String treeName)
           
AidaTreeServerTest(String treeName, boolean supportDuplex)
           
AidaTreeServerTest(String treeName, boolean supportDuplex, long serverUpdateInterval)
           
 
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 disconnect(Object client)
           
 boolean disconnectDuplex(AidaTreeClient client)
           
 boolean disconnectNonDuplex(String clientID)
           
 void initServerTest()
           
 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

AidaTreeServerTest

public AidaTreeServerTest()
Creates a new instance of AidaTreeServerTest


AidaTreeServerTest

public AidaTreeServerTest(String treeName)

AidaTreeServerTest

public AidaTreeServerTest(String treeName,
                          boolean supportDuplex)

AidaTreeServerTest

public AidaTreeServerTest(String treeName,
                          boolean supportDuplex,
                          long serverUpdateInterval)
Method Detail

initServerTest

public void initServerTest()

disconnect

public boolean disconnect(Object client)

connectDuplex

public AidaTreeServant connectDuplex(AidaTreeClient client)
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 client)
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 v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.