org.oddjob.rmi
Class RMIRegistryJob
java.lang.Object
org.oddjob.framework.BaseComponent
org.oddjob.framework.BasePrimary
org.oddjob.framework.SimpleJob
org.oddjob.rmi.RMIRegistryJob
- All Implemented Interfaces:
- Runnable, ArooaContextAware, ArooaSessionAware, Forceable, PropertyChangeNotifier, Iconic, LogEnabled, Resetable, Stateful
public class RMIRegistryJob
- extends SimpleJob
Description
A job which creates an RMI registry.- Author:
- Rob Gordon
Method Summary |
int |
execute()
Execute this job. |
int |
getPort()
Get the port number. |
void |
setPort(int port)
Set the port number to use. |
Methods inherited from class org.oddjob.framework.SimpleJob |
fireDestroyedState, force, getStateChanger, hardReset, onDestroy, onReset, onStop, run, sleep, softReset, stateHandler, stop |
Methods inherited from class org.oddjob.framework.BaseComponent |
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSession |
DEFAULT_PORT
public static final int DEFAULT_PORT
- The default port
- See Also:
- Constant Field Values
RMIRegistryJob
public RMIRegistryJob()
setPort
public void setPort(int port)
- Set the port number to use.
- Parameters:
port
- The port number.
getPort
public int getPort()
- Get the port number.
- Returns:
- The port number.
execute
public int execute()
throws Exception
- Description copied from class:
SimpleJob
- Execute this job.
- Specified by:
execute
in class SimpleJob
- Returns:
- 0 if the job is complete, anything else otherwise.
- Throws:
Exception
- If the unexpected occurs.