public class LogSplitter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
LogSplitter.LogSplitException |
protected static class |
LogSplitter.splitCases |
Modifier and Type | Field and Description |
---|---|
protected boolean |
analyzeReady |
protected java.lang.String |
cmdHost |
protected int |
cmdPId |
protected int |
cmdSessId |
protected java.lang.String |
errMsg |
protected java.lang.String |
filename |
protected long |
filePos |
protected long |
fileSize |
protected com.highqsoft.logsplitter.LogSplitter.FilStrBuf[] |
filStrBuf |
protected long |
lineNo |
protected java.lang.String |
outFilename |
protected boolean |
singleFileFlag |
protected LogSplitter.splitCases |
splitCase |
Constructor and Description |
---|
LogSplitter(java.lang.String filename)
The constructor
|
LogSplitter(java.lang.String filename,
int cmdSessId)
The constructor
|
Modifier and Type | Method and Description |
---|---|
void |
analyzeFile()
Read the File for Splitting.
|
boolean |
analyzeReady()
Get the state of the analyze process.
|
java.lang.String |
errMsg()
Get the errormessage of the analyze process.
|
long |
getFilePos()
Get the size of the file.
|
long |
getFileSize()
Get the size of the file.
|
java.lang.String |
getOutFilename()
Get the outfilename.
|
static void |
main(java.lang.String[] args)
The main occurrence of the log splitter.
|
void |
setHost(java.lang.String cmdHost)
Set the Hostname.
|
void |
setPId(int cmdPId)
Set the processId.
|
void |
setSessId(int cmdSessId)
Set the sessionId.
|
protected java.lang.String filename
protected boolean singleFileFlag
protected int cmdSessId
protected int cmdPId
protected java.lang.String cmdHost
protected long fileSize
protected long filePos
protected long lineNo
protected com.highqsoft.logsplitter.LogSplitter.FilStrBuf[] filStrBuf
protected boolean analyzeReady
protected java.lang.String errMsg
protected LogSplitter.splitCases splitCase
protected java.lang.String outFilename
public LogSplitter(java.lang.String filename)
filename
- the filename.public LogSplitter(java.lang.String filename, int cmdSessId)
filename
- the filename.cmdSessId
- the commandline sessionId.public void setSessId(int cmdSessId)
cmdSessId
- public void setPId(int cmdPId)
cmdPId
- public void setHost(java.lang.String cmdHost)
cmdHost
- public long getFileSize()
public long getFilePos()
public java.lang.String getOutFilename()
public boolean analyzeReady()
public java.lang.String errMsg()
public void analyzeFile()
public static void main(java.lang.String[] args)
args
- the first argument is the name of the log file.
args[0] is the filename of the log file.
args[1] is the sessionId (optional).
args[2] is the processId (optional).
args[3] is the hostName (optional).