public class VisorLogSearchResult extends VisorDataTransferObject
V1, V2, V3, V4| Constructor and Description |
|---|
VisorLogSearchResult()
Default constructor.
|
VisorLogSearchResult(UUID nid,
String filePath,
long fileSize,
long lastModified,
String[] lines,
int lineNum,
int lineCnt,
String encoding)
Create log search result with given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding() |
String |
getFilePath() |
long |
getFileSize() |
long |
getLastModified() |
String |
getLine() |
int |
getLineCount() |
int |
getLineNumber() |
List<String> |
getLines() |
UUID |
getNid() |
protected void |
readExternalData(byte protoVer,
ObjectInput in)
Load object's specific data content.
|
String |
toString() |
protected void |
writeExternalData(ObjectOutput out)
Save object's specific data content.
|
getProtocolVersion, readExternal, toList, toSet, writeExternalpublic VisorLogSearchResult()
public VisorLogSearchResult(UUID nid, String filePath, long fileSize, long lastModified, String[] lines, int lineNum, int lineCnt, String encoding)
nid - Node ID.filePath - File path relative to the search folder.fileSize - File size.lastModified - Timestamp of last modification of the file.lines - Lines of text including found line and several lines before and after.lineNum - Line number in the file, 1 based.lineCnt - Lines count in the file.encoding - File content encoding.public UUID getNid()
public String getFilePath()
public long getFileSize()
public long getLastModified()
public List<String> getLines()
public int getLineNumber()
public int getLineCount()
public String getEncoding()
public String getLine()
protected void writeExternalData(ObjectOutput out) throws IOException
writeExternalData in class VisorDataTransferObjectout - Output object to write data content.IOException - If I/O errors occur.protected void readExternalData(byte protoVer,
ObjectInput in)
throws IOException,
ClassNotFoundException
readExternalData in class VisorDataTransferObjectprotoVer - Input object version.in - Input object to load data content.IOException - If I/O errors occur.ClassNotFoundException - If the class for an object being restored cannot be found.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021