FreeHEP API
Version current

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

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.RmiServerImpl
All Implemented Interfaces:
Remote, RmiServer, Serializable

public class RmiServerImpl
extends UnicastRemoteObject
implements RmiServer

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

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RmiServerImpl(AidaTreeServer aidaServer)
          Creates a new instance of RmiClientImpl
RmiServerImpl(AidaTreeServer aidaServer, String bindName)
           
 
Method Summary
 void connect()
           
 RmiServant connectDuplex(RmiClient client)
           
 RmiServant connectNonDuplex(String clientID)
           
 void disconnect()
           
 boolean disconnectDuplex(RmiClient client)
           
 boolean disconnectNonDuplex(String clientID)
           
 String getBindName()
           
static void main(String[] args)
           
 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.
 boolean supportDuplexMode()
           
 String treeName()
           
 
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

RmiServerImpl

public RmiServerImpl(AidaTreeServer aidaServer)
              throws MalformedURLException,
                     RemoteException,
                     UnknownHostException
Creates a new instance of RmiClientImpl


RmiServerImpl

public RmiServerImpl(AidaTreeServer aidaServer,
                     String bindName)
              throws MalformedURLException,
                     RemoteException,
                     UnknownHostException
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.


connect

public void connect()
             throws MalformedURLException,
                    RemoteException,
                    UnknownHostException
Throws:
MalformedURLException
RemoteException
UnknownHostException

disconnect

public void disconnect()

getBindName

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

connectDuplex

public RmiServant connectDuplex(RmiClient client)
                         throws RemoteException
Specified by:
connectDuplex in interface RmiServer
Throws:
RemoteException

connectNonDuplex

public RmiServant connectNonDuplex(String clientID)
                            throws RemoteException
Specified by:
connectNonDuplex in interface RmiServer
Throws:
RemoteException

disconnectDuplex

public boolean disconnectDuplex(RmiClient client)
                         throws RemoteException
Specified by:
disconnectDuplex in interface RmiServer
Throws:
RemoteException

disconnectNonDuplex

public boolean disconnectNonDuplex(String clientID)
                            throws RemoteException
Specified by:
disconnectNonDuplex in interface RmiServer
Throws:
RemoteException

supportDuplexMode

public boolean supportDuplexMode()
                          throws RemoteException
Specified by:
supportDuplexMode in interface RmiServer
Throws:
RemoteException

treeName

public String treeName()
                throws RemoteException
Specified by:
treeName in interface RmiServer
Throws:
RemoteException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.