FreeHEP API
Version current

hep.aida.ref.remote.basic
Class BasicTreeServer

java.lang.Object
  extended byhep.aida.ref.remote.basic.BasicTreeServer
All Implemented Interfaces:
AidaTreeServer

public class BasicTreeServer
extends Object
implements AidaTreeServer

Basic implementation of the AidaTreeServer, no remote stuff.

Author:
serbo
Source Code:
BasicTreeServer.java

Field Summary
protected  Hashtable hash
           
protected  hep.aida.ITree tree
           
protected  String treeName
           
 
Constructor Summary
BasicTreeServer(hep.aida.ITree tree)
          Creates a new instance of BasicTreeServer
BasicTreeServer(hep.aida.ITree tree, String treeName)
           
 
Method Summary
 void close()
           
 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.
protected  boolean disconnectClient(Object client)
           
 boolean disconnectDuplex(AidaTreeClient client)
           
 boolean disconnectNonDuplex(String clientID)
           
protected  void init()
           
 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
 

Field Detail

tree

protected hep.aida.ITree tree

treeName

protected String treeName

hash

protected Hashtable hash
Constructor Detail

BasicTreeServer

public BasicTreeServer(hep.aida.ITree tree)
Creates a new instance of BasicTreeServer


BasicTreeServer

public BasicTreeServer(hep.aida.ITree tree,
                       String treeName)
Method Detail

init

protected void init()

disconnectClient

protected boolean disconnectClient(Object client)

close

public void close()

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 current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.