FreeHEP API
Version v1.2.2

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

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)
           
 String[] listObjectTypes(String path)
           
 void setValid(String[] nodePaths)
           
 void stateChanged(AidaUpdateEvent[] events)
          This method can be called by AidaTreeServant to notify AideTreeClient 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

findConverter

protected RmiConverter findConverter(String aidaType)

find

public Object find(String path)
            throws RemoteException
Specified by:
find in interface RmiServant
RemoteException

listObjectNames

public String[] listObjectNames(String path)
                         throws RemoteException
Specified by:
listObjectNames in interface RmiServant
RemoteException

listObjectTypes

public String[] listObjectTypes(String path)
                         throws RemoteException
Specified by:
listObjectTypes in interface RmiServant
RemoteException

setValid

public void setValid(String[] nodePaths)
              throws RemoteException
Specified by:
setValid in interface RmiServant
RemoteException

updates

public AidaUpdateEvent[] updates()
                          throws RemoteException
Specified by:
updates in interface RmiServant
RemoteException

stateChanged

public void stateChanged(AidaUpdateEvent[] events)
Description copied from interface: AidaTreeClient
This method can be called by AidaTreeServant to notify AideTreeClient 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 v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.