Class ProfileBasedTask
- java.lang.Object
-
- com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
-
- com.opencloud.slee.mlet.ant.tasks.ProfileValueBasedTask
-
- com.opencloud.slee.mlet.ant.tasks.ProfileBasedTask
-
- All Implemented Interfaces:
SubTask
- Direct Known Subclasses:
CreateProfileTask,RemoveProfileTask,SetProfileAttributesTask
public abstract class ProfileBasedTask extends ProfileValueBasedTask
Abstract base class extended by other sub tasks which deal with profiles.
Ant Parameters Attribute Description Required failonerror
Flag to control failure behaviour. If 'true', the sub task will throw a
BuildExceptionwhen an error is encountered. If 'false', the sub task will throw aNonFatalBuildExceptioninstead of aBuildExceptionunder specific circumstances. See below for conditions (if any) which will cause aNonFatalBuildException.No. default value is taken from the Rhino management parent task.
profilename
Name of the profile to create.
Yes.
tablename
Name of the profile table in which the profile will be created.
Yes.
Parameters available as nested elements Element Description Required profilevalue
Assigns a value to a profile attribute. See
ProfileValueElementImplementation dependent.
NonFatalBuildException throw conditions-
Implementation dependent.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringprofileNameprotected ProfileProvisioningMBeanprofileProvisioningMBeanprotected StringtableName-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.ProfileValueBasedTask
attributes
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
client, failOnError
-
-
Constructor Summary
Constructors Constructor Description ProfileBasedTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanprofileExists(String tableName, String profileName)protected booleanprofileTableExists(String tableName)voidrun(BaseAntTask parent, RhinoConnection client, boolean failOnError)voidsetProfileName(String profileName)voidsetTableName(String tableName)protected voidvalidateParameters()-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.ProfileValueBasedTask
addProfileValue, hasAttributes
-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
execute, getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, setFailOnError
-
-
-
-
Field Detail
-
profileName
protected String profileName
-
tableName
protected String tableName
-
profileProvisioningMBean
protected ProfileProvisioningMBean profileProvisioningMBean
-
-
Method Detail
-
run
public void run(BaseAntTask parent, RhinoConnection client, boolean failOnError) throws org.apache.tools.ant.BuildException
- Specified by:
runin interfaceSubTask- Overrides:
runin classAbstractBaseTask- Throws:
org.apache.tools.ant.BuildException
-
validateParameters
protected void validateParameters() throws org.apache.tools.ant.BuildException- Specified by:
validateParametersin classAbstractBaseTask- Throws:
org.apache.tools.ant.BuildException
-
profileTableExists
protected boolean profileTableExists(String tableName)
-
setProfileName
public void setProfileName(String profileName)
-
setTableName
public void setTableName(String tableName)
-
-