com.ibm.jtopenlite
Class PortMapper

java.lang.Object
  extended by com.ibm.jtopenlite.PortMapper

public class PortMapper
extends Object

Connects to the System i Port Mapper host server (QSYSWRK/QZSOMAPD daemon job) listening on TCP port 449.


Field Summary
static String COMMAND_SERVICE
          Constant representing the System i Remote Command Host Server.
static String DATABASE_SERVICE
          Constant representing the System i Database Host Server.
static String DDM_SERVICE
          Constant representing the System i DDM/DRDA Host Server.
static String FILE_SERVICE
          Constant representing the System i File Host Server.
static String SIGNON_SERVICE
          Constant representing the System i Signon Host Server.
 
Method Summary
static int getPort(String system, String service)
          Issues a request to the Port Mapper host server on the specified system to determine the TCP/IP port the specified service is listening on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIGNON_SERVICE

public static final String SIGNON_SERVICE
Constant representing the System i Signon Host Server.

See Also:
Constant Field Values

COMMAND_SERVICE

public static final String COMMAND_SERVICE
Constant representing the System i Remote Command Host Server.

See Also:
Constant Field Values

DDM_SERVICE

public static final String DDM_SERVICE
Constant representing the System i DDM/DRDA Host Server.

See Also:
Constant Field Values

FILE_SERVICE

public static final String FILE_SERVICE
Constant representing the System i File Host Server.

See Also:
Constant Field Values

DATABASE_SERVICE

public static final String DATABASE_SERVICE
Constant representing the System i Database Host Server.

See Also:
Constant Field Values
Method Detail

getPort

public static int getPort(String system,
                          String service)
                   throws IOException
Issues a request to the Port Mapper host server on the specified system to determine the TCP/IP port the specified service is listening on.

Throws:
IOException