Class ConfigureSasTask
- java.lang.Object
-
- com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
-
- com.opencloud.slee.mlet.ant.tasks.ConfigureSasTask
-
- All Implemented Interfaces:
SubTask
public class ConfigureSasTask extends AbstractBaseTask
A Rhino management sub task for configuring SAS.
Ant Parameters Attribute Description Required server
The hostname/address of the SAS server. If set, will override values in nested
server
elements.No.
resourceIdentifier
The resource-identifier of the SAS resource bundle to associate with events sent to the SAS server.
No.
systemName
The system name to use when connecting to SAS.
No.
appendNodeID
Determine if the cluster node ID should be appended to the system name
No.
systemType
The system type to use when connecting to SAS.
No.
systemVersion
The system version to use when connecting to SAS.
No.
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.
Nested elements Element
Description
Required
server
A SAS server host and optional port specification. See
ConfigureSasTask.SasServerElement
No.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfigureSasTask.SasServerElement
A nested element that identifies a SAS server.
-
Field Summary
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
client, failOnError
-
-
Constructor Summary
Constructors Constructor Description ConfigureSasTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addServer(ConfigureSasTask.SasServerElement server)
protected void
execute()
void
setAppendNodeID(boolean appendNodeID)
void
setResourceIdentifier(String resourceIdentifier)
void
setServer(String server)
void
setSystemName(String systemName)
void
setSystemType(String systemType)
void
setSystemVersion(String systemVersion)
protected void
validateParameters()
-
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:
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
-
setSystemName
public void setSystemName(String systemName)
-
setAppendNodeID
public void setAppendNodeID(boolean appendNodeID)
-
setSystemType
public void setSystemType(String systemType)
-
setSystemVersion
public void setSystemVersion(String systemVersion)
-
setServer
public void setServer(String server)
-
setResourceIdentifier
public void setResourceIdentifier(String resourceIdentifier)
-
addServer
public void addServer(ConfigureSasTask.SasServerElement server)
-
-