public class ProxyParser extends ArgumentsParser
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cacheDirectory |
private boolean |
logEnabled |
private java.lang.String |
logFile |
private int |
logLevel |
private int |
maxRate |
private float[] |
movProbabilities |
private int |
numThreads |
private int[] |
ports |
private java.lang.String |
predictiveModel |
private int |
prefetchingDataHistory |
private int |
prefetchingWOIType |
private int |
proxyType |
private static java.lang.String[][] |
serverArguments |
private int |
trafficShaping |
private boolean |
XMLLogFormat |
Constructor and Description |
---|
ProxyParser(java.lang.String[] arguments)
Receives program arguments and parses it, setting to arguments variables.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCacheDirectory() |
java.lang.String |
getLogFile() |
int |
getLogLevel() |
int |
getMaxRate() |
float[] |
getMovementProbabilities() |
int |
getNumThreads() |
int[] |
getPorts() |
java.lang.String |
getPredictiveModel() |
int |
getPrefetchingDataHistory() |
int |
getPrefetchingWOIType() |
int |
getProxyType() |
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 static final java.lang.String[][] serverArguments
private int[] ports
private int prefetchingDataHistory
private int prefetchingWOIType
private java.lang.String predictiveModel
private int numThreads
private int proxyType
private java.lang.String logFile
private boolean XMLLogFormat
private boolean logEnabled
private int logLevel
private java.lang.String cacheDirectory
private int maxRate
private int trafficShaping
private float[] movProbabilities
public ProxyParser(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 getPrefetchingDataHistory()
public int getPrefetchingWOIType()
public java.lang.String getPredictiveModel()
public int getNumThreads()
public int getProxyType()
public java.lang.String getLogFile()
public boolean isXMLLogFormat()
public boolean isLogEnabled()
public int getLogLevel()
public java.lang.String getCacheDirectory()
public int getMaxRate()
public int getTrafficShaping()
public float[] getMovementProbabilities()
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)