
com.googlecode.openbox.server.log.ServerLog Maven / Gradle / Ivy
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 getContentWithFullCommand(String fullCommand);
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 - 2025 Weber Informatics LLC | Privacy Policy