FreeHEP API
Version v1.2.2

hep.aida.ref.remote.testRemote
Class AidaTreeServantTest

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

public class AidaTreeServantTest
extends Object
implements AidaTreeServant

This is a very simple implementation of AidaTreeServant that just delegates most of the methods to the TestUtils class.

Author:
serbo

Field Summary
static long serverUpdateInterval
           
 
Constructor Summary
AidaTreeServantTest(AidaTreeClient client)
          Creates a new instance of AidaTreeServantTest
AidaTreeServantTest(AidaTreeClient client, boolean duplex)
           
AidaTreeServantTest(AidaTreeClient client, boolean duplex, long serverUpdateInterval)
           
 
Method Summary
 boolean disconnect()
           
 Object find(String path)
          Get the IManagedObject, at a given path in the ITree.
 void initServantTest()
           
 String[] listObjectNames(String path)
          Get the list of names of the IManagedObjects under a given path, including directories (but not "." and "..").
 String[] listObjectTypes(String path)
          Get the list of types of the IManagedObjects under a given path.
 void setValid(String[] nodePaths)
          This method can be called by AidaTreeClient to tell AidaTreeServant that it is ready to receive information about changes/updates of particular set of IManagedObjects.
 void startUpdateThread()
           
 AidaUpdateEvent[] updates()
          This method can be called by AidaTreeClient to get list of current updates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverUpdateInterval

public static long serverUpdateInterval
Constructor Detail

AidaTreeServantTest

public AidaTreeServantTest(AidaTreeClient client)
Creates a new instance of AidaTreeServantTest


AidaTreeServantTest

public AidaTreeServantTest(AidaTreeClient client,
                           boolean duplex)

AidaTreeServantTest

public AidaTreeServantTest(AidaTreeClient client,
                           boolean duplex,
                           long serverUpdateInterval)
Method Detail

initServantTest

public void initServantTest()

startUpdateThread

public void startUpdateThread()

disconnect

public boolean disconnect()

find

public Object find(String path)
Description copied from interface: AidaTreeServant
Get the IManagedObject, at a given path in the ITree. The path is an absolute path from the ITree root.

Specified by:
find in interface AidaTreeServant

listObjectNames

public String[] listObjectNames(String path)
Description copied from interface: AidaTreeServant
Get the list of names of the IManagedObjects under a given path, including directories (but not "." and ".."). Directories end with "/". The returned names are appended to the given path unless the latter is "." The path is an absolute path from the ITree root.

Specified by:
listObjectNames in interface AidaTreeServant

listObjectTypes

public String[] listObjectTypes(String path)
Description copied from interface: AidaTreeServant
Get the list of types of the IManagedObjects under a given path. The types are the leaf class of the Interface, e.g. "IHistogram1D", "ITuple", etc. Directories are marked with "dir". The order of the types is the same as the order for the listObjectNames() method to achieve a one-to-one correspondance between object names and types. The path is an absolute path from the ITree root.

Specified by:
listObjectTypes in interface AidaTreeServant

setValid

public void setValid(String[] nodePaths)
Description copied from interface: AidaTreeServant
This method can be called by AidaTreeClient to tell AidaTreeServant that it is ready to receive information about changes/updates of particular set of IManagedObjects.

Specified by:
setValid in interface AidaTreeServant

updates

public AidaUpdateEvent[] updates()
Description copied from interface: AidaTreeServant
This method can be called by AidaTreeClient to get list of current updates.

Specified by:
updates in interface AidaTreeServant

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.