FreeHEP API
Version current

hep.aida.ref.remote
Class RemoteTreeUpdater

java.lang.Object
  extended byhep.aida.ref.remote.RemoteTreeUpdater
All Implemented Interfaces:
Runnable

public class RemoteTreeUpdater
extends Object
implements Runnable

This class can be used to force updates to RemoteManagedObjects in a Tree. It scans the Tree recursively down from the "updatePath" and sets RemoteManagedObject.setDataValid(false) on any RemoteManagedObject that is currently been watched

Author:
serbo
Source Code:
RemoteTreeUpdater.java

Constructor Summary
RemoteTreeUpdater(hep.aida.ITree tree)
          Creates a new instance of AisTreeUpdater
RemoteTreeUpdater(hep.aida.ITree tree, long updateInterval)
           
RemoteTreeUpdater(hep.aida.ITree tree, long updateInterval, String updatePath)
           
 
Method Summary
 long getUpdateInterval()
           
 String getUpdatePath()
           
 boolean isUpdating()
           
 void run()
           
 void setUpdateInterval(long updateInterval)
          updateInterval is defined in milliseconds
 void setUpdatePath(String updatePath)
          updatePath is the top node in the Tree down from where updates are performed recursively
 void startUpdating()
           
 void stopUpdating(boolean urgent)
           
 int updateTree(String pathString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteTreeUpdater

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


RemoteTreeUpdater

public RemoteTreeUpdater(hep.aida.ITree tree,
                         long updateInterval)

RemoteTreeUpdater

public RemoteTreeUpdater(hep.aida.ITree tree,
                         long updateInterval,
                         String updatePath)
Method Detail

setUpdateInterval

public void setUpdateInterval(long updateInterval)
updateInterval is defined in milliseconds


getUpdateInterval

public long getUpdateInterval()

setUpdatePath

public void setUpdatePath(String updatePath)
updatePath is the top node in the Tree down from where updates are performed recursively


getUpdatePath

public String getUpdatePath()

isUpdating

public boolean isUpdating()

startUpdating

public void startUpdating()

stopUpdating

public void stopUpdating(boolean urgent)

updateTree

public int updateTree(String pathString)

run

public void run()
Specified by:
run in interface Runnable

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.