hep.aida.ref.remote.rmi.server
Class RmiServerImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
hep.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
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
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
Copyright © 2000-2004 FreeHEP, All Rights Reserved.