public class SpecifiedInterfaceAddHandler extends InterfaceAddHandler
Modifier and Type | Field and Description |
---|---|
static SpecifiedInterfaceAddHandler |
INSTANCE |
NAMED_INSTANCE, SPECIFIED_INSTANCE
attributes
Modifier | Constructor and Description |
---|---|
protected |
SpecifiedInterfaceAddHandler() |
Modifier and Type | Method and Description |
---|---|
static org.jboss.msc.service.Service<NetworkInterfaceBinding> |
createInterfaceService(String name,
ParsedInterfaceCriteria criteria)
Create a
NetworkInterfaceService . |
protected void |
performRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model,
ServiceVerificationHandler verificationHandler,
List<org.jboss.msc.service.ServiceController<?>> newControllers,
String name,
ParsedInterfaceCriteria criteria) |
protected boolean |
requiresRuntime(OperationContext context)
|
protected boolean |
requiresRuntimeVerification()
Gets whether the
ServiceVerificationHandler parameter passed to
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List)
should be added to the operation context as a step. |
getCriteria, getInterfaceName, performRuntime, populateModel, validateAndSet
createResource, execute, populateModel, populateModel, rollbackRuntime
public static final SpecifiedInterfaceAddHandler INSTANCE
protected boolean requiresRuntime(OperationContext context)
AbstractAddStepHandler
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List)
}
should be called. This default implementation always returns true
. Subclasses that perform no runtime
update could override and return false
.requiresRuntime
in class AbstractAddStepHandler
context
- operation contexttrue
if performRuntime
should be invoked; false
otherwise.protected void performRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, ServiceVerificationHandler verificationHandler, List<org.jboss.msc.service.ServiceController<?>> newControllers, String name, ParsedInterfaceCriteria criteria)
performRuntime
in class InterfaceAddHandler
protected boolean requiresRuntimeVerification()
AbstractAddStepHandler
ServiceVerificationHandler
parameter passed to
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List)
should be added to the operation context as a step.
This default implementation always returns true
.
requiresRuntimeVerification
in class AbstractAddStepHandler
true
if the service verification step should be added; false
if it's not necessary.public static org.jboss.msc.service.Service<NetworkInterfaceBinding> createInterfaceService(String name, ParsedInterfaceCriteria criteria)
NetworkInterfaceService
.Copyright © 2013 JBoss by Red Hat. All rights reserved.