com.googlecode.openbox.server.log.ServerLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ssh Show documentation
Show all versions of ssh Show documentation
This is remote linux SSH module
The 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 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);
}