Obtaining one or more Defined z/OS Hosts
When writing Eclipse plug-ins running in a Workbench for Eclipse client, one or more defined z/OS hosts can be obtained using the HostManager class.
To obtain a list of all defined z/OS hosts:
// get an IHostManager
IHostManager hostManager = HostManager.getInstance();
// get all defined hosts, an empty list is returned if none are defined
List<IZOSHost> zosHostList = hostManager.getZOSHosts();
To obtain a single z/OS host:
String host = ...
int port = ...
// get an IHostManager
IHostManager hostManager = HostManager.getInstance();
// find z/OS host, null is returned if this host is not defined
IZOSHost zosHost = hostManager.findZOSHost(host, port);
Related topics
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.