Class ImportProfilesTask
- java.lang.Object
-
- com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
-
- com.opencloud.slee.mlet.ant.tasks.ComponentBasedTask
-
- com.opencloud.slee.mlet.ant.tasks.ImportProfilesTask
-
- All Implemented Interfaces:
SubTask,ProfileDataReaderListener
public class ImportProfilesTask extends ComponentBasedTask implements ProfileDataReaderListener
A Rhino management sub task for importing previously exported 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.
filename
Source file containing profiles to be imported.
Yes.
profile-table
Name of the profile table to import into. If not specified, profiles are imported into the profile table specified in the profile XML data.
No.
maxprofiles
Maximum number of profiles to handle in one transaction.
No.
replace
Flag indicating whether any existing profiles should be replaced with the new profile data.
No.
verify
Flag indicating whether the
profileVerify()method will be invoked on each of the imported profiles.No. Default value is
true.NonFatalBuildException throw conditions-
This task will never throw a
NonFatalBuildException. It will always fail (throw aBuildException) on errors.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MAX_PROFILES-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.ComponentBasedTask
component
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
client, failOnError
-
-
Constructor Summary
Constructors Constructor Description ImportProfilesTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecute()voidprocessProfiles(ProfileDataCollection profileData)voidprocessProfileTableName(String tableName)voidsetFilename(File filename)voidsetMaxProfiles(int maxProfiles)voidsetProfileTable(String profileTable)voidsetReplace(boolean replace)voidsetVerify(boolean verify)protected voidvalidateParameters()-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.ComponentBasedTask
addComponent, findComponent
-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
-
-
-
-
Field Detail
-
DEFAULT_MAX_PROFILES
public static final int DEFAULT_MAX_PROFILES
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
protected void execute() throws org.apache.tools.ant.BuildException- Specified by:
executein 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
-
processProfileTableName
public void processProfileTableName(String tableName)
- Specified by:
processProfileTableNamein interfaceProfileDataReaderListener
-
processProfiles
public void processProfiles(ProfileDataCollection profileData)
- Specified by:
processProfilesin interfaceProfileDataReaderListener
-
setFilename
public void setFilename(File filename)
-
setProfileTable
public void setProfileTable(String profileTable)
-
setReplace
public void setReplace(boolean replace)
-
setVerify
public void setVerify(boolean verify)
-
setMaxProfiles
public void setMaxProfiles(int maxProfiles)
-
-