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
BuildException
when an error is encountered. If 'false', the sub task will throw aNonFatalBuildException
instead of aBuildException
under 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
ProfileValueElement
Implementation dependent.
NonFatalBuildException throw conditions-
Implementation dependent.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
profileName
protected ProfileProvisioningMBean
profileProvisioningMBean
protected String
tableName
-
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 boolean
profileExists(String tableName, String profileName)
protected boolean
profileTableExists(String tableName)
void
run(BaseAntTask parent, RhinoConnection client, boolean failOnError)
void
setProfileName(String profileName)
void
setTableName(String tableName)
protected void
validateParameters()
-
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:
run
in interfaceSubTask
- Overrides:
run
in classAbstractBaseTask
- Throws:
org.apache.tools.ant.BuildException
-
validateParameters
protected void validateParameters() throws org.apache.tools.ant.BuildException
- Specified by:
validateParameters
in 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)
-
-