public class CommandConnection extends HostServerConnection
CallCommand
for sample program that uses CommandConnection.HostServerConnection.HostInputStream, HostServerConnection.HostOutputStream
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COMMAND_SERVER_PORT
The default TCP/IP port the Remote Command host server listens on.
|
static int |
DEFAULT_SSL_COMMAND_SERVER_PORT |
in_, out_
Modifier and Type | Method and Description |
---|---|
CommandResult |
call(Program pgm)
Calls the specified program and returns the result.
|
CommandResult |
call(java.lang.String pgmLibrary,
java.lang.String pgmName,
Parameter[] parms)
Calls the specified program using the specified parameter data and returns the result.
|
CommandResult |
execute(java.lang.String cmd)
Executes the specified CL command string and returns the result.
|
int |
getCcsid()
Get the CCSID used by the connection
|
static CommandConnection |
getConnection(boolean isSSL,
java.lang.String system,
java.lang.String user,
java.lang.String password)
Connects to the Remote Command host server on the default port after first connecting
to the Signon host server and authenticating the specified user.
|
static CommandConnection |
getConnection(boolean isSSL,
SystemInfo info,
java.lang.String user,
java.lang.String password)
Connects to the Remote Command host server on the default port using the specified system information and user.
|
static CommandConnection |
getConnection(boolean isSSL,
SystemInfo info,
java.lang.String user,
java.lang.String password,
int commandPort,
boolean compress)
Connects to the Remote Command host server on the specified port using the specified system information and user.
|
static CommandConnection |
getConnection(java.lang.String system,
java.lang.String user,
java.lang.String password)
Connects to the Remote Command host server on the default port after first connecting
to the Signon host server and authenticating the specified user.
|
static CommandConnection |
getConnection(SystemInfo info,
java.lang.String user,
java.lang.String password)
Connects to the Remote Command host server on the default port using the specified system information and user.
|
static CommandConnection |
getConnection(SystemInfo info,
java.lang.String user,
java.lang.String password,
int commandPort,
boolean compress)
Connects to the Remote Command host server on the specified port using the specified system information and user.
|
java.lang.String |
getNLV()
Get the NLV used by the connection
|
protected void |
sendEndJobRequest() |
close, connect, finalize, getBytesReceived, getBytesSent, getEncryptedPassword, getInfo, getJobName, getUser, isClosed, isDatastreamDebug, isDefaultDatastreamDebug, setDatastreamDebug, setDefaultDatastreamDebug, writePadEBCDIC, writePadEBCDIC10, writeStringToUnicodeBytes
public static final int DEFAULT_COMMAND_SERVER_PORT
PortMapper
class to determine the port.public static final int DEFAULT_SSL_COMMAND_SERVER_PORT
protected void sendEndJobRequest() throws java.io.IOException
sendEndJobRequest
in class HostServerConnection
java.io.IOException
public java.lang.String getNLV()
public int getCcsid()
public static CommandConnection getConnection(java.lang.String system, java.lang.String user, java.lang.String password) throws java.io.IOException
java.io.IOException
public static CommandConnection getConnection(boolean isSSL, java.lang.String system, java.lang.String user, java.lang.String password) throws java.io.IOException
java.io.IOException
public static CommandConnection getConnection(SystemInfo info, java.lang.String user, java.lang.String password) throws java.io.IOException
java.io.IOException
public static CommandConnection getConnection(boolean isSSL, SystemInfo info, java.lang.String user, java.lang.String password) throws java.io.IOException
java.io.IOException
public static CommandConnection getConnection(SystemInfo info, java.lang.String user, java.lang.String password, int commandPort, boolean compress) throws java.io.IOException
java.io.IOException
public static CommandConnection getConnection(boolean isSSL, SystemInfo info, java.lang.String user, java.lang.String password, int commandPort, boolean compress) throws java.io.IOException
java.io.IOException
public CommandResult call(java.lang.String pgmLibrary, java.lang.String pgmName, Parameter[] parms) throws java.io.IOException
java.io.IOException
public CommandResult call(Program pgm) throws java.io.IOException
java.io.IOException
public CommandResult execute(java.lang.String cmd) throws java.io.IOException
java.io.IOException