public class DNSManager extends Object
The tool can either be run directly from the command prompt by passing arguments directly from the command line or can be run interactively by passing 0 parameters. The only exception is setting the URL to the configuration service. By default the manager uses "http://localhost:8081/config-service/ConfigurationService" as the config URL, but can be changed using the configURL command line parameters (it must be the first parameter on the command line).
DNSManager configURL http://someserver:8081/config-service/ConfigurationService
| Constructor and Description |
|---|
DNSManager(URL configURL)
Constructor with the location of the configuration service.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Application entry point.
|
boolean |
run(String[] args)
Either executes commands from the command line or runs the manager interactively.
|
static void |
setExitOnEndCommands(boolean exit)
Determines if the application should exit when command processing is complete.
|
public DNSManager(URL configURL)
configURL - URL containing the locations of the configuration service.public static void main(String[] args)
args - Command line arguments.public boolean run(String[] args)
args - Command arguments. If the arguments are empty, then the manager runs interactively.public static void setExitOnEndCommands(boolean exit)
exit - True if the application should terminate on completing processing commands. False otherwise.Copyright © 2010-2015 The Direct Project. All Rights Reserved.