public class PolicyManagerProxy extends AdministeredObject
Each PolicyManagerProxy instance represents a set of policies of a given type.
It can be used to both list available polices and create, retrieve, update and delete existing ones.
Change Activity: -------- ----------- ------------- ------------------------------------ Reason: Date: Originator: Comments: -------- ----------- ------------- ------------------------------------Version @(#) MQMBID sn=S900-L150302 su=_DSj_s8EsEeSQdeb_Pq7vLQ pn=Config/com/ibm/broker/config/proxy/PolicyManagerProxy.java]
Modifier and Type | Method and Description |
---|---|
PolicyProxy |
createPolicy(PolicyProxy policy)
Asks the PolicyManager to create a new policy based on the PolicyProxy object pass in.
|
PolicyProxy |
createPolicy(java.lang.String policyName,
java.lang.String policyDocument)
Asks the PolicyManager to create a new policy based on the string objects pass in.
|
void |
deletePolicy(PolicyProxy policy)
Asks the PolicyManager to delete a policy based on the PolicyProxy object pass in.
|
void |
deletePolicy(java.lang.String policyName)
Asks the PolicyManager to delete a policy based on the string objects pass in.
|
ConfigurationObjectType |
getConfigurationObjectType()
Returns the ConfigurationObjectType associated
with this AdministeredObject type.
|
ConfigurationObjectType |
getConfigurationObjectTypeOfParent()
Returns the ConfigurationObjectType associated
with the logical parent of this AdministeredObject type.
|
PolicyProxy |
getPolicy(PolicyProxy policy)
Asks the PolicyManager to get a policy based on the string objects pass in.
|
PolicyProxy |
getPolicy(java.lang.String policyName)
Asks the PolicyManager to get a policy based on the PolicyProxy object pass in.
|
java.lang.String[] |
getPolicyNames()
Get the names of all polices of this type.
|
java.lang.String |
getPolicyType()
Get the type of the policy.
|
boolean |
hasBeenPopulatedByBroker()
Returns true if and only if this object handle
has received at least one update publication from the
connected broker.
|
boolean |
hasBeenPopulatedByBroker(boolean waitIfNotUpdated)
Returns true if and only if this object handle
has received at least one update publication from
the connected broker.
|
PolicyProxy |
updatePolicy(PolicyProxy policy)
Asks the PolicyManager to update a policy based on the PolicyProxy object pass in.
|
PolicyProxy |
updatePolicy(java.lang.String policyName,
java.lang.String policyDocument)
Asks the PolicyManager to update a policy based on the string objects pass in.
|
deregisterListener, deregisterListener, elements, equals, getAdvancedProperties, getBasicProperties, getLastBIPMessages, getLastCompletionCode, getLastUpdateUser, getLongDescription, getManagedSubcomponent, getManagedSubcomponentFromStringRepresentation, getManagedSubcomponents, getManagedSubcomponents, getManagedSubcomponents, getManagedSubcomponents, getManagedSubcomponentsAsStrings, getManagedSubcomponentsAsStrings, getName, getNumberOfSubcomponents, getParent, getProperties, getProperty, getProperty, getProperty, getProperty, getRepositoryTimestamp, getShortDescription, getTimeOfLastCompletionCode, getTimeOfLastUpdate, getType, getUUID, hasBeenRestrictedByBroker, hasBeenRestrictedByBroker, hasBeenRestrictedByConfigManager, hasBeenRestrictedByConfigManager, hasBeenUpdatedByConfigManager, hasBeenUpdatedByConfigManager, isAwaitingSubmissionForCreation, isAwaitingSubmissionForDeletion, isDeployed, isShared, refresh, registerListener, registerListener, registerListener, setLongDescription, setName, setProperties, setShortDescription, toString, toVerboseString, unsubscribeFromConfigurationManagerUpdates, withName, withUUID
public ConfigurationObjectType getConfigurationObjectType()
AdministeredObject
getConfigurationObjectType
in class AdministeredObject
public ConfigurationObjectType getConfigurationObjectTypeOfParent()
AdministeredObject
getConfigurationObjectTypeOfParent
in class AdministeredObject
public boolean hasBeenPopulatedByBroker()
AdministeredObject
hasBeenPopulatedByBroker
in class AdministeredObject
public boolean hasBeenPopulatedByBroker(boolean waitIfNotUpdated)
AdministeredObject
hasBeenPopulatedByBroker
in class AdministeredObject
waitIfNotUpdated
- If set to true, this method
will retry for the currently configured timeout
period if the object has not been updated. If the
object has not been updated after the timeout
period has expired, false will be returned.BrokerProxy.setRetryCharacteristics(long)
public PolicyProxy createPolicy(PolicyProxy policy) throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyPropertyNotInitializedException
- if the value of the parameter could not be determined because
the information was not supplied from the broker before a
timeout occurred.ConfigManagerProxyLoggedException
- if there is an error creating the policy.public PolicyProxy createPolicy(java.lang.String policyName, java.lang.String policyDocument) throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyPropertyNotInitializedException
- if the value of the parameter could not be determined because
the information was not supplied from the broker before a
timeout occurred.ConfigManagerProxyLoggedException
- if there is an error creating the policy.public void deletePolicy(PolicyProxy policy) throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyPropertyNotInitializedException
- if the value of the parameter could not be determined because
the information was not supplied from the broker before a
timeout occurred.ConfigManagerProxyLoggedException
- if there is an error deleting the policy.public void deletePolicy(java.lang.String policyName) throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyPropertyNotInitializedException
- if the value of the parameter could not be determined because
the information was not supplied from the broker before a
timeout occurred.ConfigManagerProxyLoggedException
- if there is an error deleting the policy.public PolicyProxy updatePolicy(PolicyProxy policy) throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyPropertyNotInitializedException
- if the value of the parameter could not be determined because
the information was not supplied from the broker before a
timeout occurred.ConfigManagerProxyLoggedException
- if there is an error updating the policy.public PolicyProxy updatePolicy(java.lang.String policyName, java.lang.String policyDocument) throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyPropertyNotInitializedException
- if the value of the parameter could not be determined because
the information was not supplied from the broker before a
timeout occurred.ConfigManagerProxyLoggedException
- if there is an error updating the policy.public PolicyProxy getPolicy(java.lang.String policyName) throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyPropertyNotInitializedException
- if the value of the parameter could not be determined because
the information was not supplied from the broker before a
timeout occurred.ConfigManagerProxyLoggedException
- if there is an error getting the policy.public PolicyProxy getPolicy(PolicyProxy policy) throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyPropertyNotInitializedException
- if the value of the parameter could not be determined because
the information was not supplied from the broker before a
timeout occurred.ConfigManagerProxyLoggedException
- if there is an error getting the policy.public java.lang.String getPolicyType() throws ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyPropertyNotInitializedException
- if the value of the parameter could not be determined because
the information was not supplied from the broker before a
timeout occurred.public java.lang.String[] getPolicyNames() throws ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyPropertyNotInitializedException
- if the value of the parameter could not be determined because
the information was not supplied from the broker before a
timeout occurred.