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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 parsehelpText
- this text is prepended to the message that is displayed
when the -help command line argument is used
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)