Command executor for Java .
It is a SSH java client and a runtime client .
It support two type of connector.
- Runtime
Based on Java ProcessBuilder and Process classes - SSH
Based on JSCH project. It will cache the SSH connection
In progress
All command is subclass of AbstractCommand
- Console command
- Shell command
- Upload content command
- Upload file command
- Upload stream command
- Download file command
-
Runtime connector
Annotated by ConnectorLoginMapping(RuntimeLoginInformation.class)
-
SSH connector
Annotated by ConnectorLoginMapping(SSHLoginInformation.class)
- Runtime login information
- SSH login information
-
Running handler
CommandExecutionFinishedHandler
-
Finished handler
CommandExecutionRunningHandler
-
CommandExecutor.execute
It will create a connector by LoginInformation type.
When RuntimeLoginInformation is gaven, It will create a RuntimeConnector.
When SSHLoginInformation is gaven , It will create a SSHConnector.