Class SISManagementTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- com.opencloud.slee.resources.sis.management.ant.SISManagementTask
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
SipSISManagementTask
public class SISManagementTask extends org.apache.tools.ant.TaskSIS Management Ant Task. Executes a series of sub-tasks to perform management operations on a SIS RA entity.This task establishes a connection to a SIS RA entity or, if one is available, uses an existing connection from a previous SIS 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.
The connection parameters (
host,port,username,password, andraentity) only need to be specified once per Ant session. Subsequent invovations of this task in the same Ant session will reuse the last successful connection. Further, thehost,port,usernameandpasswordparameters can be set automatically from Ant properties, see the table below. Theraentityparameter must be specified the first time this task is invoked, so that a connection is established to a SIS RA entity MBean.Ant Parameters
Attribute Description Required host Hostname or IP address of Rhino node Only for the first use of the connection in each Ant session. May be omitted if ${rhino.remote.host} property is defined instead. port Port for the RMI management interface. Only for the first use of the connection in each Ant session. May be omitted if ${rhino.remote.port} property is defined instead. username User for the RMI management interface. Only for the first use of the connection in each Ant session. May be omitted if ${rhino.remote.user} property is defined instead. password Password for the RMI management interface. Only for the first use of the connection in each Ant session. May be omitted if ${rhino.remote.password} property is defined instead. raentity Name of the SIS RA entity to manage. Only for the first use of the connection in each Ant session. failifmissing Failure case behaviour if the specified SIS RA entity does not exist, if set to 'false' or 'no', the build will continue (without executing any sub tasks) if the client cannot connect to the SIS RA entity. No, default is 'true' failonerror Default failure case behaviour for subtasks, if set to 'false' or 'no', the build will continue when a sub task attempts a redundant action. No, default is 'false' Subtasks specified as nested elements
The following sub task elements can be provided in any number and in any order. The SIS management task will execute these sub tasks in the specified order until a sub task fails by throwing aBuildException, which will be re-thrown to Ant with some contextual information regarding the sub task that caused it.Element Description installmacroInstalls a SIS macro component from a file. uninstallmacroUninstalls a deployed SIS macro component. replacemacroReplaces a deployed SIS macro component with new content from a file. installtriggerInstalls a SIS trigger component from a file. uninstalltriggerUninstalls a deployed SIS trigger component. replacemacroReplaces a deployed SIS trigger component with new content from a file. activatetriggerActivates a SIS trigger component. deactivatetriggerDeactivates a SIS trigger component. installcompositionInstalls a SIS composition component from a file. uninstallcompositionUninstalls a deployed SIS composition component. replacemacroReplaces a deployed SIS composition component with new content from a file. setdefaultservicetimeoutSet the SIS default service timeout. setfinegrainedtracingEnabled or disable fine-grained tracing. setauditlevelSets the amount of audit logging that the SIS will generate. createextensionrefCreates a SIS extension reference. replaceextensionrefReplaces an existing SIS extension reference. removeextensionrefRemoves a SIS extension reference. updateextensionrefUpdate configurable properties of a SIS extension reference. replaceservicerefReplaces an existing SIS service reference. removeservicerefRemoves a SIS service reference. createexternalplatformCreates a SIS external platform definition. removeexternalplatformRemoves a SIS external platform definition. addexternalplatformaddressAdds a SIP or IN address to an external platform definition. activateexternalplatformaddressActivates an address in an external platform definition. deactivateexternalplatformaddressDeactivates an address in an external platform definition. removeexternalplatformaddressRemove a SIP or IN address from an external platform definition. setaddresssubscriptionprofiletablenameSets the name of the SIS address subscriptions profile table. installaddresssubscriptionInstalls a SIS address subscription. updateaddresssubscriptionUpdates an existing SIS address subscription. uninstalladdresssubscriptionUninstalls a SIS address subscription. createnetworkinterfaceCreates a SIS network interface definition. updatenetworkinterfaceUpdates a existing SIS network interface definition. removenetworkinterfaceRemoves a SIS network interface definition. enablenetworkinterfaceEnables a network interface in a SIS instance.. disablenetworkinterfaceDisables a network interface in a SIS instance.. addnetworkrouteAdds a SIS network route. updatenetworkrouteUpdates an existing SIS network route. removenetworkrouteRemoves a SIS network route. adddefaultnetworkrouteAdds a default SIS network route. updatedefaultnetworkrouteUpdates an existing default SIS network route. removedefaultnetworkrouteRemoves a default SIS network route. settriggeraddressdebuglevelSets the fine-grained tracing debug level associated with a trigger address. enableexperimentalfeatureEnables an experimental feature in a SIS instance. disableexperimentalfeatureDisables an experimental feature in a SIS instance. reloadReloads the SIS configuration. Required for changes to take effect.
-
-
Constructor Summary
Constructors Constructor Description SISManagementTask()
-
Method Summary
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
setHost
public void setHost(String host)
-
setPort
public void setPort(int port)
-
setUsername
public void setUsername(String username)
-
setPassword
public void setPassword(String password)
-
setRaentity
public void setRaentity(String ra)
-
getFailOnError
public boolean getFailOnError()
-
setFailOnError
public void setFailOnError(boolean failOnError)
-
setFailIfMissing
public void setFailIfMissing(boolean failIfMissing)
-
addInstallMacro
public void addInstallMacro(InstallMacroTask task)
-
addUninstallMacro
public void addUninstallMacro(UninstallMacroTask task)
-
addReplaceMacro
public void addReplaceMacro(ReplaceMacroTask task)
-
addInstallTrigger
public void addInstallTrigger(InstallTriggerTask task)
-
addUninstallTrigger
public void addUninstallTrigger(UninstallTriggerTask task)
-
addReplaceTrigger
public void addReplaceTrigger(ReplaceTriggerTask task)
-
addActivateTrigger
public void addActivateTrigger(ActivateTriggerTask task)
-
addDeactivateTrigger
public void addDeactivateTrigger(DeactivateTriggerTask task)
-
addInstallComposition
public void addInstallComposition(InstallCompositionTask task)
-
addUninstallComposition
public void addUninstallComposition(UninstallCompositionTask task)
-
addReplaceComposition
public void addReplaceComposition(ReplaceCompositionTask task)
-
addInstallInterceptor
public void addInstallInterceptor(InstallInterceptorTask task)
-
addUninstallInterceptor
public void addUninstallInterceptor(UninstallInterceptorTask task)
-
addReplaceInterceptor
public void addReplaceInterceptor(ReplaceInterceptorTask task)
-
addCreateInterceptorRef
public void addCreateInterceptorRef(CreateInterceptorRefTask task)
-
addReplaceInterceptorRef
public void addReplaceInterceptorRef(ReplaceInterceptorRefTask task)
-
addRemoveInterceptorRef
public void addRemoveInterceptorRef(RemoveInterceptorRefTask task)
-
addSetDefaultServiceTimeout
public void addSetDefaultServiceTimeout(SetDefaultServiceTimeoutTask task)
-
addSetFineGrainedTracing
public void addSetFineGrainedTracing(SetFineGrainedTracingTask task)
-
addSetAuditLevel
public void addSetAuditLevel(SetAuditLevelTask task)
-
addCreateExtensionRef
public void addCreateExtensionRef(CreateExtensionRefTask task)
-
addReplaceExtensionRef
public void addReplaceExtensionRef(ReplaceExtensionRefTask task)
-
addRemoveExtensionRef
public void addRemoveExtensionRef(RemoveExtensionRefTask task)
-
addUpdateExtensionRef
public void addUpdateExtensionRef(UpdateExtensionRefTask task)
-
addReplaceServiceRef
public void addReplaceServiceRef(ReplaceServiceRefTask task)
-
addRemoveServiceRef
public void addRemoveServiceRef(RemoveServiceRefTask task)
-
addCreateExternalPlatform
public void addCreateExternalPlatform(CreateExternalPlatformTask task)
-
addUpdateExternalPlatform
public void addUpdateExternalPlatform(UpdateExternalPlatformTask task)
-
addRemoveExternalPlatform
public void addRemoveExternalPlatform(RemoveExternalPlatformTask task)
-
addAddExternalPlatformAddress
public void addAddExternalPlatformAddress(AddExternalPlatformAddressTask task)
-
addActivateExternalPlatformAddress
public void addActivateExternalPlatformAddress(ActivateExternalPlatformAddressTask task)
-
addDeactivateExternalPlatformAddress
public void addDeactivateExternalPlatformAddress(DeactivateExternalPlatformAddressTask task)
-
addRemoveExternalPlatformAddress
public void addRemoveExternalPlatformAddress(RemoveExternalPlatformAddressTask task)
-
addSetAddressSubscriptionsProfileTableName
public void addSetAddressSubscriptionsProfileTableName(SetAddressSubscriptionsProfileTableNameTask task)
-
addInstallAddressSubscription
public void addInstallAddressSubscription(InstallAddressSubscriptionTask task)
-
addUninstallAddressSubscription
public void addUninstallAddressSubscription(UninstallAddressSubscriptionTask task)
-
addUpdateAddressSubscription
public void addUpdateAddressSubscription(UpdateAddressSubscriptionTask task)
-
addSetTriggerAddressDebugLevel
public void addSetTriggerAddressDebugLevel(SetTriggerAddressDebugLevelTask task)
-
addSetTriggerAddressAuditLogging
public void addSetTriggerAddressAuditLogging(SetTriggerAddressAuditLoggingTask task)
-
addCreateNetworkInterface
public void addCreateNetworkInterface(CreateNetworkInterfaceTask task)
-
addUpdateNetworkInterface
public void addUpdateNetworkInterface(UpdateNetworkInterfaceTask task)
-
addRemoveNetworkInterface
public void addRemoveNetworkInterface(RemoveNetworkInterfaceTask task)
-
addEnableNetworkInterface
public void addEnableNetworkInterface(EnableNetworkInterfaceTask task)
-
addDisableNetworkInterface
public void addDisableNetworkInterface(DisableNetworkInterfaceTask task)
-
addAddNetworkRoute
public void addAddNetworkRoute(AddNetworkRouteTask task)
-
addUpdateNetworkRoute
public void addUpdateNetworkRoute(UpdateNetworkRouteTask task)
-
addRemoveNetworkRoute
public void addRemoveNetworkRoute(RemoveNetworkRouteTask task)
-
addAddDefaultNetworkRoute
public void addAddDefaultNetworkRoute(AddDefaultNetworkRouteTask task)
-
addUpdateDefaultNetworkRoute
public void addUpdateDefaultNetworkRoute(UpdateDefaultNetworkRouteTask task)
-
addRemoveDefaultNetworkRoute
public void addRemoveDefaultNetworkRoute(RemoveDefaultNetworkRouteTask task)
-
addEnableExperimentalFeature
public void addEnableExperimentalFeature(EnableExperimentalFeatureTask task)
-
addDisableExperimentalFeature
public void addDisableExperimentalFeature(DisableExperimentalFeatureTask task)
-
addReload
public void addReload(ReloadTask task)
-
-