/**\r
* This is a singleton -- there is only one LogfileLoader object in the server\r
*/\r
- private static LogfileLoader p;\r
+ private static LogfileLoader logfileLoader;\r
\r
/**\r
* Get the singleton LogfileLoader object, and start it if it is not running.\r
* @return the LogfileLoader\r
*/\r
public static synchronized LogfileLoader getLoader() {\r
- if (p == null)\r
- p = new LogfileLoader();\r
- if (!p.isAlive())\r
- p.start();\r
- return p;\r
+ if (logfileLoader == null)\r
+ logfileLoader = new LogfileLoader();\r
+ if (!logfileLoader.isAlive())\r
+ logfileLoader.start();\r
+ return logfileLoader;\r
}\r
\r
/**\r
}\r
}\r
\r
- private boolean pruneRecords() {\r
+ boolean pruneRecords() {\r
boolean did1 = false;\r
long count = countRecords();\r
long threshold = DEFAULT_LOG_RETENTION;\r
return did1;\r
}\r
\r
- private long countRecords() {\r
+ long countRecords() {\r
long count = 0;\r
Connection conn = null;\r
try {\r
return count;\r
}\r
\r
- private Map<Long, Long> getHistogram() {\r
+ Map<Long, Long> getHistogram() {\r
Map<Long, Long> map = new HashMap<Long, Long>();\r
Connection conn = null;\r
try {\r
}\r
\r
@SuppressWarnings("resource")\r
- private int[] process(File f) {\r
+ int[] process(File f) {\r
int ok = 0, total = 0;\r
try {\r
Connection conn = db.getConnection();\r
return new int[]{ok, total};\r
}\r
\r
- private Loadable[] buildRecords(String line) throws ParseException {\r
+ Loadable[] buildRecords(String line) throws ParseException {\r
String[] pp = line.split("\\|");\r
if (pp != null && pp.length >= 7) {\r
String rtype = pp[1].toUpperCase();\r