hep.aida.ref.remote.rmi.server
Class RmiServantImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
hep.aida.ref.remote.rmi.server.RmiServantImpl
- All Implemented Interfaces:
- AidaTreeClient, Remote, RmiServant, Serializable
- public class RmiServantImpl
- extends UnicastRemoteObject
- implements RmiServant, AidaTreeClient
- Author:
- serbo
- See Also:
- Serialized Form
- Source Code:
- RmiServantImpl.java
RmiServantImpl
public RmiServantImpl()
throws RemoteException
- Creates a new instance of RmiClientImpl
RmiServantImpl
public RmiServantImpl(RmiClient rmiClient)
throws RemoteException
RmiServantImpl
public RmiServantImpl(AidaTreeServant aidaServant)
throws RemoteException
RmiServantImpl
public RmiServantImpl(RmiClient rmiClient,
AidaTreeServant aidaServant)
throws RemoteException
setUseValidation
public 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.
If useValidation = false, client receives all updates.
findConverter
protected RmiConverter findConverter(String aidaType)
find
public Object find(String path)
throws RemoteException
- Specified by:
find
in interface RmiServant
- Throws:
RemoteException
listObjectNames
public String[] listObjectNames(String path,
boolean recursive)
throws RemoteException
- Specified by:
listObjectNames
in interface RmiServant
- Throws:
RemoteException
listObjectTypes
public String[] listObjectTypes(String path,
boolean recursive)
throws RemoteException
- Specified by:
listObjectTypes
in interface RmiServant
- Throws:
RemoteException
setValid
public void setValid(String[] nodePaths)
throws RemoteException
- Specified by:
setValid
in interface RmiServant
- Throws:
RemoteException
updates
public AidaUpdateEvent[] updates()
throws RemoteException
- Specified by:
updates
in interface RmiServant
- Throws:
RemoteException
stateChanged
public void stateChanged(AidaUpdateEvent[] events)
- Description copied from interface:
AidaTreeClient
- This method can be called by AidaTreeServant to notify
AidaTreeClient 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
Copyright © 2000-2004 FreeHEP, All Rights Reserved.