org.nhindirect.dns.tools
Class DNSManager

java.lang.Object
  extended by org.nhindirect.dns.tools.DNSManager

public class DNSManager
extends Object

Command line tool for managing DNS entries in the Direct Project configuration service.

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

Since:
1.0
Author:
Greg Meyer

Constructor Summary
DNSManager(URL configURL)
          Constructor with the location of the configuration service.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNSManager

public DNSManager(URL configURL)
Constructor with the location of the configuration service.

Parameters:
configURL - URL containing the locations of the configuration service.
Since:
1.0
Method Detail

main

public static void main(String[] args)
Application entry point.

Parameters:
args - Command line arguments.
Since:
1.0

run

public boolean run(String[] args)
Either executes commands from the command line or runs the manager interactively.

Parameters:
args - Command arguments. If the arguments are empty, then the manager runs interactively.
Returns:
True if the command was run successfully. False otherwise.
Since:
1.0

setExitOnEndCommands

public static void setExitOnEndCommands(boolean exit)
Determines if the application should exit when command processing is complete. It may be desirable to set this to false if calling from another application context. The default is true.

Parameters:
exit - True if the application should terminate on completing processing commands. False otherwise.


Copyright © 2010-2015 The Direct Project. All Rights Reserved.