CLIOptionspublic class CLIOptions extends Object Represents CLI options and operand provided by the user
at the time of report generation |
Fields Summary |
---|
private static final String | OUTPUT_FILE | private static final String | FILE | private static final String | CUSTOMER_INPUT | private static final String | BUG_IDS | private static final String | LOG_START_DATE | private static final String | LOG_END_DATE | private static final String | TARGET_DIR | private static final String | TARGET | private static final String | USER | private static final String | PASSWD | private static final String | LOCAL_FLAG | private Date | startDate | private Date | endDate | private String | customerInput | private String | customerInputFile | private String | bugIds | private String | destReportFile | private String | reportDir | private String | targetDir | private String | targetName | private String | targetType | private String | user | private String | passwd | private boolean | local | private Map | map |
Constructors Summary |
---|
public CLIOptions(Map options)
this((Date)options.get(LOG_START_DATE),
(Date)options.get(LOG_END_DATE),
(String)options.get(FILE),
(String)options.get(CUSTOMER_INPUT),
(String)options.get(BUG_IDS),
(String)options.get(OUTPUT_FILE),
(String)options.get(TARGET_DIR),
(String)options.get(TARGET),
(String)options.get(USER),
(String)options.get(PASSWD),
Boolean.valueOf((String)options.get(LOCAL_FLAG)).booleanValue());
this.map = options;
| public CLIOptions(Date startDate, Date endDate, String file, String customerInput, String bugIds, String destReportFile, String targetDir, String targetName, String user, String passwd, boolean local)
this.startDate = startDate;
this.endDate = endDate;
this.targetName = targetName;
this.targetDir = targetDir;
this.destReportFile = destReportFile;
this.local = local;
this.customerInputFile = file;
this.customerInput = customerInput;
this.bugIds = bugIds;
this.user = user;
this.passwd = passwd;
|
Methods Summary |
---|
public java.lang.String | getBugIds()Returns bugids provided by the customer
return bugIds;
| public java.lang.String | getCustomerInput()Returns customer input entered by user in admin GUI
return customerInput;
| public java.lang.String | getCustomerInputFile()Returns name of customer input file
return customerInputFile;
| public java.util.Date | getEndDate()End Date to which server.log entries need to be collected
return endDate;
| public java.util.Map | getMap()
return map;
| public java.lang.String | getPasswd()Returns passwd
return passwd;
| public java.lang.String | getReportFile()Returns name of generated report in compressed format
return destReportFile;
| public java.util.Date | getStartDate()Begin Date from which server.log contents need to be copied
return startDate;
| public java.lang.String | getTargetDir()Returns value of CLI option - targetDir if command is being
run in local mode
return targetDir;
| public java.lang.String | getTargetName()Returns targetName
return targetName;
| public java.lang.String | getUser()Returns user
return user;
| public boolean | isLocal()Returns true if command is being run in local mode
return local;
| public java.lang.String | toString()
return getTargetDir() + "," + getTargetName() + "," +
getCustomerInputFile() + "," + getBugIds() +
"," + getStartDate() +
"," + getEndDate() + "," + getReportFile();
|
|