Package org.opencms.rmi
Class CmsRemoteShellClient
java.lang.Object
org.opencms.rmi.CmsRemoteShellClient
Client application used to connect locally to the CmsShell server.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Command parameter for passing an additional shell commands class name.static final String
Command parameter for controlling the host to use for the initial RMI lookup.static final String
Command parameter for controlling the port to use for the initial RMI lookup.static final String
Command parameter for passing a shell script file name. -
Constructor Summary
-
Method Summary
-
Field Details
-
PARAM_ADDITIONAL
Command parameter for passing an additional shell commands class name.- See Also:
-
PARAM_REGISTRY_PORT
Command parameter for controlling the port to use for the initial RMI lookup.- See Also:
-
PARAM_REGISTRY_HOST
Command parameter for controlling the host to use for the initial RMI lookup.- See Also:
-
PARAM_SCRIPT
Command parameter for passing a shell script file name.- See Also:
-
-
Constructor Details
-
CmsRemoteShellClient
Creates a new instance.- Parameters:
args
- the parameters- Throws:
IOException
- if something goes wrong
-
-
Method Details
-
main
Main method, which starts the shell client.- Parameters:
args
- the command line arguments- Throws:
Exception
- if something goes wrong
-
parseArgs
Validates, parses and returns the command line arguments.- Parameters:
args
- the command line arguments- Returns:
- the map of parsed arguments
-
run
Main loop of the shell server client.Reads commands from either stdin or a file, executes them remotely and displays the results.
- Throws:
Exception
- if something goes wrong
-