|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.aida.ref.remote.RemoteServant
This is implementation of the AidaTreeServant. It mainly deals with the Tree and Tree Objects - change in Tree structure, updates of Tree Objects' Data, etc. This class does not have any remote transport layer (RMI, CORBA, etc.), so special adapter classes, like RmiRemoteServant, are used to provide such functionality. The default for useValidation = true;
Field Summary | |
protected boolean |
blocking
|
protected Logger |
remoteLogger
|
protected boolean |
useValidation
|
Constructor Summary | |
RemoteServant(IDevTree tree,
AidaTreeClient client)
|
|
RemoteServant(IDevTree tree,
String clientID)
Creates a new instance of RemoteServant |
Method Summary | |
void |
close()
Close all connections and release all allocated resources. |
Object |
find(String path)
Just return an IManagedObject itself. |
boolean |
getAppendAxisType()
|
protected void |
init()
|
boolean |
isBlocking()
|
String[] |
listObjectNames(String path,
boolean recursive)
Get the list of names of the IManagedObjects under a given path, including directories (but not "." and ".."). |
String[] |
listObjectTypes(String path,
boolean recursive)
Get the list of types of the IManagedObjects under a given path. |
void |
setAppendAxisType(boolean a)
|
void |
setBlocking(boolean b)
|
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 path)
|
void |
setValid(String[] path)
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)
Mainly this method translates Tree, DataPointSet, Histogram, etc. |
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 |
protected boolean blocking
protected boolean useValidation
protected Logger remoteLogger
Constructor Detail |
public RemoteServant(IDevTree tree, String clientID)
public RemoteServant(IDevTree tree, AidaTreeClient client)
Method Detail |
public void setAppendAxisType(boolean a)
public boolean getAppendAxisType()
public void setBlocking(boolean b)
public boolean isBlocking()
protected void init()
public void setUseValidation(boolean state)
public void close()
public void setValid(String path)
public Object find(String path)
find
in interface AidaTreeServant
public String[] listObjectNames(String path, boolean recursive)
AidaTreeServant
listObjectNames
in interface AidaTreeServant
public String[] listObjectTypes(String path, boolean recursive)
AidaTreeServant
listObjectTypes
in interface AidaTreeServant
public void setValid(String[] path)
AidaTreeServant
setValid
in interface AidaTreeServant
public AidaUpdateEvent[] updates()
AidaTreeServant
updates
in interface AidaTreeServant
public void stateChanged(EventObject ev)
stateChanged
in interface AIDAListener
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |