org.jnetpcap.util
Class Debug
java.lang.Object
org.jnetpcap.nio.JMemory
org.jnetpcap.nio.JStruct
org.jnetpcap.util.Debug
public class Debug
- extends JStruct
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.
- Author:
- Mark Bednarczyk, Sly Technologies, Inc.
|
Nested Class Summary |
static class |
Debug.Level
Defines various message severity levels |
static interface |
Debug.LevelId
Provides access to raw level value |
|
Constructor Summary |
Debug()
|
| Methods inherited from class org.jnetpcap.nio.JMemory |
check, cleanup, finalize, isInitialized, isJMemoryBasedOwner, isOwner, peer, peer, peer, setSize, size, toDebugString, toHexdump, toHexdump, totalActiveAllocated, totalAllocateCalls, totalAllocated, totalAllocatedSegments0To255Bytes, totalAllocatedSegments256OrAbove, totalDeAllocateCalls, totalDeAllocated, transferFrom, transferFrom, transferFrom, transferFrom, transferFromDirect, transferOwnership, transferTo, transferTo, transferTo, transferTo, transferTo, transferTo, transferTo |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Debug
public Debug()
- Parameters:
structName -
sizeof
public static int sizeof()
- Size of native debug_t structure
- Returns:
- size in bytes
setLevel
public void setLevel(Debug.LevelId level)
setLevel
public void setLevel(int level)
getLevel
public int getLevel()
getLevelEnum
public Debug.Level getLevelEnum()