Class DsnList
- java.lang.Object
-
- zowe.client.sdk.zosfiles.dsn.methods.DsnList
-
public class DsnList extends Object
Provides list dataset and member functionality- Version:
- 2.0
- Author:
- Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description DsnList(ZosConnection connection)DsnList constructorDsnList(ZosConnection connection, ZosmfRequest request)Alternative DsnList constructor with ZoweRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Dataset>listDsn(String dataSetName, ListParams params)Get a list of Dataset namesList<Member>listDsnMembers(String dataSetName, ListParams params)Get a list of member objects from a partition Dataset
-
-
-
Constructor Detail
-
DsnList
public DsnList(ZosConnection connection)
DsnList constructor- Parameters:
connection- connection information, see ZosConnection object
-
DsnList
public DsnList(ZosConnection connection, ZosmfRequest request)
Alternative DsnList constructor with ZoweRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.- Parameters:
connection- connection information, see ZosConnection objectrequest- any compatible ZoweRequest Interface object
-
-
Method Detail
-
listDsn
public List<Dataset> listDsn(String dataSetName, ListParams params) throws Exception
Get a list of Dataset names- Parameters:
dataSetName- name of a dataset (e.g. 'DATASET.LIB')params- list parameters, see ListParams object- Returns:
- A String list of Dataset names
- Throws:
Exception- error processing request
-
listDsnMembers
public List<Member> listDsnMembers(String dataSetName, ListParams params) throws Exception
Get a list of member objects from a partition Dataset- Parameters:
dataSetName- name of a dataset (e.g. 'DATASET.LIB')params- list parameters, see ListParams object- Returns:
- list of member objects
- Throws:
Exception- error processing request
-
-