|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.anteater.test.log.LoggerUtils
Utility code for use by Loggers.
XMLLogger
Field Summary | |
static String |
FQCN
Variable containing fully qualified classname of current task, e.g. |
static String |
GROUP_ID
Variable containing the 'group identifier', eg 'default', in filesystem-friendly form. |
static String |
GROUP_ID_RAW
Variable containing the 'group identifier', eg 'default', in unescaped form. |
static String |
LINE_NUM
Variable containing line number of task that generated this log entry |
static String |
RAW_URL
"raw-url" Variable containing unmodified request URL, e.g. |
static String |
RAW_URL_NOPARAMS
Variable containing request URL with request params stripped, e.g. |
static String |
RUN
Variable containing a counter that ensures the current filename will be unique within its directory. |
static String |
TASKNAME
"taskname" variable containing name of currently running Task, e.g. |
static String |
URL
Variable containing a filesystem-friendly rendition of the request URL, minus the request params. |
static String |
VM_COUNT
Variable containing a counter unique within this Java Virtual Machine. |
Constructor Summary | |
LoggerUtils()
|
Method Summary | |
static String |
baseName(String path)
Return the file part of a URL. |
static int |
findNextRunCount(File baseDir,
Map map,
String filenameTemplate)
Look on the filesystem in directory baseDir for files
with a ${run} value of [counter], and return [counter+1]. |
static Map |
getAttributes(ActionTask task)
|
static String |
getPathId(ActionTask task)
Return a String identification for this HTTP action suitable for inclusion in a filename. |
static String |
makePath(String id)
Returns a filesystem-friendly equivalent of a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String LINE_NUM
public static final String FQCN
org.apache.anteater.test.HttpRequest
public static final String TASKNAME
HttpRequest
public static final String RAW_URL
http://foo.com/server?a=b
public static final String RAW_URL_NOPARAMS
http://foo.com/server
public static final String VM_COUNT
public static final String URL
http___www_bibleportalproject_com_cgi_xml_p8_php
public static final String GROUP_ID_RAW
public static final String GROUP_ID
public static final String RUN
Constructor Detail |
public LoggerUtils()
Method Detail |
public static String getPathId(ActionTask task)
task
- ActionTask to get path id of.
public static Map getAttributes(ActionTask task)
public static int findNextRunCount(File baseDir, Map map, String filenameTemplate)
baseDir
for files
with a ${run} value of [counter], and return [counter+1].
baseDir
- log directorymap
- Map of attributes for the filenameTemplatefilenameTemplate
- A template filename, with uninterpreted
${variables}, one of them being ${run} or ${prefix:run}
baseDir
public static String makePath(String id)
public static String baseName(String path)
path
- a File system path string, typically from Task.getLocation()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |