| 
FreeHEP API Version current  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
hep.aida.ref.remote.basic.BasicTreeServant
Basic implementation of the AidaTreeServant, no remote stuff.
| Field Summary | |
protected  AidaTreeClient | 
client
 | 
protected  String | 
clientID
 | 
protected  boolean | 
duplex
 | 
protected  boolean | 
keepRunning
 | 
protected  ServerQueue | 
queue
 | 
protected  Vector | 
sources
 | 
protected  hep.aida.ITree | 
tree
 | 
protected  boolean | 
useValidation
 | 
| Fields inherited from class java.lang.Thread | 
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY | 
| Constructor Summary | |
BasicTreeServant(hep.aida.ITree tree,
                 AidaTreeClient client)
 | 
|
BasicTreeServant(hep.aida.ITree tree,
                 String clientID)
Creates a new instance of BasicTreeServant  | 
|
| Method Summary | |
 void | 
close()
 | 
 Object | 
find(String path)
Get the IManagedObject, at a given path in the ITree.  | 
protected  void | 
init()
 | 
 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.  | 
static void | 
main(String[] args)
 | 
 void | 
run()
 | 
 void | 
setUseValidation(boolean state)
If useValidation = true, client has to call "setValid" method after receiving update from the ManagedObject in order to reseive next update.  | 
 void | 
setValid(String[] paths)
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 | 
stateChanged(EventObject ev)
Create new UpdateEvent from the EventObject and put it in the queue of current updates.  | 
 UpdateEvent[] | 
updates()
This method can be used only in non-Duplex mode.  | 
| Methods inherited from class java.lang.Thread | 
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected hep.aida.ITree tree
protected AidaTreeClient client
protected String clientID
protected boolean duplex
protected boolean keepRunning
protected Vector sources
protected ServerQueue queue
protected boolean useValidation
| Constructor Detail | 
public BasicTreeServant(hep.aida.ITree tree,
                        String clientID)
public BasicTreeServant(hep.aida.ITree tree,
                        AidaTreeClient client)
| Method Detail | 
protected void init()
public void setUseValidation(boolean state)
public void close()
public Object find(String path)
AidaTreeServant
find in interface AidaTreeServantpublic String[] listObjectNames(String path)
AidaTreeServant
listObjectNames in interface AidaTreeServantpublic String[] listObjectTypes(String path)
AidaTreeServant
listObjectTypes in interface AidaTreeServantpublic void setValid(String[] paths)
AidaTreeServant
setValid in interface AidaTreeServantpublic UpdateEvent[] updates()
updates in interface AidaTreeServantpublic void stateChanged(EventObject ev)
stateChanged in interface AIDAListenerpublic void run()
run in interface Runnablepublic static void main(String[] args)
  | 
FreeHEP API Version current  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||