public class TimerServiceAdd extends AbstractBoottimeAddStepHandler
Modifier and Type | Field and Description |
---|---|
static TimerServiceAdd |
INSTANCE |
attributes
Modifier and Type | Method and Description |
---|---|
protected void |
performBoottime(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model,
ServiceVerificationHandler verificationHandler,
List<org.jboss.msc.service.ServiceController<?>> newControllers)
Make any runtime changes necessary to effect the changes indicated by the given
operation . |
protected void |
populateModel(org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode timerServiceModel)
Populate the
timerService from the operation |
performRuntime, rollbackRuntime
createResource, execute, populateModel, populateModel, requiresRuntime, requiresRuntimeVerification
public static final TimerServiceAdd INSTANCE
protected void populateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode timerServiceModel) throws OperationFailedException
timerService
from the operation
populateModel
in class AbstractAddStepHandler
operation
- the operationtimerServiceModel
- strict-max-pool ModelNodeOperationFailedException
protected void performBoottime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, ServiceVerificationHandler verificationHandler, List<org.jboss.msc.service.ServiceController<?>> newControllers) throws OperationFailedException
AbstractBoottimeAddStepHandler
operation
. Will only be
invoked if OperationContext.isBooting()
returns true
.performBoottime
in class AbstractBoottimeAddStepHandler
context
- the operation contextoperation
- the operation being executedmodel
- persistent configuration model node that corresponds to the address of operation
verificationHandler
- step handler that can be added as a listener to any new services installed in order to
validate the services installed correctly during the
VERIFY stage
newControllers
- holder for the ServiceController
for any new services installed by the method. The
method should add the ServiceController
for any new services to this list. If the
overall operation needs to be rolled back, the list will be used in
AbstractBoottimeAddStepHandler.rollbackRuntime(OperationContext, ModelNode, ModelNode, java.util.List)
to automatically removed
the newly added servicesOperationFailedException
- if operation
is invalid or updating the runtime otherwise failsCopyright © 2014 JBoss by Red Hat. All rights reserved.