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)
DiscoveryOptionallowDiscovery in interface DiscoveryOptionhost - the host name of the domain controllerport - the port number of the domain controllerpublic void discover()
DiscoveryOptiondiscover in interface DiscoveryOptionpublic void cleanUp()
DiscoveryOptioncleanUp in interface DiscoveryOptionpublic String getRemoteDomainControllerHost()
DiscoveryOptiongetRemoteDomainControllerHost in interface DiscoveryOptionpublic int getRemoteDomainControllerPort()
DiscoveryOptiongetRemoteDomainControllerPort in interface DiscoveryOptionCopyright © 2014 JBoss by Red Hat. All rights reserved.