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


public interface ZOSResourceRuleFactory

A resource rule factory returns scheduling rules for API methods that modify a ZOSResource model.

Since:
7.6.1

Field Summary
static String COPY_RIGHT
           
static ZOSResourceRuleFactory INSTANCE
           
 
Method Summary
 ISchedulingRule genericMappingRule(String systemName)
          Returns the scheduling rule that is required for setting generic mapping.
 ISchedulingRule specificMappingRule(ZOSResource resource)
          Returns the scheduling rule that is required for setting specific mapping.
 ISchedulingRule updateLogicalRule(String systemName, String pathName)
          Returns the scheduling rule that is required for updating logical layer.
 ISchedulingRule updateLogicalRule(ZOSResource resource)
          Returns the scheduling rule that is required for updating logical layer.
 

Field Detail

COPY_RIGHT

static final String COPY_RIGHT
See Also:
Constant Field Values

INSTANCE

static final ZOSResourceRuleFactory INSTANCE
Method Detail

updateLogicalRule

ISchedulingRule updateLogicalRule(ZOSResource resource)
Returns the scheduling rule that is required for updating logical layer.

This method is intended to be called from ZOSResource layer or in the case you already have a ZOSResource. When calling from LZOSResource layer and the caller may not have ZOSResource yet, use ZOSResourceRuleFactory.updateLogicalRule(String, String) to enable deferred loading of physical resources.

Parameters:
resource - the physical resource which logical layer being updated
Returns:
a scheduling rule, or null

updateLogicalRule

ISchedulingRule updateLogicalRule(String systemName,
                                  String pathName)
Returns the scheduling rule that is required for updating logical layer.

This method can be called without obtaining ZOSResource. When calling from LZOSResource layer and the caller may not have ZOSResource yet, use this method. For example,

 IRemoteResourceState state = ((IRemoteResource) logicalResource).getState();
 if (state != null) {
        rule = ZOSResourceRuleFactory.INSTANCE.updateLogicalRule(state
                        .getPhysicalResourceSystemName(), state
                        .getPhysicalResourcePathName());
 }
 

Parameters:
systemName - the name of the system containing the target resource
pathName - the path of the physical resource which logical layer being updated
Returns:
a scheduling rule, or null
See Also:
ZOSResourceRuleFactory.updateLogicalRule(ZOSResource)

genericMappingRule

ISchedulingRule genericMappingRule(String systemName)
Returns the scheduling rule that is required for setting generic mapping.

Parameters:
systemName - the name of the system containing the target resource
Returns:
a scheduling rule, or null

specificMappingRule

ISchedulingRule specificMappingRule(ZOSResource resource)
Returns the scheduling rule that is required for setting specific mapping.

Parameters:
resource - the target resource to set the specific mapping
Returns:
a scheduling rule, or null