All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.openbox.server.log.ServerLog Maven / Gradle / Ivy

There is a newer version: 2.1.6
Show newest version
package com.googlecode.openbox.server.log;

import com.googlecode.openbox.server.Server;

/**
 * this is server log mode and its common behaviors interface
 * 
 * @author Jerry Cai
 * 
 */
public interface ServerLog {
	
	Server getServer();

	String getHome();

	String getName();

	String getPath();

	int getCurrentLineNum();

	String getContentByCommand(String command);

	String getLastestContent(int fromLineNum);

	String getContentBetween(int beginLineNum, int endLineNum);

	String grepContentByKeys(String... keys);

	String grepContentByKeysFrom(int beginLineNum , String... keys);
	
	void deleteLog();
	
	void emptyLogByNewLogContent(String newLogContent);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy