|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.jtopenlite.HostServerConnection
com.ibm.jtopenlite.command.CommandConnection
public class CommandConnection
Represents a TCP/IP socket connection to the System i Remote Command host server (QSYSWRK/QZRCSRVS prestart jobs).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ibm.jtopenlite.HostServerConnection |
|---|
HostServerConnection.HostInputStream, HostServerConnection.HostOutputStream |
| Field Summary | |
|---|---|
static int |
DEFAULT_COMMAND_SERVER_PORT
The default TCP/IP port the Remote Command host server listens on. |
| Fields inherited from class com.ibm.jtopenlite.HostServerConnection |
|---|
in_, out_ |
| Method Summary | |
|---|---|
CommandResult |
call(Program pgm)
Calls the specified program and returns the result. |
CommandResult |
call(String pgmLibrary,
String pgmName,
Parameter[] parms)
Calls the specified program using the specified parameter data and returns the result. |
CommandResult |
execute(String cmd)
Executes the specified CL command string and returns the result. |
static CommandConnection |
getConnection(String system,
String user,
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,
String user,
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,
String user,
String password,
int commandPort,
boolean compress)
Connects to the Remote Command host server on the specified port using the specified system information and user. |
protected void |
sendEndJobRequest()
|
| Methods inherited from class com.ibm.jtopenlite.HostServerConnection |
|---|
close, connect, finalize, getEncryptedPassword, getInfo, getJobName, getUser, isClosed, isDatastreamDebug, isDefaultDatastreamDebug, setDatastreamDebug, writePadEBCDIC, writePadEBCDIC10, writeStringToUnicodeBytes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_COMMAND_SERVER_PORT
PortMapper class to determine the port.
| Method Detail |
|---|
protected void sendEndJobRequest()
throws IOException
sendEndJobRequest in class HostServerConnectionIOException
public static CommandConnection getConnection(String system,
String user,
String password)
throws IOException
IOException
public static CommandConnection getConnection(SystemInfo info,
String user,
String password)
throws IOException
IOException
public static CommandConnection getConnection(SystemInfo info,
String user,
String password,
int commandPort,
boolean compress)
throws IOException
IOException
public CommandResult call(String pgmLibrary,
String pgmName,
Parameter[] parms)
throws IOException
IOException
public CommandResult call(Program pgm)
throws IOException
IOException
public CommandResult execute(String cmd)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||