35 hdl = (mng == 0L && dummy ==
false ? 0L : atomCreate(mng,
this));
40 private long hdl = 0L;
42 private native
static long atomCreate (
long mng, Object
self);
43 private native
static long atomDelete (
long mng);
45 protected void Dispose(
boolean disposing) {
65 hdl = atomDelete(hdl);
77 public void ErrorPrint (Throwable ex) {
84 return hdl == 0L ?
"MK_NULL" :
ToString();
162 public native
void DbgDump (String message, String callfunc);
175 public native
void DbgL (String message,
int debug, String callfunc,
int lvl);
178 public void DbgL (String message) {
179 DbgL (message, 0,
null, 0);
183 public void DbgL (String message,
int debug) {
184 DbgL (message, debug,
null, 0);
188 public void DbgL (String message,
int debug, String callfunc) {
189 DbgL (message, debug, callfunc, 0);
201 public native
void DbgO (String callfunc);
209 public native
void DbgSTACK (
int skip,
int num, String callfunc);
229 public native
static void DbgM (String message,
int debug, String callfunc,
int lvl);
232 public static void DbgM (String message) {
233 DbgM (message, 0,
null, 0);
237 public static void DbgM (String message,
int debug) {
238 DbgM (message, debug,
null, 0);
242 public static void DbgM (String message,
int debug, String callfunc) {
243 DbgM (message, debug, callfunc, 0);
256 public native
void LogC (String message,
int debug, String callfunc);
259 public void LogC (String message) {
260 LogC (message, 0,
null);
264 public void LogC (String message,
int debug) {
265 LogC (message, debug,
null);
269 public native
void LogHEX (String callfunc,
byte[] data);
272 public native
void Log (
MkObjectC fmtobj,
int debug, String callfunc,
int lvl);
289 LogLong (fmtobj, debug,
null, 0);
294 LogLong (fmtobj, debug, callfunc, 0);
317 LogShort (fmtobj, debug, callfunc, 0);
335 LogType (fmtobj, debug,
null, 0);
340 LogType (fmtobj, debug, callfunc, 0);
350 Log (fmtobj, 0,
null, 0);
355 Log (fmtobj, debug,
null, 0);
360 Log (fmtobj, debug, callfunc, 0);
427 public native
void SysKill (
int pid,
int signal);
437 public native
static int SysHashI32 (String key,
int length);
445 public native
static String
SysHashSTR (String key,
int length);
501 @SuppressWarnings(
"deprecation")
503 return Thread.currentThread().getId();
508 StackTraceElement[] steA = Thread.currentThread().getStackTrace();
509 if (level >= steA.length) level=steA.length-1;
510 return steA[level].getMethodName();
518 return Thread.currentThread().getStackTrace().toString();
526 StackTraceElement[] steA = Thread.currentThread().getStackTrace();
527 if (level >= steA.length) level=steA.length-1;
528 return steA[level].getLineNumber();
536 StackTraceElement[] steA = Thread.currentThread().getStackTrace();
537 if (level >= steA.length) level=steA.length-1;
538 return steA[level].getFileName();
544 public static void SF(String msg, String name,
int framelvl) {
545 if (name ==
null) { name =
"unknown"; }
546 System.err.println(String.format(
"[pid=%d,tid=%d,caller=%-25s] -> {%-15s} = %s",
549 public static void SF(String msg) {
552 public static void SF(String msg, String name) {
555 public static void printP(
long ptr, String name,
int framelvl) {
558 SF(
"NULL", name, framelvl+1);
560 SF(String.format(
"0x%x",ptr), name, framelvl+1);
566 public static void printO(
byte byt, String name,
int framelvl) {
568 SF(Byte.toString(byt), name, framelvl+1);
570 public static void printBool(
boolean bol, String name,
int framelvl) {
572 SF(Boolean.toString(bol), name, framelvl+1);
574 public static void printObj(Object
id, String caller,
int framelvl) {
576 SF(
"type=null, value=null", caller, framelvl+1);
578 SF(
"type=" +
id.getClass() +
", value=" +
id, caller, framelvl+1);
581 public static void printObj(Object
id, String caller) {
587 public static void printC(String
id, String name,
int framelvl) {
597 SF(
"NULL", name, framelvl+1);
605 StackTraceElement[] st = Thread.currentThread().getStackTrace();
606 for(
int i =framelvl; i< st.length; i++ )
610 SF(String.format(
"[%d] %s",i ,st[i].getMethodName()), name, framelvl+1);
613 public static void M0() {
SF(
"M0000000000000",
null,1); }
614 public static void M1() {
SF(
"M1111111111111",
null,1); }
615 public static void M2() {
SF(
"M2222222222222",
null,1); }
616 public static void M3() {
SF(
"M3333333333333",
null,1); }
617 public static void M4() {
SF(
"M4444444444444",
null,1); }
618 public static void M5() {
SF(
"M5555555555555",
null,1); }
619 public static void M6() {
SF(
"M6666666666666",
null,1); }
620 public static void M7() {
SF(
"M7777777777777",
null,1); }
621 public static void M8() {
SF(
"M8888888888888",
null,1); }
622 public static void M9() {
SF(
"M9999999999999",
null,1); }
623 public static void MA() {
SF(
"MAAAAAAAAAAAAA",
null,1); }
624 public static void MB() {
SF(
"MBBBBBBBBBBBBB",
null,1); }
625 public static void MC() {
SF(
"MCCCCCCCCCCCCC",
null,1); }
626 public static void MD() {
SF(
"MDDDDDDDDDDDDD",
null,1); }
627 public static void ME() {
SF(
"MEEEEEEEEEEEEE",
null,1); }
629 private void SL(String txt,
int framelvl) {
633 public void L0() { SL(
"0000000000000",1); }
634 public void L1() { SL(
"1111111111111",1); }
635 public void L2() { SL(
"2222222222222",1); }
636 public void L3() { SL(
"3333333333333",1); }
637 public void L4() { SL(
"4444444444444",1); }
638 public void L5() { SL(
"5555555555555",1); }
639 public void L6() { SL(
"6666666666666",1); }
640 public void L7() { SL(
"7777777777777",1); }
641 public void L8() { SL(
"8888888888888",1); }
642 public void L9() { SL(
"9999999999999",1); }
643 public void LA() { SL(
"AAAAAAAAAAAAA",1); }
644 public void LB() { SL(
"BBBBBBBBBBBBB",1); }
645 public void LE() { SL(
"EEEEEEEEEEEEE",1); }
647 public void printL(String name, Object val ) { SL(
"["+name +
":" + val +
"]", 1); }
MkErrorC - the class known as err or error is used to create and manage an error message …
MkKernel PACKAGE - The package is the toplevel structure of the Programming-Language-Micro-Kernel (PL...
MkObjectC - class known as obj or object is used as base-class type for a Programming-Language-Micro-...
static String getStackTrace(int level)
static String getCallerProc()
static void printObj(Object id, String caller)
static String getCallerFile(int level)
static void SF(String msg, String name)
static void printC(String id, String name, int framelvl)
static void SF(String msg, String name, int framelvl)
MkObjectC(long mng, boolean dummy)
This contructor is used internal to create an java-object for an already existing libmqmsgque-object.
static void printObj(Object id, String caller, int framelvl)
static int getCallerLine(int level)
static void SF(String msg)
static String getCallerFile()
static void printP(long ptr, String name, int framelvl)
static String getCallerProc(int level)
static void printC(String id)
void printL(String name, Object val)
static void printStack(String name, int framelvl)
static int getCallerLine()
static void printO(byte byt, String name, int framelvl)
static void printObj(Object id)
static void printTyp(MkObjectC id, String name, int framelvl)
static String getStackTrace()
static void printBool(boolean bol, String name, int framelvl)
void Dispose(boolean disposing)
static void Setup()
Java: [static] Setup() → C-API setup jvmkkernel internal memory …
native int HandleGetOr0()
Java: int obj.HandleGetOr0() → C-API return export-hdl or 0 in not created…
native boolean HandleExists()
Java: boolean obj.HandleExists() → C-API check if obj has already a handle defined…
native int HandleGetOfType()
Java: int obj.HandleGetOfType() → C-API Export-Slot - returns typeHdl of the obj .
native void HandleDelete()
Java: netObj.HandleDelete() → C-API Handle-Delete-Slot - delete a netObj from handle-storage …
static native MkObjectC GetNull()
Java: [static] MkObjectC MkObjectC.GetNull() → C-API Null-Slot - return a MkObjectC typed NULL i...
native MkObjectC Prev()
Java: MkObjectC obj.Prev() → C-API get previous instance from linked-list of MkObjectS type
static native void HandleDeleteByNetHdl(int netHdl)
Java: [static] MkObjectC.HandleDeleteByNetHdl(int netHdl) → C-API Handle-Delete-Slot - delete a ...
static native MkObjectC Instances()
Java: [static] MkObjectC MkObjectC.Instances() → C-API get head-instance from linked-list of MkO...
native MkObjectC Next()
Java: MkObjectC obj.Next() → C-API get next instance from linked-list of MkObjectS type
static native MkObjectC HandleResolve(int netHdl)
Java: [static] MkObjectC MkObjectC.HandleResolve(int netHdl) → C-API Handle-Resolve-Slot - retur...
native int HandleGet()
Java: int obj.HandleGet() → C-API Handle-Get-Slot - returns a export-hdl to the MkObjectC useab...
static native void DbgM(String message, int debug, String callfunc, int lvl)
Java: [static] MkObjectC.DbgM(String message, ?int debug = 0?, ?String callfunc = null?...
void DbgL(String message, int debug)
Java: fmtobj.DbgL(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?...
void DbgSTACK(int skip)
Java: fmtobj.DbgSTACK(?int skip = 0?, ?int num = -1?, ?String callfunc = null?) → C-API debug: ...
void DbgDump()
Java: obj.DbgDump(?String message = "var"?, ?String callfunc = null?) → C-API debug: Dump a ins...
native void DbgL(String message, int debug, String callfunc, int lvl)
Java: fmtobj.DbgL(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?...
native void DbgDump(String message, String callfunc)
Java: obj.DbgDump(?String message = "var"?, ?String callfunc = null?) → C-API debug: Dump a ins...
static void DbgM(String message, int debug)
Java: [static] MkObjectC.DbgM(String message, ?int debug = 0?, ?String callfunc = null?...
static void DbgM(String message)
Java: [static] MkObjectC.DbgM(String message, ?int debug = 0?, ?String callfunc = null?...
void DbgSTACK(int skip, int num)
Java: fmtobj.DbgSTACK(?int skip = 0?, ?int num = -1?, ?String callfunc = null?) → C-API debug: ...
native void DbgLogC(String callfunc)
Java: obj.DbgLogC(?String callfunc = null?) → C-API debug: write a short-obj-summary to MkLogFi...
static void DbgM(String message, int debug, String callfunc)
Java: [static] MkObjectC.DbgM(String message, ?int debug = 0?, ?String callfunc = null?...
void DbgL(String message, int debug, String callfunc)
Java: fmtobj.DbgL(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?...
void DbgL(String message)
Java: fmtobj.DbgL(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?...
native void DbgSTACK(int skip, int num, String callfunc)
Java: fmtobj.DbgSTACK(?int skip = 0?, ?int num = -1?, ?String callfunc = null?) → C-API debug: ...
void DbgDump(String message)
Java: obj.DbgDump(?String message = "var"?, ?String callfunc = null?) → C-API debug: Dump a ins...
native void DbgO(String callfunc)
Java: obj.DbgO(?String callfunc = null?) → C-API debug: write the object-details to MkLogFileC ...
void DbgLogC()
Java: obj.DbgLogC(?String callfunc = null?) → C-API debug: write a short-obj-summary to MkLogFi...
void DbgSTACK()
Java: fmtobj.DbgSTACK(?int skip = 0?, ?int num = -1?, ?String callfunc = null?) → C-API debug: ...
void DbgO()
Java: obj.DbgO(?String callfunc = null?) → C-API debug: write the object-details to MkLogFileC ...
void LogLong()
Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void Log(MkObjectC fmtobj)
Java: obj.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
native void LogShort(MkObjectC fmtobj, int debug, String callfunc, int lvl)
Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogType(MkObjectC fmtobj, int debug, String callfunc)
Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
native void LogType(MkObjectC fmtobj, int debug, String callfunc, int lvl)
Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
native void LogLong(MkObjectC fmtobj, int debug, String callfunc, int lvl)
Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogLong(MkObjectC fmtobj)
Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogShort(MkObjectC fmtobj, int debug, String callfunc)
Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogLong(MkObjectC fmtobj, int debug)
Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void Log(MkObjectC fmtobj, int debug, String callfunc)
Java: obj.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
native void LogC(String message, int debug, String callfunc)
Java: fmtobj.LogC(String message, ?int debug = 0?, ?String callfunc = null?) → C-API write a lo...
void Log()
Java: obj.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogType(MkObjectC fmtobj, int debug)
Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogShort()
Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogShort(MkObjectC fmtobj, int debug)
Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogLong(MkObjectC fmtobj, int debug, String callfunc)
Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogType(MkObjectC fmtobj)
Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogC(String message, int debug)
Java: fmtobj.LogC(String message, ?int debug = 0?, ?String callfunc = null?) → C-API write a lo...
native void LogHEX(String callfunc, byte[] data)
Java: fmtobj.LogHEX(?String callfunc = null?, byte[] data) → C-API log binaray data as HEX into...
void Log(MkObjectC fmtobj, int debug)
Java: obj.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogShort(MkObjectC fmtobj)
Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogType()
Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
void LogC(String message)
Java: fmtobj.LogC(String message, ?int debug = 0?, ?String callfunc = null?) → C-API write a lo...
native void Log(MkObjectC fmtobj, int debug, String callfunc, int lvl)
Java: obj.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
native MkErrorC ErrorCatch(Throwable exception, String callfunc)
Java: MkErrorC obj.ErrorCatch(?Throwable exception = null?, ?String callfunc = null?...
native String ToNameOfClass()
Java: String obj.ToNameOfClass() → C-API Class-Slot - returns the Java-Class-Name of the obj as...
MkErrorC ErrorCatch()
Java: MkErrorC obj.ErrorCatch(?Throwable exception = null?, ?String callfunc = null?...
native String ToName()
Java: String obj.ToName() → C-API Info-Slot - returns brief information about the obj as a stri...
native String ToNameOfType()
Java: String obj.ToNameOfType() → C-API Type-Slot - returns the LibMkKernel-Type-Name of the ob...
MkErrorC ErrorCatch(Throwable exception)
Java: MkErrorC obj.ErrorCatch(?Throwable exception = null?, ?String callfunc = null?...
native MkErrorC ToError()
Java: MkErrorC obj.ToError() → C-API Error-Slot - return an error-object pre initialized with o...
native String ToString()
Java: String inst.ToString() → C-API String-Slot - returns the string representation of the ins...
native boolean IsNull()
Java: boolean obj.IsNull() → C-API ckeck if the object is null
native int RefGet()
MkRefGet
static int SysHashI32(String key)
MkSysHashI32
static native String SysHashSTR(String key, int length)
MkSysHashSTR
native void SysKill(int pid, int signal)
MkSysKill
static String SysHashSTR(String key)
MkSysHashSTR
static native int SysHashI32(String key, int length)
MkSysHashI32
native int SysGetPid()
MkSysGetPid
static void DeleteCallbackSetup(String ident)
Java: [static] MkObjectC.DeleteCallbackSetup(String ident, ?MkObjectDeleteIF callback = null?...
native void Dispose()
Java: [destructor] obj.Dispose() → C-API Dispose-Slot - untie the connection between the Native-...
static void DeleteCallbackSetup(String ident, MkObjectDeleteIF callback)
Java: [static] MkObjectC.DeleteCallbackSetup(String ident, ?MkObjectDeleteIF callback = null?...
static native void DeleteCallbackCleanup(String ident)
Java: [static] MkObjectC.DeleteCallbackCleanup(String ident) → C-API cleanup the DeleteCallback ...
native void Delete()
Java: [destructor] obj.Delete() → C-API Delete-Slot - delete an instance.
static native void DeleteCallbackSetup(String ident, MkObjectDeleteIF callback, String filter)
Java: [static] MkObjectC.DeleteCallbackSetup(String ident, ?MkObjectDeleteIF callback = null?...
→ C-API: MkObjectDeleteCallbackSetup