APISonar


de.anomic.kelondro.util.Log.Log

> de > anomic > kelondro > util > Log > Log
de APIs anomic APIs kelondro APIs util APIs Log APIs Log APIs

Example 1
public static serverThread oneTimeJob(final Runnable thread, final long startupDelay) {
        final Log log = new Log(thread.getClass().getName() + "/run");
        log.setLevel(java.util.logging.Level.INFO);
        return oneTimeJob(thread, "run", log, startupDelay);
    }
Example 2
public URLFetcherStack(final File path) throws IOException {
        this.db = new Stack(new File(path, DBFILE), rowdef);
        this.log = new Log("URLFETCHERSTACK");
    }
Example 3
public static boolean checkWin32Heap(int mem){
		String line = "";
        final List<String> processArgs = new ArrayList<String>();
        processArgs.add("java");
        processArgs.add("-Xms4m");
        processArgs.add("-Xmx" + Integer.toString(mem) + "m");
        try {
    		line = consoleInterface.getLastLineConsoleOutput(processArgs, new Log("MEMCHECK"));
		} catch (final IOException e) {
			return false;
		}
		return (line.indexOf("space for object heap") > -1) ? false : true;
	}
Example 4
public AbstractImporter(final String theJobType) {
    	this.jobType = theJobType;

        // initializing the logger and setting a more verbose thread name
        this.log = new Log("IMPORT_" + this.jobType + "_" + this.jobID);
        this.setName("IMPORT_" + this.jobType + "_" + this.jobID);
    }