Package adams.scripting.connection
Interface Connection
-
- All Superinterfaces:
CleanUpHandler
,Comparable<Connection>
,Destroyable
,OptionHandler
,QuickInfoSupporter
- All Known Implementing Classes:
AbstractConnection
,AbstractConnectionEnhancer
,AbstractMultiConnection
,AbstractSSHConnection
,AbstractSSHConnectionWithPortForwarding
,DefaultConnection
,FTPConnection
,LoadBalancer
,Multicast
,ScpConnection
,SSHConnection
public interface Connection extends OptionHandler, CleanUpHandler, Comparable<Connection>, QuickInfoSupporter
Interface for class that handle connections for remote commands.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
sendRequest(RemoteCommand cmd, RemoteCommandProcessor processor)
Sends the request command.String
sendResponse(RemoteCommand cmd, RemoteCommandProcessor processor)
Sends the response command.-
Methods inherited from interface adams.core.CleanUpHandler
cleanUp
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.core.QuickInfoSupporter
getQuickInfo
-
-
-
-
Method Detail
-
sendRequest
String sendRequest(RemoteCommand cmd, RemoteCommandProcessor processor)
Sends the request command.- Parameters:
cmd
- the command to sendprocessor
- the processor for formatting/parsing- Returns:
- null if successful, otherwise error message
-
sendResponse
String sendResponse(RemoteCommand cmd, RemoteCommandProcessor processor)
Sends the response command.- Parameters:
cmd
- the command to sendprocessor
- the processor for formatting/parsing- Returns:
- null if successful, otherwise error message
-
-