FreeHEP API
Version current

hep.aida.ref.remote.rmi.server
Class RmiServantImpl

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byhep.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

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RmiServantImpl()
          Creates a new instance of RmiClientImpl
RmiServantImpl(AidaTreeServant aidaServant)
           
RmiServantImpl(RmiClient rmiClient)
           
RmiServantImpl(RmiClient rmiClient, AidaTreeServant aidaServant)
           
 
Method Summary
 Object find(String path)
           
protected  RmiConverter findConverter(String aidaType)
           
 String[] listObjectNames(String path, boolean recursive)
           
 String[] listObjectTypes(String path, boolean recursive)
           
 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[] nodePaths)
           
 void stateChanged(AidaUpdateEvent[] events)
          This method can be called by AidaTreeServant to notify AidaTreeClient about updates in the server-side ITree.
 AidaUpdateEvent[] updates()
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.