public class ControllerInitializer extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
bindAddress |
static String |
INTERFACE_NAME |
protected Map<String,org.jboss.as.subsystem.test.ControllerInitializer.OutboundSocketBinding> |
outboundSocketBindings |
protected Map<String,org.jboss.as.subsystem.test.ControllerInitializer.PathInfo> |
paths |
static String |
SOCKET_BINDING_GROUP_NAME |
protected Map<String,Integer> |
socketBindings |
protected Map<String,String> |
systemProperties |
Constructor and Description |
---|
ControllerInitializer() |
Modifier and Type | Method and Description |
---|---|
void |
addPath(String name,
String path,
String relativeTo)
Adds a path to the model
This initializes the path part of the model with the operations to add it.
|
void |
addRemoteOutboundSocketBinding(String name,
String destinationHost,
int destinationPort)
Adds a remote outbound socket binding to the model.
|
void |
addSocketBinding(String name,
int port)
Adds a socket binding to the model.
|
void |
addSystemProperty(String key,
String value)
Adds a system property to the model.
|
protected List<org.jboss.dmr.ModelNode> |
initializeBootOperations()
Called by framework to get the additional boot operations
|
protected void |
initializeModel(Resource rootResource,
ManagementResourceRegistration rootRegistration)
Called by framework to set up the model
|
protected void |
initializePathsModel(Resource rootResource,
ManagementResourceRegistration rootRegistration)
Initializes the interface, socket binding group and socket binding part of the model
|
protected void |
initializePathsOperations(List<org.jboss.dmr.ModelNode> ops) |
protected void |
initializeRemoteOutboundSocketBindingsOperations(List<org.jboss.dmr.ModelNode> ops)
Creates and add to the
ops the add operation for the
remote outbound socket configurations |
protected void |
initializeSocketBindingsModel(Resource rootResource,
ManagementResourceRegistration rootRegistration)
Initializes the interface, socket binding group and socket binding part of the model
|
protected void |
initializeSocketBindingsOperations(List<org.jboss.dmr.ModelNode> ops)
Creates the additional add interface, socket binding group and socket binding operations
|
protected void |
initializeSystemPropertiesModel(Resource rootResource,
ManagementResourceRegistration rootRegistration)
Initializes the system properties part of the model
|
protected void |
initializeSystemPropertiesOperations(List<org.jboss.dmr.ModelNode> ops)
Creates the additional add system property operations
|
void |
setBindAddress(String address)
Sets the bindAddress that will be used for socket bindings.
|
public static final String INTERFACE_NAME
public static final String SOCKET_BINDING_GROUP_NAME
protected volatile String bindAddress
protected final Map<String,org.jboss.as.subsystem.test.ControllerInitializer.OutboundSocketBinding> outboundSocketBindings
public void addSystemProperty(String key, String value)
key
- the system property namevalue
- the system property valuepublic void setBindAddress(String address)
address
- the default bind addresspublic void addSocketBinding(String name, int port)
name
- the socket binding nameport
- the socket binding portpublic void addRemoteOutboundSocketBinding(String name, String destinationHost, int destinationPort)
name
- the socket binding namedestinationHost
- The destination hostdestinationPort
- the destination portpublic void addPath(String name, String path, String relativeTo)
name
- the name of the pathpath
- the absolute path, or the name of a path (if used with relativeTo
relativeTo
- a path relative to path
protected void initializeModel(Resource rootResource, ManagementResourceRegistration rootRegistration)
rootResource
- the root model resourcerootRegistration
- the root model registryprotected List<org.jboss.dmr.ModelNode> initializeBootOperations()
protected void initializeSystemPropertiesModel(Resource rootResource, ManagementResourceRegistration rootRegistration)
rootResource
- the root model resourcerootRegistration
- the root model registryprotected void initializeSocketBindingsModel(Resource rootResource, ManagementResourceRegistration rootRegistration)
rootResource
- the root model resourcerootRegistration
- the root model registryprotected void initializePathsModel(Resource rootResource, ManagementResourceRegistration rootRegistration)
rootResource
- the root model resourcerootRegistration
- the root model registryprotected void initializeSystemPropertiesOperations(List<org.jboss.dmr.ModelNode> ops)
ops
- the operations list to add our ops toprotected void initializeSocketBindingsOperations(List<org.jboss.dmr.ModelNode> ops)
ops
- the operations list to add our ops toprotected void initializeRemoteOutboundSocketBindingsOperations(List<org.jboss.dmr.ModelNode> ops)
ops
the add
operation for the
remote outbound socket configurationsops
- the operations list to add our ops toprotected void initializePathsOperations(List<org.jboss.dmr.ModelNode> ops)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.