|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.logging.LoggingEntryByteBuffer
public class LoggingEntryByteBuffer
Nested Class Summary | |
---|---|
static class |
LoggingEntryByteBuffer.Handler
|
Constructor Summary | |
---|---|
LoggingEntryByteBuffer()
|
|
LoggingEntryByteBuffer(int maxEntry)
|
Method Summary | |
---|---|
protected void |
add(java.nio.ByteBuffer b)
Method add Summary: This method add the given byteBuffer to the buffer. |
protected int |
addOffset(int offset)
|
protected void |
checkBufferSize(int length)
Method checkBufferSize Summary: This method ensures that the buffer contains enought space to add length more bytes. |
void |
clear()
|
void |
closeServer()
Method closeServer Summary: Close the logSocketServer. |
int |
getLength()
|
int |
getLevel(int index)
|
java.lang.String |
getLoggerName(int index)
|
java.lang.String |
getMessage(int index)
|
long |
getMillis(int index)
|
long |
getSequenceNumber(int index)
|
int |
getSize()
|
java.lang.String |
getSourceClassName(int index)
|
java.lang.String |
getSourceMethodName(int index)
|
int |
getThreadID(int index)
|
int |
isSocketServerOpen()
Method isSocketServerOpen Summary: Return the port used by the socketServer or -1 if no server is listening. |
void |
openServer(int port)
Method openServer Summary: Open the LogSocketserver on the given port. |
void |
read(java.io.File f)
Method read Summary: This method permits to read the given binary logfile, and put it in the current buffer. |
protected java.lang.String |
readException(org.w3c.dom.Node field,
java.lang.String message)
|
void |
readXML(java.io.File f)
|
void |
readXML(java.io.File f,
boolean append)
|
void |
save(java.io.File f)
Method save Summary: This method write the current buffer to the given file, in binary format. |
void |
setSize(int maxEntry)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggingEntryByteBuffer()
public LoggingEntryByteBuffer(int maxEntry)
Method Detail |
---|
public void clear()
public void readXML(java.io.File f) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public void readXML(java.io.File f, boolean append) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
protected java.lang.String readException(org.w3c.dom.Node field, java.lang.String message)
public void read(java.io.File f) throws java.io.IOException
f
- The file to open that contains binary logs.
java.io.IOException
public void openServer(int port) throws java.io.IOException
port
- The port that the server will listen to.
java.io.IOException
public void closeServer() throws java.io.IOException
java.io.IOException
public int isSocketServerOpen()
public void save(java.io.File f) throws java.io.IOException
f
- The file to write to.
java.io.IOException
protected void checkBufferSize(int length)
length
- The number of bytes that the capacity could handle.protected void add(java.nio.ByteBuffer b)
b
- The buffer to add to the logs.protected int addOffset(int offset)
public int getLength()
public void setSize(int maxEntry)
public int getSize()
public int getLevel(int index)
public java.lang.String getLoggerName(int index)
public java.lang.String getMessage(int index)
public long getMillis(int index)
public long getSequenceNumber(int index)
public java.lang.String getSourceClassName(int index)
public java.lang.String getSourceMethodName(int index)
public int getThreadID(int index)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |