Interface IZOSHostConnection

  • All Superinterfaces:
    IHostConnection

    public interface IZOSHostConnection
    extends IHostConnection
    A connection to a z/OS host.

    z/OS host connections are used to connect to z/OS hosts and provide access to z/OS command providers.

    connect(IZOSCredentials) must be called in order to establish a connection to the associated z/OS host. The IDataSetCommandProvider and IJESCommandProvider provided by this z/OS host connection will be unusable until a connection to the associated z/OS host has been established.

    Examples:
    To connect to a z/OS host:

     IZOSHost zosHost = ...
     String userID = ...
     String password = ...
     
     // use one of the several ZOSCredentialsFactory methods to get a z/OS
     // credentials object
     IZOSCredentials credentials = ZOSCredentialsFactory
             .createZOSCredentials(userID, password);
     
     // create a connection from the z/OS host
     IZOSHostConnection zosHostConnection = zosHost
             .createZOSHostConnection();
     
     try {
         // connect to the host
         zosHostConnection.connect(credentials);
     
         // the connection is now available for use
         ...
     } catch (HostCredentialsException e) {
         // credentials were invalid, likely caused by incorrect login
         // information or expired password
         ...
     }
     
    Note: If writing a plug-in that runs in a Topaz Workbench installation, you can use the ZOSUIUserCredentialsManager class in the com.compuware.api.topaz.eclpse plug-in to retrieve the credentials of the currently logged in Topaz Workbench UI user. See com.compuware.api.topaz.eclipse.hostcredentials.zos.ZOSUIUserCredentialsManager for more details.

    For examples on how to obtain IZOSHosts see IZOSHost.
    For examples on how to obtain an IDataSetCommandProviders see IDataSetCommandProvider.
    For examples on how to obtain an IJESCommandProviders see IJESCommandProvider.

    Since:
    1.0.0
    Version:
    2.0.0
    See Also:
    IZOSHost.createZOSHostConnection()
    Restriction:
    This interface is not intended to be extended by clients.
    Restriction:
    This interface is not intended to be implemented by clients.