FreeHEP API
Version v1.2.2

hep.aida.ref.remote.testRemote
Class AidaTreeClientTest

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

public class AidaTreeClientTest
extends Object
implements AidaTreeClient

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

Author:
serbo

Field Summary
static long serverUpdateInterval
           
 
Constructor Summary
AidaTreeClientTest(IDevMutableStore store)
          Creates a new instance of AidaTreeClientTest
AidaTreeClientTest(IDevMutableStore store, boolean duplex)
           
AidaTreeClientTest(IDevMutableStore store, boolean duplex, long serverUpdateInterval)
           
 
Method Summary
 boolean connect()
           
 boolean disconnect()
           
 Object find(String path)
           
 void initTestClient()
           
 boolean isConnected()
           
 String[] listObjectNames(String path)
           
 String[] listObjectTypes(String path)
           
 void startUpdateThread()
           
 void stateChanged(AidaUpdateEvent[] events)
          This method can be called by AidaTreeServant to notify AideTreeClient about updates in the server-side ITree.
 
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

AidaTreeClientTest

public AidaTreeClientTest(IDevMutableStore store)
Creates a new instance of AidaTreeClientTest


AidaTreeClientTest

public AidaTreeClientTest(IDevMutableStore store,
                          boolean duplex)

AidaTreeClientTest

public AidaTreeClientTest(IDevMutableStore store,
                          boolean duplex,
                          long serverUpdateInterval)
Method Detail

initTestClient

public void initTestClient()

startUpdateThread

public void startUpdateThread()

connect

public boolean connect()
                throws RemoteConnectionException
RemoteConnectionException

disconnect

public boolean disconnect()

find

public Object find(String path)
            throws IllegalArgumentException
IllegalArgumentException

isConnected

public boolean isConnected()

listObjectNames

public String[] listObjectNames(String path)
                         throws IllegalArgumentException
IllegalArgumentException

listObjectTypes

public String[] listObjectTypes(String path)
                         throws IllegalArgumentException
IllegalArgumentException

stateChanged

public void stateChanged(AidaUpdateEvent[] events)
Description copied from interface: AidaTreeClient
This method can be called by AidaTreeServant to notify AideTreeClient about updates in the server-side ITree. If "Duplex Mode" is not used, AideTreeClient has to call updates() method of AideTreeServant to get a list of current updates.

Specified by:
stateChanged in interface AidaTreeClient

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.