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, unexportObjectpublic 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_CmsRemoteShellend in interface I_CmsRemoteShellI_CmsRemoteShell.end()public CmsShellCommandResult executeCommand(java.lang.String cmd, java.util.List<java.lang.String> params)
I_CmsRemoteShellexecuteCommand in interface I_CmsRemoteShellcmd - the commandparams - the parametersI_CmsRemoteShell.executeCommand(java.lang.String, java.util.List)public java.lang.String getPrompt()
I_CmsRemoteShellgetPrompt in interface I_CmsRemoteShellI_CmsRemoteShell.getPrompt()