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
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.
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 int
DEFAULT_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 void
execute()
void
processProfiles(ProfileDataCollection profileData)
void
processProfileTableName(String tableName)
void
setFilename(File filename)
void
setMaxProfiles(int maxProfiles)
void
setProfileTable(String profileTable)
void
setReplace(boolean replace)
void
setVerify(boolean verify)
protected void
validateParameters()
-
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:
execute
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
-
processProfileTableName
public void processProfileTableName(String tableName)
- Specified by:
processProfileTableName
in interfaceProfileDataReaderListener
-
processProfiles
public void processProfiles(ProfileDataCollection profileData)
- Specified by:
processProfiles
in 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)
-
-