|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
See:
Description
| Interface Summary | |
|---|---|
| Program | Used by classes that wish to implement a program call, this essentially represents a System i program (PGM). |
| Class Summary | |
|---|---|
| CommandConnection | Represents a TCP/IP socket connection to the System i Remote Command host server (QSYSWRK/QZRCSRVS prestart jobs). |
| CommandResult | The result of calling a program or command. |
| InputOutputParameter | Represents a program parameter to be used as both input and output. |
| InputParameter | Represents a program parameter to be used as input. |
| IntegerInputParameter | A specific kind of program parameter that represents a 4-byte integer value used as input. |
| NullParameter | Represents a program parameter that is null. |
| OutputParameter | Represents a program parameter to be used as output. |
| Parameter | Abstract parent class for all program parameters. |
| StringInputParameter | A specific kind of program parameter that represents a CCSID 37 String value as input. |
This package provides the ability to call commands on an IBM i host.
The CommandConnection class is used to establish
a connection to the command server. The following is a simple example of a program to
call a command on the server.
import com.ibm.jtopenlite.command.*;
public class CallCommand {
public static void main(String args[]) {
try {
String system = args[0];
String userid = args[1];
String password = args[2];
String command = args[3];
CommandConnection connection = CommandConnection.getConnection(
system, userid, password);
CommandResult result = connection.execute(command);
System.out.println(result);
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||