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:
- Serializable, Remote, NetcdfService
public class NetcdfServer
- extends UnicastRemoteObject
- implements NetcdfService
A UnicastRemoteObject implementation of NetcdfService.
- Version:
- $Revision: 1.4 $ $Date: 2002/05/29 18:31:35 $
- Author:
- $Author: steve $
- See Also:
- Serialized Form
NetcdfServer
public NetcdfServer(String[] exports,
Registry registry)
throws RemoteException,
AlreadyBoundException
- Throws:
RemoteException
AlreadyBoundException
setLog
public static void setLog(OutputStream out)
ping
public int ping()
throws 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
- Returns:
- 0
- Throws:
RemoteException
lookup
public NetcdfRemoteProxy lookup(String dataSetName)
throws 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
- Parameters:
dataSetName
- String name of the remote Netcdf
- Returns:
- NetcdfRemoteProxy which can be used to create
an instance of RemoteNetcdf.
- Throws:
RemoteException
list
public String[] list()
throws RemoteException
- Description copied from interface:
NetcdfService
- List the names of exported data sets.
- Specified by:
list
in interface NetcdfService
- Throws:
RemoteException
export
public void export(File ff)
export
public void export(String path)
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
startRegistry
public static Registry startRegistry()
throws RemoteException
- Throws:
RemoteException
checkRegistry
public static Registry checkRegistry(Registry regis,
int tryagain)
throws RemoteException
- Throws:
RemoteException
main
public static void main(String[] args)