public class ServerParser extends ArgumentsParser
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cacheDirectory |
private int |
cordType |
private int |
cpiType |
private int |
deliveringMode |
private int |
deliveringSubtype |
private int |
deliveryProgressionOrder |
private boolean |
independentMessageHeaders |
private int |
keepAliveTimeout |
private boolean |
logEnabled |
private java.lang.String |
logFile |
private int |
logLevel |
private int |
maxRate |
private int |
numThreads |
private int[] |
ports |
private boolean |
predictiveModel |
private java.lang.String[][] |
serverArguments |
private java.lang.String |
targetsPath |
private int |
trafficShaping |
private boolean |
XMLLogFormat |
Constructor and Description |
---|
ServerParser(java.lang.String[] arguments)
Receives program arguments and parses it, setting to arguments variables.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCacheDirectory() |
int |
getDeliveringMode() |
int |
getDeliveringSubtype() |
boolean |
getIndependentMessageHeaders() |
int |
getKeepAliveTimeout() |
java.lang.String |
getLogFile() |
int |
getLogLevel() |
int |
getMaxRate() |
int |
getNumThreads() |
int[] |
getPorts() |
boolean |
getPredictiveModel() |
java.lang.String |
getTargetsPath() |
int |
getTrafficShaping() |
boolean |
isLogEnabled() |
boolean |
isXMLLogFormat() |
void |
parseArgument(int argFound,
java.lang.String[] options)
Parse an argument using parse functions from super class and put its value/s to the desired variable.
|
private void |
printCopyright()
Prints out the copyright.
|
private void |
printLiability()
Prints out the liability.
|
private void |
printWarranty()
Prints out the warranty.
|
parse, parseBoolean, parseBooleanArray, parseFloatArray, parseFloatArray, parseFloatPositive, parseIntegerArray, parseIntegerArray, parseIntegerPositive, parseIntegerRangesArray, parseLongArray, parseLongArray, parseLongPositive, parseRate, parseString, showArgsInfo, showArgsInfoLatexTable
private java.lang.String[][] serverArguments
private int[] ports
private int numThreads
private java.lang.String targetsPath
private java.lang.String logFile
private boolean XMLLogFormat
private boolean logEnabled
private int logLevel
private java.lang.String cacheDirectory
private int deliveringMode
private int deliveringSubtype
private int cpiType
private int cordType
private int deliveryProgressionOrder
private int keepAliveTimeout
private int maxRate
private int trafficShaping
private boolean independentMessageHeaders
private boolean predictiveModel
public ServerParser(java.lang.String[] arguments) throws ParameterException, ErrorException
arguments
- the array of strings passed at the command lineParameterException
- when an invalid parsing is detectedErrorException
- when some problem with method invocation occurspublic void parseArgument(int argFound, java.lang.String[] options) throws ParameterException
argFound
- number of parameter (the index of the array coderArguments)options
- the command line options of the argumentParameterException
- when some error about parameters passed (type, number of params, etc.) occurspublic int[] getPorts()
public int getNumThreads()
public java.lang.String getTargetsPath()
public java.lang.String getLogFile()
public boolean isXMLLogFormat()
public boolean isLogEnabled()
public int getLogLevel()
public int getDeliveringMode()
public int getDeliveringSubtype()
public java.lang.String getCacheDirectory()
public int getKeepAliveTimeout()
public int getMaxRate()
public int getTrafficShaping()
public boolean getIndependentMessageHeaders()
public boolean getPredictiveModel()
private void printWarranty()
private void printLiability()
private void printCopyright()
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)