public class StaticDiscovery extends Object implements DiscoveryOption
Constructor and Description |
---|
StaticDiscovery(Map<String,org.jboss.dmr.ModelNode> properties)
Create the StaticDiscovery option.
|
Modifier and Type | Method and Description |
---|---|
void |
allowDiscovery(String host,
int port)
Allow a domain controller's host name and port number to be discovered.
|
void |
cleanUp()
Clean up anything that was created for domain controller discovery.
|
void |
discover()
Determine the host name and port of the remote domain controller.
|
String |
getRemoteDomainControllerHost()
Gets the host name of the remote domain controller.
|
int |
getRemoteDomainControllerPort()
Gets the port of the remote domain controller.
|
String |
toString() |
public void allowDiscovery(String host, int port)
DiscoveryOption
allowDiscovery
in interface DiscoveryOption
host
- the host name of the domain controllerport
- the port number of the domain controllerpublic void discover()
DiscoveryOption
discover
in interface DiscoveryOption
public void cleanUp()
DiscoveryOption
cleanUp
in interface DiscoveryOption
public String getRemoteDomainControllerHost()
DiscoveryOption
getRemoteDomainControllerHost
in interface DiscoveryOption
public int getRemoteDomainControllerPort()
DiscoveryOption
getRemoteDomainControllerPort
in interface DiscoveryOption
Copyright © 2014 JBoss by Red Hat. All rights reserved.