galaxy.server
Class ServerArgParser

java.lang.Object
  |
  +--galaxy.util.ArgParser
        |
        +--galaxy.server.ServerArgParser

public class ServerArgParser
extends ArgParser


Constructor Summary
ServerArgParser(java.lang.String[] args)
          Creates a server arg parser.
ServerArgParser(java.lang.String[] args, java.lang.String helpText)
          Creates a server arg parser.
 
Method Summary
 java.util.List getHubContactInfoCollection()
           
 ListenerLocationInfo getListenerLocationInfo(java.lang.String targetServerName)
          Processes the server locations file (if present) and returns the listener location information for the specified server.
static void main(java.lang.String[] args)
           
 
Methods inherited from class galaxy.util.ArgParser
getArg, getArg, getIntegerArg, getStringArg, isArg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerArgParser

public ServerArgParser(java.lang.String[] args)
Creates a server arg parser.
Parameters:
args - the command line arguments to parse

ServerArgParser

public ServerArgParser(java.lang.String[] args,
                       java.lang.String helpText)
Creates a server arg parser.
Parameters:
args - the command line arguments to parse
helpText - this text is prepended to the message that is displayed when the -help command line argument is used
Method Detail

getListenerLocationInfo

public ListenerLocationInfo getListenerLocationInfo(java.lang.String targetServerName)
Processes the server locations file (if present) and returns the listener location information for the specified server. This can either be the settings for the target server's listener or the settings for the listener in the Hub to contact.
Parameters:
targetServerName - look for information for this server
Returns:
the listener information or null if no info was found for the server (or there was an error)

getHubContactInfoCollection

public java.util.List getHubContactInfoCollection()

main

public static void main(java.lang.String[] args)