|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.nio.JMemory
org.jnetpcap.nio.JStruct
org.jnetpcap.util.Debug
public class Debug
Specialized debug class that provides debugging and tracing services. There is a low level native debug object compiled into jnetpcap library. The native trace debugger works similar to the way that java logger's do with message levels that can be set which will allow debug information to be printed out.
| Nested Class Summary | |
|---|---|
static class |
Debug.Level
Defines various message severity levels. |
static interface |
Debug.LevelId
Provides access to raw level value. |
| Nested classes/interfaces inherited from class org.jnetpcap.nio.JMemory |
|---|
JMemory.Type |
| Field Summary |
|---|
| Fields inherited from class org.jnetpcap.nio.JMemory |
|---|
JNETPCAP_LIBRARY_NAME, MAX_DIRECT_MEMORY_DEFAULT, POINTER |
| Constructor Summary | |
|---|---|
Debug()
Instantiates a new debug. |
|
| Method Summary | |
|---|---|
int |
getLevel()
Gets the level. |
Debug.Level |
getLevelEnum()
Gets the level enum. |
void |
setLevel(Debug.LevelId level)
Sets the level. |
void |
setLevel(int level)
Sets the level. |
static int |
sizeof()
Size of native debug_t structure. |
| Methods inherited from class org.jnetpcap.nio.JStruct |
|---|
getStructName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Debug()
| Method Detail |
|---|
public static int sizeof()
public void setLevel(Debug.LevelId level)
level - the new levelpublic void setLevel(int level)
level - the new levelpublic int getLevel()
public Debug.Level getLevelEnum()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||