visad
Class RemoteServerImpl
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- visad.RemoteServerImpl
-
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, RemoteServer
public class RemoteServerImpl extends java.rmi.server.UnicastRemoteObject implements RemoteServer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description RemoteServerImpl()RemoteServerImpl(RemoteDataReferenceImpl[] rs)RemoteServerImpl(RemoteDataReferenceImpl[] rs, RemoteDisplayImpl[] rd)construct a RemoteServerImpl and initialize it with an array of RemoteDataReferenceImplsRemoteServerImpl(RemoteDisplayImpl[] rd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddDataReference(DataReferenceImpl ref)Add a DataReferenceImpl to server (after wrapping it in a RemoteDataReferenceImpl)voidaddDataReference(RemoteDataReferenceImpl ref)add a new RemoteDataReferenceImpl to server and extend arrayvoidaddDisplay(DisplayImpl di)add DisplayImpl to server (after wrapping it in a RemoteDisplayImpl)voidaddDisplay(RemoteDisplayImpl rd)add a new RemoteDisplayImpl to server and extend arrayRemoteDataReferencegetDataReference(int index)get a RemoteDataReference by indexRemoteDataReferencegetDataReference(java.lang.String name)get a RemoteDataReference by nameRemoteDataReference[]getDataReferences()return array of all RemoteDataReferences in this RemoteServerRemoteDisplaygetDisplay(int index)get a RemoteDisplay by indexRemoteDisplaygetDisplay(java.lang.String name)get a RemoteDisplay by nameRemoteDisplay[]getDisplays()return array of all RemoteDisplays in this RemoteServervoidremoveDataReference(RemoteDataReferenceImpl ref)remove a RemoteDataReferenceImpl from server and shrink size of arrayvoidremoveDisplay(RemoteDisplayImpl rd)remove a RemoteDisplayImpl from server and shrink size of arrayvoidsetDataReference(int index, RemoteDataReferenceImpl ref)set one RemoteDataReference in the array on this RemoteServer (and extend length of array if necessary)voidsetDataReferences(RemoteDataReferenceImpl[] rs)set array of all RemoteDataReferences on this RemoteServervoidsetDisplays(RemoteDisplayImpl[] rd)set all RemoteDisplayImpls to serve-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
-
-
-
-
Constructor Detail
-
RemoteServerImpl
public RemoteServerImpl() throws java.rmi.RemoteException- Throws:
java.rmi.RemoteException
-
RemoteServerImpl
public RemoteServerImpl(RemoteDataReferenceImpl[] rs) throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
-
RemoteServerImpl
public RemoteServerImpl(RemoteDisplayImpl[] rd) throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
-
RemoteServerImpl
public RemoteServerImpl(RemoteDataReferenceImpl[] rs, RemoteDisplayImpl[] rd) throws java.rmi.RemoteException
construct a RemoteServerImpl and initialize it with an array of RemoteDataReferenceImpls- Throws:
java.rmi.RemoteException
-
-
Method Detail
-
getDataReference
public RemoteDataReference getDataReference(int index) throws java.rmi.RemoteException
get a RemoteDataReference by index- Specified by:
getDataReferencein interfaceRemoteServer- Throws:
java.rmi.RemoteException
-
getDataReference
public RemoteDataReference getDataReference(java.lang.String name) throws VisADException, java.rmi.RemoteException
get a RemoteDataReference by name- Specified by:
getDataReferencein interfaceRemoteServer- Throws:
VisADExceptionjava.rmi.RemoteException
-
getDataReferences
public RemoteDataReference[] getDataReferences() throws java.rmi.RemoteException
return array of all RemoteDataReferences in this RemoteServer- Specified by:
getDataReferencesin interfaceRemoteServer- Throws:
java.rmi.RemoteException
-
setDataReference
public void setDataReference(int index, RemoteDataReferenceImpl ref) throws VisADExceptionset one RemoteDataReference in the array on this RemoteServer (and extend length of array if necessary)- Throws:
VisADException
-
addDataReference
public void addDataReference(DataReferenceImpl ref) throws java.rmi.RemoteException
Add a DataReferenceImpl to server (after wrapping it in a RemoteDataReferenceImpl)- Throws:
java.rmi.RemoteException
-
addDataReference
public void addDataReference(RemoteDataReferenceImpl ref)
add a new RemoteDataReferenceImpl to server and extend array- Specified by:
addDataReferencein interfaceRemoteServer
-
setDataReferences
public void setDataReferences(RemoteDataReferenceImpl[] rs)
set array of all RemoteDataReferences on this RemoteServer- Specified by:
setDataReferencesin interfaceRemoteServer
-
removeDataReference
public void removeDataReference(RemoteDataReferenceImpl ref)
remove a RemoteDataReferenceImpl from server and shrink size of array- Specified by:
removeDataReferencein interfaceRemoteServer
-
getDisplays
public RemoteDisplay[] getDisplays() throws java.rmi.RemoteException
return array of all RemoteDisplays in this RemoteServer- Specified by:
getDisplaysin interfaceRemoteServer- Throws:
java.rmi.RemoteException
-
getDisplay
public RemoteDisplay getDisplay(int index)
get a RemoteDisplay by index- Specified by:
getDisplayin interfaceRemoteServer
-
getDisplay
public RemoteDisplay getDisplay(java.lang.String name) throws VisADException, java.rmi.RemoteException
get a RemoteDisplay by name- Specified by:
getDisplayin interfaceRemoteServer- Throws:
VisADExceptionjava.rmi.RemoteException
-
addDisplay
public void addDisplay(DisplayImpl di) throws java.rmi.RemoteException
add DisplayImpl to server (after wrapping it in a RemoteDisplayImpl)- Throws:
java.rmi.RemoteException
-
addDisplay
public void addDisplay(RemoteDisplayImpl rd)
add a new RemoteDisplayImpl to server and extend array- Specified by:
addDisplayin interfaceRemoteServer
-
setDisplays
public void setDisplays(RemoteDisplayImpl[] rd)
set all RemoteDisplayImpls to serve- Specified by:
setDisplaysin interfaceRemoteServer
-
removeDisplay
public void removeDisplay(RemoteDisplayImpl rd)
remove a RemoteDisplayImpl from server and shrink size of array- Specified by:
removeDisplayin interfaceRemoteServer
-
-
DMelt 3.0 © DataMelt by jWork.ORG