com.ibm.ftt.resources.zos.zosfactory
Interface ZOSPhysicalResourceFinder

All Superinterfaces:
IPhysicalResourceFinder

public interface ZOSPhysicalResourceFinder
extends IPhysicalResourceFinder

The ZOSPhysicalResourceFinder interface provides the ability to find and retrieve a physical MVS resource from the model.

The singleton instance can be obtained via ZOSPhysicalResourceFinder.eINSTANCE static field.

The following code shows a sample usage of this class:

 ZOSResourceIdentifier identifier = ZosfactoryFactory.eINSTANCE.createZOSResourceIdentifier();
 identifier.setDataSetName(dataset);
 identifier.setMemberName(member);
 identifier.setSystem(systemName);
 IPhysicalResource res = ZOSPhysicalResourceFinder.eINSTANCE.findPhysicalResource(identifier);
 

See Also:
ZOSResourceIdentifier

Field Summary
static String COPY_RIGHT
           
static ZOSPhysicalResourceFinder eINSTANCE
          The singleton instance of the ZOSPhysicalResourceFinder.
 
Method Summary
 IPhysicalResource findPhysicalResource(ZOSResourceIdentifier identifier)
          Finds the corresponding physical resource for the given ZOSResourceIdentifier object.
 IPhysicalResource findPhysicalResourceInModel(ZOSResourceIdentifier identifier)
          Finds the corresponding physical resource in the model for the given ZOSResourceIdentifier object.
 
Methods inherited from interface com.ibm.ftt.resources.core.factory.IPhysicalResourceFinder
findPhysicalResource, findPhysicalResource
 

Field Detail

COPY_RIGHT

static final String COPY_RIGHT
See Also:
Constant Field Values

eINSTANCE

static final ZOSPhysicalResourceFinder eINSTANCE
The singleton instance of the ZOSPhysicalResourceFinder.

Method Detail

findPhysicalResource

IPhysicalResource findPhysicalResource(ZOSResourceIdentifier identifier)
Finds the corresponding physical resource for the given ZOSResourceIdentifier object. If the resource is not found in the model, query the file system.

If the memberName of the identifier is null, this method tries to find a data set. If it is not null, tries to find a PDS member.

Parameters:
identifier - a z/OS resource identifier that contains name of system, data set and member
Returns:
a physical resource, or null if not found
See Also:
ZOSPhysicalResourceFinder.findPhysicalResourceInModel(ZOSResourceIdentifier)

findPhysicalResourceInModel

IPhysicalResource findPhysicalResourceInModel(ZOSResourceIdentifier identifier)
Finds the corresponding physical resource in the model for the given ZOSResourceIdentifier object. This method will not query the file system.

If the memberName of the identifier is null, this method tries to find a data set. If it is not null, tries to find a PDS member.

Parameters:
identifier - a z/OS resource identifier that contains name of system, data set and member
Returns:
a physical resource, or null if not found
See Also:
ZOSPhysicalResourceFinder.findPhysicalResource(ZOSResourceIdentifier)