FreeHEP API
Version current

hep.aida.ref.remote.rmi.client
Class RmiClientImpl

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byhep.aida.ref.remote.rmi.client.RmiClientImpl
All Implemented Interfaces:
AidaTreeServant, Remote, RmiClient, Serializable

public class RmiClientImpl
extends UnicastRemoteObject
implements RmiClient, AidaTreeServant

Author:
serbo
See Also:
Serialized Form
Source Code:
RmiClientImpl.java

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RmiClientImpl(AidaTreeClient aidaClient, boolean duplex)
           
RmiClientImpl(boolean duplex)
          Creates a new instance of RmiClientImpl
RmiClientImpl(RmiServant rmiServant, AidaTreeClient aidaClient, boolean duplex)
           
RmiClientImpl(RmiServant rmiServant, boolean duplex)
           
 
Method Summary
 Object find(String path)
          Get the IManagedObject, at a given path in the ITree.
 String getBindName()
           
 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 setValid(String[] nodePaths)
          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(AidaUpdateEvent[] events)
           
 AidaUpdateEvent[] updates()
          This method can be called by AidaTreeClient to get list of current 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

RmiClientImpl

public RmiClientImpl(boolean duplex)
              throws MalformedURLException,
                     RemoteException,
                     UnknownHostException
Creates a new instance of RmiClientImpl


RmiClientImpl

public RmiClientImpl(RmiServant rmiServant,
                     boolean duplex)
              throws MalformedURLException,
                     RemoteException,
                     UnknownHostException

RmiClientImpl

public RmiClientImpl(AidaTreeClient aidaClient,
                     boolean duplex)
              throws MalformedURLException,
                     RemoteException,
                     UnknownHostException

RmiClientImpl

public RmiClientImpl(RmiServant rmiServant,
                     AidaTreeClient aidaClient,
                     boolean duplex)
              throws MalformedURLException,
                     RemoteException,
                     UnknownHostException
Method Detail

getBindName

public String getBindName()
                   throws RemoteException
Specified by:
getBindName in interface RmiClient
Throws:
RemoteException

stateChanged

public void stateChanged(AidaUpdateEvent[] events)
                  throws RemoteException
Specified by:
stateChanged in interface RmiClient
Throws:
RemoteException

find

public Object find(String path)
Description copied from interface: AidaTreeServant
Get the IManagedObject, at a given path in the ITree. The path is an absolute path from the ITree root.

Specified by:
find in interface AidaTreeServant

listObjectNames

public String[] listObjectNames(String path,
                                boolean recursive)
Description copied from interface: AidaTreeServant
Get the list of names of the IManagedObjects under a given path, including directories (but not "." and ".."). Directories end with "/". The returned names are appended to the given path unless the latter is "." The path is an absolute path from the ITree root.

Specified by:
listObjectNames in interface AidaTreeServant

listObjectTypes

public String[] listObjectTypes(String path,
                                boolean recursive)
Description copied from interface: AidaTreeServant
Get the list of types of the IManagedObjects under a given path. The types are the leaf class of the Interface, e.g. "IHistogram1D", "ITuple", etc. Directories are marked with "dir". The order of the types is the same as the order for the listObjectNames() method to achieve a one-to-one correspondance between object names and types. The path is an absolute path from the ITree root.

Specified by:
listObjectTypes in interface AidaTreeServant

setValid

public void setValid(String[] nodePaths)
Description copied from interface: AidaTreeServant
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.

Specified by:
setValid in interface AidaTreeServant

updates

public AidaUpdateEvent[] updates()
Description copied from interface: AidaTreeServant
This method can be called by AidaTreeClient to get list of current updates.

Specified by:
updates in interface AidaTreeServant

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.