com.ibm.jtopenlite

Class PortMapper

  • java.lang.Object
    • com.ibm.jtopenlite.PortMapper


  • public class PortMapper
    extends java.lang.Object
    Connects to the System i Port Mapper host server (QSYSWRK/QZSOMAPD daemon job) listening on TCP port 449.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COMMAND_SERVICE
      Constant representing the System i Remote Command Host Server.
      static java.lang.String DATABASE_SERVICE
      Constant representing the System i Database Host Server.
      static java.lang.String DDM_SERVICE
      Constant representing the System i DDM/DRDA Host Server.
      static java.lang.String FILE_SERVICE
      Constant representing the System i File Host Server.
      static java.lang.String SIGNON_SERVICE
      Constant representing the System i Signon Host Server.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static int getPort(java.lang.String system, java.lang.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 java.lang.String SIGNON_SERVICE
        Constant representing the System i Signon Host Server.
        See Also:
        Constant Field Values
      • COMMAND_SERVICE

        public static final java.lang.String COMMAND_SERVICE
        Constant representing the System i Remote Command Host Server.
        See Also:
        Constant Field Values
      • DDM_SERVICE

        public static final java.lang.String DDM_SERVICE
        Constant representing the System i DDM/DRDA Host Server.
        See Also:
        Constant Field Values
      • FILE_SERVICE

        public static final java.lang.String FILE_SERVICE
        Constant representing the System i File Host Server.
        See Also:
        Constant Field Values
      • DATABASE_SERVICE

        public static final java.lang.String DATABASE_SERVICE
        Constant representing the System i Database Host Server.
        See Also:
        Constant Field Values
    • Method Detail

      • getPort

        public static int getPort(java.lang.String system,
                  java.lang.String service)
                           throws java.io.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:
        java.io.IOException