Class CreatePersistenceInstanceTask
- java.lang.Object
-
- com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
-
- com.opencloud.slee.mlet.ant.tasks.CreatePersistenceInstanceTask
-
- All Implemented Interfaces:
SubTask
public class CreatePersistenceInstanceTask extends AbstractBaseTask
A Rhino management sub task for creating a persistence instance that can be used by a database resource.
Ant Parameters Attribute Description Required name
Name of the persistence instance to create. This name must be unique.
type
Type of the persistence instance to create, eg. 'jdbc' or 'cassandra'.
No. Defaults to 'jdbc'.
datasourceclass
Fully-qualified class name the the datasource class to be used by the persistence instance.
Only if 'type' is 'jdbc'.
failonerror
Parameters available as nested elements Element Description Required configproperty
Identifies a configuration property of the datasource class. See
ConfigPropertyElement. Note that thetypeproperty ofConfigPropertyElementis mandatory for this task.One
ConfigPropertyElementmust be specified per config property.NonFatalBuildException throw conditions-
This task will throw a
NonFatalBuildExceptionif a persistence instance with the same name already exists.
-
-
Field Summary
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
client, failOnError
-
-
Constructor Summary
Constructors Constructor Description CreatePersistenceInstanceTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfiguredConfigProperty(ConfigPropertyElement element)protected voidexecute()voidsetDatasourceClass(String datasourceClassName)voidsetName(String name)voidsetType(String type)protected voidvalidateParameters()-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
-
-
-
-
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
-
setName
public void setName(String name)
-
setType
public void setType(String type)
-
setDatasourceClass
public void setDatasourceClass(String datasourceClassName)
-
addConfiguredConfigProperty
public void addConfiguredConfigProperty(ConfigPropertyElement element)
-
-