<property name="client.home"value="/path/to/rhino/client/directory"/>
<import file="${client.home}/etc/common.xml"/>
Class RhinoManagementAntTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- com.opencloud.slee.mlet.ant.BaseAntTask
-
- com.opencloud.slee.mlet.ant.RhinoManagementAntTask
-
- All Implemented Interfaces:
Cloneable
public class RhinoManagementAntTask extends BaseAntTask
The Rhino management task executes a series of subtasks to perform management operations against Rhino.
This task either establishes a connection to a Rhino node or, if one is available, uses an existing connection from a previous Rhino management task that ran in the same Ant session. Connections are not disconnected at the end of a task, rather they are kept open for possible subsequent tasks and only disconnected when the entire Ant build is complete.
Using the Rhino Management Ant Tasks
The Rhino Management Ant Tasks can be used by setting the
client.home
Ant property to the path of theclient
directory in your Rhino install, then importing from${client.home}/etc/common.xml
. For example:This defines the
slee-management
tasks. Build targets using this task can then be written with a dependency (direct or indirect) on thelogin
target (defined incommon.xml
). For example:<target name="install-du"depends="login"> <slee-management> <install srcfile="/path/to/deployable-unit.jar"url="file:url/to/install/deployable/unit/as"/> </slee-management> </target>
Configuring the Rhino Management Ant Tasks
The following properties may be specified in an Ant build file to configure the
slee-management
task. If a value of a property is not specified then the task uses the value defined in${client.home}/etc/client.properties
.Ant Task Configuration Properties Property Description rhino.remote.host
Host name or IP address of Rhino node to connect to.
rhino.remote.port
RMI registry port configured for the JMX Remote M-Let on the Rhino node being connected to.
rhino.remote.username
Name of user to connect as.
rhino.remote.password
User’s password.
javax.net.ssl.trustStore
Name of key store file that contains a
trustedCertEntry
to verify the identity of the Rhino node being connected to. This filename is expected to be relative to${client.home}
javax.net.ssl.trustStorePassword
Password for accessing the trust store.
javax.net.ssl.keyStore
Name of key store file that contains a
keyEntry
to send to the Rhino node for it to verify the identity of this client. This filename is expected to be relative to${client.home}
javax.net.ssl.keyStorePassword
Password for accessing the key store.
namespace
The Rhino namespace that the enclosed tasks should be run within. Use an empty string value to denote the default namespace. Note that the active namespace could still be changed within the
slee-management
task if asetactivenamespace
subtask is present.After the subtasks have completed the active namespace reverts to the namespace that was active when the
slee-management
task began.If this property is not specified then the subtasks are run using whatever namespace is currently active for the Rhino connection.
Management subtasks are specified as nested elements of the
slee-management
task. The following subtasks can be provided in any number and in any order. Theslee-management
task will execute these subtasks in the given order until all have been executed or a subtask fails by throwing aBuildException
. TheBuildException
will be re-thrown to Ant with some contextual information regarding the subtask that caused it.Refer to the javadoc for each subtask for details on its supported parameters.
Management Subtasks Task Name Description Implementation Class activateraentity
Activate Resource Adaptor Entities.
activateservice
Activate Services.
addappenderref
Add log appender reference to a log key.
addpersistenceinstanceref
Add a persistence instance reference to a database resource.
addservicebindings
Add bindings to a service.
bindralinkname
Bind Resource Adaptor Entity Link Names.
cascadeuninstall
Cascade Uninstall.
checkalarms
Check Alarms.
checkAllBundlesMapped
Verify that all SAS bundles are mapped to prefixes.
commandline
Interact directly with the command line client.
configurelogger
Configure a logger.
configurerobjectpools
Configure object pools.
configureratelimiter
Configure a rate limiter.
configuresaturationlimiter
Configure a queue saturation limiter.
configurestagingqueues
Configure staging queues.
configureabsolutestatlimiter
Configure an absolute stat limiter.
configurerelativestatlimiter
Configure a relative stat limiter.
connectraentitylimiterendpoint
Connect a limiter endpoint (that belongs to an RA Entity) to a limiter.
connectservicelimiterendpoint
Connect a limiter endpoint (that belongs to a Service) to a limiter.
copycomponent
Make a copy of the source component with the target identity.
createconsoleappender
Create console appender.
createdatabaseresource
Create a new database resource.
createfileappender
Create log file appender.
creategenericappender
Create log appender.
createjdbcresourceconnectionpool
Add a connection pool configuration to a JDBC resource.
createlimiter
Create limiter.
createlinkedcomponent
Create a virtual component that is a link to another component.
creatememorymappedfileappender
Create memory mapped file appender.
createnamespace
Create a deployment namespace.
createpersistenceinstance
Create a new persistence instance that can be used by a database resource.
createprofiletable
Create Profile Tables.
createprofile
Create Profiles inside tables.
createraentity
Create Resource Adaptor Entities.
createsbbusageparameterset
Create an sbb usage parameter set.
createrandomaccessfileappender
Create random access file appender.
createrollingfileappender
Create rolling file appender.
createrollingrandomaccessfileappender
Create rolling random access file appender.
createsocketappender
Create log socket appender.
createsyslogappender
Create syslog appender.
createusageparameterset
Create a usage parameter set for any notification source.
deactivateraentity
Deactivate Resource Adaptor Entities.
deactivateservice
Deactivate Services.
deploycomponent
Deploy an installed component across the SLEE.
deploydeployableunit
Deploy components in an installed deployable unit across the SLEE.
disablesymmetricactivationstatemode
Disable symmetric activation state mode.
disablerampup
Disable rampup of limiter rate for the system input limiter.
disconnectraentitylimiterendpoint
Disconnect a limiter endpoint (that belongs to an RA Entity).
disconnectservicelimiterendpoint
Disconnect a limiter endpoint (that belongs to a Service).
enablesymmetricactivationstatemode
Enable symmetric activation state mode.
enablerampup
Enable ramp up of limiter rate for the system input limiter.
importconfiguration
Import Rhino Configuration.
importprofiles
Import Profiles from XML Data.
install
Install Deployable Units.
removeappenderref
Remove log appender reference from a log key.
removecopiedcomponents
Remove copied components.
removedatabaseresource
Remove an existing database resource.
removejdbcresourceconnectionpool
Remove the connection pool configuraton from a JDBC resource.
removelimiter
Remove limiter.
removelinkedcomponent
Remove a linked component.
removeloggerconfig
Remove a logger configuration.
removenamespace
Remove a deployment namespace.
removepersistenceinstance
Remove a persistence instance.
removepersistenceinstanceref
Remove a persistence instance reference from a database resource.
removeprofiletable
Remove Profile Tables.
removeprofile
Remove a Profile from a table.
removeraentity
Remove Resource Adaptor Entities.
removesbbusageparameterset
Remove a sbb usage parameter set.
removeusageparameterset
Remove a usage parameter set for any notification source.
removeservicebindings
Remove bindings from a service.
setactivenamespace
Set the active deployment namespace.
setadditivity
Set the additivity for a log key.
setjdbcresourceconnectionpoolconfig
Update the connection pool configuration of a JDBC resource.
setloglevel
Set the log level of a Rhino log.
setprofileattributes
Modify profile attributes.
setraentitystartingpriority
Set the starting priority of a Resource Adaptor Entity.
setraentitystoppingpriority
Set the stopping priority of a Resource Adaptor Entity.
setservicemetricsrecordingenabled
Update the service metrics recording status of a service.
setserviceinitialpersistence
Update the initial persistence status of a service.
setservicereplicationselectors
Set the replication selectors of a service.
setservicestartingpriority
Set the starting priority of a Service..
setservicestoppingpriority
Set the stopping priority of a Service..
settracelevel
Set the trace level of components.
settracerlevel
Set the trace level for notification source tracers.
configuresas
Set the hostname/address and the resource-identifier for the SAS server.
setservicedesiredstate
Set the desired state of a Service.
setsastracingenabled
Set the state of the SAS tracing.
setraentitydesiredstate
Set the desired state of a Resource Adaptor Entity.
shadowcomponent
Shadow a component with another component.
unbindralinkname
Unbind Resource Adaptor Entity Link Names.
undeploycomponent
Undeploys a deployed component across the SLEE.
uninstall
Uninstall Deployable Units.
updatepersistenceinstance
Update the configuration settings of a persistence instance.
unsetalltracers
Unset the trace level assigned to all non-root tracers for a notification source.
usertransaction
Run nested tasks inside a single user transaction.
unshadowcomponent
Remove the shadow from a shadowed component..
unverifycomponent
Unverifies a verified component.
verifycomponent
Verify an installed component.
verifydeployableunit
Verify components in an installed deployable unit.
waittilconverged
Wait until configuration has converged to desired state.
waittilraentityisinactive
Wait on Resource Adaptor deactivation.
waittilserviceisinactive
Wait on Service deactivation.
Ant Parameters Attribute Description Required failonerror
Sets the default failure behaviour for subtasks. If 'true', a subtask will throw a
BuildException
when an error is encountered. If 'false', the subtask will throw aNonFatalBuildException
instead of aBuildException
under specific circumstances. See the description of each subtasks for the conditions (if any) which will cause aNonFatalBuildException
.No, default is 'false'
-
-
Constructor Summary
Constructors Constructor Description RhinoManagementAntTask()
-
Method Summary
-
Methods inherited from class com.opencloud.slee.mlet.ant.BaseAntTask
getAlarm, getClient, getDeployment, getFailOnError, getLogging, getProfileProvisioning, getResourceManagement, getRhinoInspector, getServerHost, getServerPort, getServiceManagement, getSleeManagement, getTrace, getUserTransactionManagement, logout, setFailOnError, setHost, setKeyStore, setKeyStorePass, setPassword, setPort, setRmissl, setTrustStore, setTrustStorePass, setUsername
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.tools.ant.BuildException
Execute the task, called by Ant
- Overrides:
execute
in classBaseAntTask
- Throws:
org.apache.tools.ant.BuildException
-
addActivateRAEntity
public void addActivateRAEntity(ActivateRAEntityTask task)
-
addEnableRampUp
public void addEnableRampUp(EnableRampUpTask task)
-
addActivateService
public void addActivateService(ActivateServiceTask task)
-
addAddAppenderRef
public void addAddAppenderRef(AddAppenderRefTask task)
-
addAddPermissionMapping
public void addAddPermissionMapping(AddPermissionMappingTask task)
-
addAddPermissionToRole
public void addAddPermissionToRole(AddPermissionToRoleTask task)
-
addAddPersistenceInstanceRef
public void addAddPersistenceInstanceRef(AddPersistenceInstanceRefTask task)
-
addAddServiceBindings
public void addAddServiceBindings(AddServiceBindingsTask task)
-
addBindRALinkName
public void addBindRALinkName(BindRALinkNameTask task)
-
addCascadeUninstall
public void addCascadeUninstall(CascadeUninstallTask task)
-
addCheckAlarms
public void addCheckAlarms(CheckAlarmsTask task)
-
addCheckAllBundlesMapped
public void addCheckAllBundlesMapped(CheckAllBundlesMappedTask task)
-
addCommandLine
public void addCommandLine(CommandLineTask task)
-
addConfigureLogger
public void addConfigureLogger(ConfigureLoggerTask task)
-
addConfigureObjectPools
public void addConfigureObjectPools(ConfigureObjectPoolsTask task)
-
addConfigureRateLimiter
public void addConfigureRateLimiter(ConfigureRateLimiterTask task)
-
addConfigureSaturationLimiter
public void addConfigureSaturationLimiter(ConfigureSaturationLimiterTask task)
-
addConfigureStagingQueues
public void addConfigureStagingQueues(ConfigureStagingQueuesTask task)
-
addConfigureAbsoluteStatLimiter
public void addConfigureAbsoluteStatLimiter(ConfigureAbsoluteStatLimiterTask task)
-
addConfigureRelativeStatLimiter
public void addConfigureRelativeStatLimiter(ConfigureRelativeStatLimiterTask task)
-
addConnectRAEntityLimiterEndpoint
public void addConnectRAEntityLimiterEndpoint(ConnectRAEntityLimiterEndpointTask task)
-
addConnectServiceLimiterEndpoint
public void addConnectServiceLimiterEndpoint(ConnectServiceLimiterEndpointTask task)
-
addCopyComponent
public void addCopyComponent(CopyComponentTask task)
-
addCreateConsoleAppender
public void addCreateConsoleAppender(CreateConsoleAppenderTask task)
-
addCreateFileAppender
public void addCreateFileAppender(CreateFileAppenderTask task)
-
addCreateGenericAppender
public void addCreateGenericAppender(CreateGenericAppenderTask task)
-
addCreateMemoryMappedFileAppender
public void addCreateMemoryMappedFileAppender(CreateMemoryMappedFileAppenderTask task)
-
addCreateRandomAccessFileAppender
public void addCreateRandomAccessFileAppender(CreateRandomAccessFileAppenderTask task)
-
addCreateRollingFileAppender
public void addCreateRollingFileAppender(CreateRollingFileAppenderTask task)
-
addCreateRollingRandomAccessFileAppender
public void addCreateRollingRandomAccessFileAppender(CreateRollingRandomAccessFileAppenderTask task)
-
addCreateDatabaseResource
public void addCreateDatabaseResource(CreateDatabaseResourceTask task)
-
addCreateJdbcResourceConnectionPool
public void addCreateJdbcResourceConnectionPool(CreateJdbcResourceConnectionPoolTask task)
-
addCreateLimiter
public void addCreateLimiter(CreateLimiterTask task)
-
addCreateLinkedComponent
public void addCreateLinkedComponent(CreateLinkedComponentTask task)
-
addCreateNamespace
public void addCreateNamespace(CreateNamespaceTask task)
-
addCreatePersistenceInstance
public void addCreatePersistenceInstance(CreatePersistenceInstanceTask task)
-
addCreateProfile
public void addCreateProfile(CreateProfileTask task)
-
addCreateProfileTable
public void addCreateProfileTable(CreateProfileTableTask task)
-
addCreateRAEntity
public void addCreateRAEntity(CreateRAEntityTask task)
-
addCreateRole
public void addCreateRole(CreateRoleTask task)
-
addCreateSbbUsageParameterSet
public void addCreateSbbUsageParameterSet(CreateSbbUsageParameterSet task)
-
addCreateSocketAppender
public void addCreateSocketAppender(CreateSocketAppenderTask task)
-
addCreateSyslogAppender
public void addCreateSyslogAppender(CreateSyslogAppenderTask task)
-
addCreateUsageParameterSet
public void addCreateUsageParameterSet(CreateUsageParameterSetTask task)
-
addDeactivateRAEntity
public void addDeactivateRAEntity(DeactivateRAEntityTask task)
-
addDeactivateService
public void addDeactivateService(DeactivateServiceTask task)
-
addDeployComponent
public void addDeployComponent(DeployComponentTask task)
-
addDeployDeployableUnit
public void addDeployDeployableUnit(DeployDeployableUnitTask task)
-
addDisableSymmetricActivationStateMode
public void addDisableSymmetricActivationStateMode(DisableSymmetricActivationStateModeTask task)
-
addDisableRampUp
public void addDisableRampUp(DisableRampUpTask task)
-
addDisconnectRAEntityLimiterEndpoint
public void addDisconnectRAEntityLimiterEndpoint(DisconnectRAEntityLimiterEndpointTask task)
-
addDisconnectServiceLimiterEndpoint
public void addDisconnectServiceLimiterEndpoint(DisconnectServiceLimiterEndpointTask task)
-
addEnableSymmetricActivationStateMode
public void addEnableSymmetricActivationStateMode(EnableSymmetricActivationStateModeTask task)
-
addImportConfiguration
public void addImportConfiguration(ImportConfigurationKeyTask task)
-
addImportProfiles
public void addImportProfiles(ImportProfilesTask task)
-
addInstall
public void addInstall(InstallTask task)
-
addAddLoggerComponent
public void addAddLoggerComponent(AddLoggerComponentTask task)
-
addRemoveAppenderRef
public void addRemoveAppenderRef(RemoveAppenderRefTask task)
-
addRemoveCopiedComponents
public void addRemoveCopiedComponents(RemoveCopiedComponentsTask task)
-
addRemoveDatabaseResource
public void addRemoveDatabaseResource(RemoveDatabaseResourceTask task)
-
addRemoveJdbcResourceConnectionPool
public void addRemoveJdbcResourceConnectionPool(RemoveJdbcResourceConnectionPoolTask task)
-
addRemoveNamespace
public void addRemoveNamespace(RemoveNamespaceTask task)
-
addRemoveLimiter
public void addRemoveLimiter(RemoveLimiterTask task)
-
addRemoveLinkedComponent
public void addRemoveLinkedComponent(RemoveLinkedComponentTask task)
-
addRemoveLoggerConfig
public void addRemoveLoggerConfig(RemoveLoggerConfigTask task)
-
addRemovePermissionFromRole
public void addRemovePermissionFromRole(RemovePermissionFromRoleTask task)
-
addRemovePermissionMapping
public void addRemovePermissionMapping(RemovePermissionMappingTask task)
-
addRemovePersistenceInstance
public void addRemovePersistenceInstance(RemovePersistenceInstanceTask task)
-
addRemovePersistenceInstanceRef
public void addRemovePersistenceInstanceRef(RemovePersistenceInstanceRefTask task)
-
addRemoveProfile
public void addRemoveProfile(RemoveProfileTask task)
-
addRemoveProfileTable
public void addRemoveProfileTable(RemoveProfileTableTask task)
-
addRemoveRAEntity
public void addRemoveRAEntity(RemoveRAEntityTask task)
-
addRemoveRole
public void addRemoveRole(RemoveRoleTask task)
-
addRemoveSbbUsageParameterSet
public void addRemoveSbbUsageParameterSet(RemoveSbbUsageParameterSet task)
-
addRemoveUsageParameterSet
public void addRemoveUsageParameterSet(RemoveUsageParameterSetTask task)
-
addRemoveServiceBindings
public void addRemoveServiceBindings(RemoveServiceBindingsTask task)
-
addSetActiveNamespace
public void addSetActiveNamespace(SetActiveNamespaceTask task)
-
addSetAdditivity
public void addSetAdditivity(SetAdditivityTask task)
-
addSetSecurityPolicy
public void addSetSecurityPolicy(SetSecurityPolicy task)
-
addSetEnvEntries
public void addSetEnvEntries(SetEnvEntries task)
-
addSetJdbcResourceConnectionPoolConfig
public void addSetJdbcResourceConnectionPoolConfig(SetJdbcResourceConnectionPoolConfigTask task)
-
addSetLogLevel
public void addSetLogLevel(SetLogLevelTask task)
-
addSetProfileAttributes
public void addSetProfileAttributes(SetProfileAttributesTask task)
-
addSetRAEntityStartingPriority
public void addSetRAEntityStartingPriority(SetRAEntityStartingPriorityTask task)
-
addSetRAEntityStoppingPriority
public void addSetRAEntityStoppingPriority(SetRAEntityStoppingPriorityTask task)
-
addSetServiceMetricsRecordingEnabled
public void addSetServiceMetricsRecordingEnabled(SetServiceMetricsRecordingEnabledTask task)
-
addSetServiceInitialPersistence
public void addSetServiceInitialPersistence(SetServiceInitialPersistenceTask task)
-
addSetServiceReplicationSelectors
public void addSetServiceReplicationSelectors(SetServiceReplicationSelectorsTask task)
-
addSetServiceStartingPriority
public void addSetServiceStartingPriority(SetServiceStartingPriorityTask task)
-
addSetServiceStoppingPriority
public void addSetServiceStoppingPriority(SetServiceStoppingPriorityTask task)
-
addSetTraceLevel
public void addSetTraceLevel(SetTraceLevelTask task)
-
addSetTracerLevel
public void addSetTracerLevel(SetTracerLevelTask task)
-
addConfigureSas
public void addConfigureSas(ConfigureSasTask task)
-
addSetRAEntityDesiredState
public void addSetRAEntityDesiredState(SetRAEntityDesiredStateTask task)
-
addSetSASTracingEnabled
public void addSetSASTracingEnabled(SetSasTracingEnabledTask task)
-
addSetSasBundleMapping
public void addSetSasBundleMapping(SetSasBundleMappingTask task)
-
addSetServiceDesiredState
public void addSetServiceDesiredState(SetServiceDesiredStateTask task)
-
addRemoveSasBundleMapping
public void addRemoveSasBundleMapping(RemoveSasBundleMappingTask task)
-
addShadowComponent
public void addShadowComponent(ShadowComponentTask task)
-
addUndeployComponent
public void addUndeployComponent(UndeployComponentTask task)
-
addUnsetAllTracers
public void addUnsetAllTracers(UnsetAllTracersTask task)
-
addUnbindRALinkName
public void addUnbindRALinkName(UnbindRALinkNameTask task)
-
addUninstall
public void addUninstall(UninstallTask task)
-
addUnshadowComponent
public void addUnshadowComponent(UnshadowComponentTask task)
-
addUnverifyComponent
public void addUnverifyComponent(UnverifyComponentTask task)
-
addUpdatePersistenceInstance
public void addUpdatePersistenceInstance(UpdatePersistenceInstanceTask task)
-
addUserTransaction
public void addUserTransaction(UserTransactionTask task)
-
addVerifyComponent
public void addVerifyComponent(VerifyComponentTask task)
-
addVerifyDeployableUnit
public void addVerifyDeployableUnit(VerifyDeployableUnitTask task)
-
addWaitTilConverged
public void addWaitTilConverged(WaitTilConvergedTask task)
-
addWaitTilRAEntityIsInactive
public void addWaitTilRAEntityIsInactive(WaitTilRAEntityIsInactiveTask task)
-
addWaitTilServiceIsInactive
public void addWaitTilServiceIsInactive(WaitTilServiceIsInactiveTask task)
-
addSetLoggingProperties
public void addSetLoggingProperties(SetLoggingPropertiesTask task)
-
addRemoveLoggingProperty
public void addRemoveLoggingProperty(RemoveLoggingPropertyTask task)
-
setNamespace
public void setNamespace(String namespace)
-
-