public class CmsRemoteShell extends java.rmi.server.UnicastRemoteObject implements I_CmsRemoteShell
Constructor and Description |
---|
CmsRemoteShell(java.lang.String additionalCommandsName,
int port)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
end()
Signals to the remote object that the client is done with it (i.e. it can be disposed).
|
CmsShellCommandResult |
executeCommand(java.lang.String cmd,
java.util.List<java.lang.String> params)
Executes a shell command .
|
java.lang.String |
getPrompt()
Returns the initial prompt to use.
|
static void |
unregisterAll()
Removes and unexports all instances.
|
clone, exportObject, exportObject, exportObject, unexportObject
public CmsRemoteShell(java.lang.String additionalCommandsName, int port) throws CmsException, java.rmi.RemoteException
additionalCommandsName
- a class name for an additional shell commands class (may be null)port
- the port to useCmsException
- if something goes wrongjava.rmi.RemoteException
- if RMI stuff goes wrongpublic static void unregisterAll()
public void end()
I_CmsRemoteShell
end
in interface I_CmsRemoteShell
I_CmsRemoteShell.end()
public CmsShellCommandResult executeCommand(java.lang.String cmd, java.util.List<java.lang.String> params)
I_CmsRemoteShell
executeCommand
in interface I_CmsRemoteShell
cmd
- the commandparams
- the parametersI_CmsRemoteShell.executeCommand(java.lang.String, java.util.List)
public java.lang.String getPrompt()
I_CmsRemoteShell
getPrompt
in interface I_CmsRemoteShell
I_CmsRemoteShell.getPrompt()