ucar.netcdf
Class NetcdfServer
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--ucar.netcdf.NetcdfServer
- All Implemented Interfaces:
- NetcdfService, java.rmi.Remote, java.io.Serializable
- public class NetcdfServer
- extends java.rmi.server.UnicastRemoteObject
- implements NetcdfService
A UnicastRemoteObject implementation of NetcdfService.
- See Also:
- Serialized Form
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
|
Constructor Summary |
NetcdfServer(java.lang.String[] exports,
java.rmi.registry.Registry registry)
|
|
Method Summary |
static java.rmi.registry.Registry |
checkRegistry(java.rmi.registry.Registry regis,
int tryagain)
|
void |
export(java.io.File ff)
|
void |
export(java.lang.String path)
|
protected void |
finalize()
|
java.lang.String[] |
list()
List the names of exported data sets. |
NetcdfRemoteProxy |
lookup(java.lang.String dataSetName)
Connect to (open) a remote Netcdf dataSet by name. |
static void |
main(java.lang.String[] args)
|
int |
ping()
Test if the service is alive. |
static void |
setLog(java.io.OutputStream out)
|
static java.rmi.registry.Registry |
startRegistry()
|
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
NetcdfServer
public NetcdfServer(java.lang.String[] exports,
java.rmi.registry.Registry registry)
throws java.rmi.RemoteException,
java.rmi.AlreadyBoundException
setLog
public static void setLog(java.io.OutputStream out)
ping
public int ping()
throws java.rmi.RemoteException
- Description copied from interface:
NetcdfService
- Test if the service is alive.
Used by the automatic registration feature of the
NetcdfServer implementation.
- Specified by:
ping in interface NetcdfService
- Following copied from interface:
ucar.netcdf.NetcdfService
- Returns:
- 0
lookup
public NetcdfRemoteProxy lookup(java.lang.String dataSetName)
throws java.rmi.RemoteException
- Description copied from interface:
NetcdfService
- Connect to (open) a remote Netcdf dataSet by name.
If the name is not the same as one obtainable from
the list() opteration on this service, then this method
will fail.
- Specified by:
lookup in interface NetcdfService
- Following copied from interface:
ucar.netcdf.NetcdfService
- Parameters:
dataSetName - String name of the remote Netcdf- Returns:
- NetcdfRemoteProxy which can be used to create
an instance of RemoteNetcdf.
list
public java.lang.String[] list()
throws java.rmi.RemoteException
- Description copied from interface:
NetcdfService
- List the names of exported data sets.
- Specified by:
list in interface NetcdfService
export
public void export(java.io.File ff)
export
public void export(java.lang.String path)
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize in class java.lang.Object
startRegistry
public static java.rmi.registry.Registry startRegistry()
throws java.rmi.RemoteException
checkRegistry
public static java.rmi.registry.Registry checkRegistry(java.rmi.registry.Registry regis,
int tryagain)
throws java.rmi.RemoteException
main
public static void main(java.lang.String[] args)