FreeHEP API
Version current

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

java.lang.Object
  extended byhep.aida.ref.remote.RemoteClient
      extended byhep.aida.ref.remote.rmi.client.RmiRemoteClient
All Implemented Interfaces:
AidaTreeClient, Runnable

public class RmiRemoteClient
extends RemoteClient

This class is implementation of AidaTreeClient interface, based on functionality of the RemoteClient class. It implements only one method - getServer(), that creates an AidaTreeServer wrapper (RmiAidaTreeServer) around the real RmiServer reference. This complex scheme is put in place to isolate the transport layer (RMI, CORBA, etc.) from the functional layer of working with the AIDA Tree, queues, events, threads.

Author:
serbo
Source Code:
RmiRemoteClient.java

Field Summary
 
Fields inherited from class hep.aida.ref.remote.RemoteClient
blocking, clientID, duplex, isConnected, keepUpdating, queue, remoteLogger, servant, server, store, updateInterval
 
Constructor Summary
RmiRemoteClient(IDevMutableStore store, boolean duplex, Map options)
           
RmiRemoteClient(IDevMutableStore store, Map options)
          Creates a new instance of RmiAidaTreeClient
 
Method Summary
 boolean disconnect()
           
protected  AidaTreeServer getServer()
          Retrieves reference to the AidaTreeServer.
protected  void init()
           
 
Methods inherited from class hep.aida.ref.remote.RemoteClient
connect, connectDuplex, connectNonDuplex, find, isBlocking, isConnected, listObjectNames, listObjectTypes, main, run, setBlocking, setDuplex, setUpdateTime, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmiRemoteClient

public RmiRemoteClient(IDevMutableStore store,
                       Map options)
Creates a new instance of RmiAidaTreeClient


RmiRemoteClient

public RmiRemoteClient(IDevMutableStore store,
                       boolean duplex,
                       Map options)
Method Detail

init

protected void init()
Overrides:
init in class RemoteClient

getServer

protected AidaTreeServer getServer()
Description copied from class: RemoteClient
Retrieves reference to the AidaTreeServer. Must be overwritten by subclasses.

Specified by:
getServer in class RemoteClient

disconnect

public boolean disconnect()
Overrides:
disconnect in class RemoteClient

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.