public abstract class ExportedObject
extends java.rmi.server.UnicastRemoteObject
implements java.rmi.Remote
Constructor and Description |
---|
ExportedObject(java.lang.String remoteName)
Creates and exports the object.
|
ExportedObject(java.lang.String hostName,
java.lang.String remoteName)
Creates and exports the object.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Stops exporting the object
|
clone, exportObject, exportObject, exportObject, unexportObject
public ExportedObject(java.lang.String remoteName) throws java.rmi.RemoteException, java.net.MalformedURLException
remoteName
- the name to register the object under in the RMI registryjava.rmi.RemoteException
- if the object could not be boundjava.net.MalformedURLException
- if the object's name is illegalpublic ExportedObject(java.lang.String hostName, java.lang.String remoteName) throws java.rmi.RemoteException, java.net.MalformedURLException
hostName
- the hostname for this machineremoteName
- the name to register the object under in the RMI registryjava.rmi.RemoteException
- if the object could not be boundjava.net.MalformedURLException
- if the object's name or hostname is illegal