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. TheIDataSetCommandProvider
andIJESCommandProvider
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 theZOSUIUserCredentialsManager
class in thecom.compuware.api.topaz.eclpse
plug-in to retrieve the credentials of the currently logged in Topaz Workbench UI user. Seecom.compuware.api.topaz.eclipse.hostcredentials.zos.ZOSUIUserCredentialsManager
for more details.For examples on how to obtain
IZOSHost
s seeIZOSHost
.
For examples on how to obtain anIDataSetCommandProvider
s seeIDataSetCommandProvider
.
For examples on how to obtain anIJESCommandProvider
s seeIJESCommandProvider
.- 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
connect(IZOSCredentials credentials)
Connects to the associated z/OS host.IDataSetCommandProvider
getDataSetCommandProvider()
Returns the single instance of a dataset command provider for use on this z/OS host connection.IZOSHost
getHost()
Returns the z/OS host associated with this z/OS host connection.IJESCommandProvider
getJESCommandProvider()
Returns the single instance of a JES command provider for use on this z/OS host connection.ITSOCommandProvider
getTSOCommandProvider()
Returns the single instance of a TSO command provider for use on this z/OS host conneciton.-
Methods inherited from interface com.compuware.api.topaz.hostconnections.IHostConnection
disconnect, isConnected
-
-
-
-
Method Detail
-
connect
void connect(IZOSCredentials credentials) throws UserIDException, PasswordException, GroupException, DigitalCertificateException
Connects to the associated z/OS host.- Parameters:
credentials
- the credentials to connect with- Throws:
IllegalArgumentException
- ifcredentials
isnull
HostNotDefinedException
- if the z/OS host is not definedHostNotReachableException
- if the z/OS host is not reachableHostIOException
- if anIOException
occurs while attempting to connect to the z/OS hostMethodNotSupportedException
- if the z/OS host does not support this version of the Topaz APIZOSSystemException
- if a z/OS system error occurs while attempting to connect to the z/OS hostZOSAbendException
- if a z/OS ABEND occurs while attempting to connect to the z/OS hostZOSLicenseException
- if no license is found on the z/OS hostUserIDException
- if the user ID specified in the credentials is invalidPasswordException
- if an invalid password is specified in the credentialsGroupException
- if an invalid group ID is specified in the credentialsDigitalCertificateException
- if an invalid digital certificate is specified in the credentials- Since:
- 1.0.0
-
getHost
IZOSHost getHost()
Returns the z/OS host associated with this z/OS host connection.- Specified by:
getHost
in interfaceIHostConnection
- Returns:
- the z/OS host
- Since:
- 1.0.0
-
getDataSetCommandProvider
IDataSetCommandProvider getDataSetCommandProvider()
Returns the single instance of a dataset command provider for use on this z/OS host connection.- Returns:
- the dataset provider instance
- Since:
- 1.0.0
-
getJESCommandProvider
IJESCommandProvider getJESCommandProvider()
Returns the single instance of a JES command provider for use on this z/OS host connection.- Returns:
- the JES command provider instance
- Since:
- 1.0.0
-
getTSOCommandProvider
ITSOCommandProvider getTSOCommandProvider()
Returns the single instance of a TSO command provider for use on this z/OS host conneciton.- Returns:
- the TSO command provider instance
- Since:
- 2.2.0
-
-