public class Configuration extends Object
| Modifier and Type | Method and Description |
|---|---|
Configuration |
addRequiredExtension(String name)
Adds a required extension to validate the extension has been added to the running server.
|
Configuration |
addRequiredExtensions(Collection<String> names)
Adds the required extensions to validate the extensions have been added to the running server.
|
Configuration |
addRequiredExtensions(String... names)
Adds the required extensiosn to validate the extensions have been added to the running server.
|
org.jboss.dmr.ModelNode |
getAddress()
The address where the model should be dumped from.
|
String |
getHostName()
Returns the host name used for the management connection.
|
int |
getPort()
Returns the management port fot the client to connect to.
|
String |
getProtocol()
Returns the protocol used for the management connection.
|
Set<String> |
getRequiredExtensions()
Returns the required extensions to validate they have been added to the running server.
|
Path |
getTargetFile()
Returns the target file to write the model to.
|
static Configuration |
of(Path targetFile)
Creates a new configuration for the model exporter.
|
Configuration |
setAddress(org.jboss.dmr.ModelNode address)
Sets the address where the model should be dumped from.
|
Configuration |
setHostName(String hostName)
Sets the host name used for the management connection.
|
Configuration |
setPort(int port)
Sets the management port for the client to connect to.
|
Configuration |
setProtocol(String protocol)
Sets the protocol used for the management connection.
|
public static Configuration of(Path targetFile)
targetFile - the file to write the model topublic org.jboss.dmr.ModelNode getAddress()
null.nullpublic Configuration setAddress(org.jboss.dmr.ModelNode address)
address - the address where the model should be dumped from or null for the root resourcepublic String getHostName()
localhost.public Configuration setHostName(String hostName)
hostName - the host namepublic int getPort()
9990.public Configuration setPort(int port)
port - the management portpublic String getProtocol()
null.public Configuration setProtocol(String protocol)
protocol - the protocol or null to use a default valuepublic Configuration addRequiredExtension(String name)
name - the extension namepublic Configuration addRequiredExtensions(String... names)
names - the extension namespublic Configuration addRequiredExtensions(Collection<String> names)
names - the extension namespublic Set<String> getRequiredExtensions()
public Path getTargetFile()
Copyright © 2023 JBoss by Red Hat. All rights reserved.