theLink 10.0
|
MqFactoryC - the class known as fct or factory is used to provide an interface to create one or more new MqContextC … More...
Public Member Functions | |
native MqFactoryC | Next () |
Java: → C-API get next instance from linked-list of MqFactoryS type | |
native MqFactoryC | Prev () |
Java: → C-API get previous instance from linked-list of MqFactoryS type | |
native String | GetOriginalIdent () |
Java: → C-API helper function to return MqFactoryS.originalIdent | |
native MqFactoryC | Default () |
Java: → C-API set the default-attribute to the factory … | |
native MqFactoryC | Initial () |
Java: → C-API set the initial-attribut to fct … | |
native MqContextC | New () |
Java: → C-API create a new MqContextC from a MqFactoryC … | |
void | Log () |
Java: → C-API log the MqFactoryC … | |
void | Log (MkObjectC fmtobj) |
Java: → C-API log the MqFactoryC … | |
void | Log (MkObjectC fmtobj, int debug) |
Java: → C-API log the MqFactoryC … | |
void | Log (MkObjectC fmtobj, int debug, String callfunc) |
Java: → C-API log the MqFactoryC … | |
native MqFactoryC | Dup2 (String ident) |
Java: → C-API create a duplicate of the singleton object MqFactoryC using a new factory-identifer | |
MqFactoryC (Class<?> constructor, String ident) | |
Java: → C-API Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor … | |
MqFactoryC (Class<?> constructor) | |
Java: → C-API Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor … | |
![]() | |
void | close () |
String | toString () |
native void | HandleDelete () |
native boolean | HandleExists () |
native int | HandleGet () |
native int | HandleGetOfType () |
native int | HandleGetOr0 () |
native MkObjectC | Next () |
native MkObjectC | Prev () |
native void | DbgDump (String message, String callfunc) |
void | DbgDump () |
void | DbgDump (String message) |
native void | DbgL (String message, int debug, String callfunc, int lvl) |
void | DbgL (String message) |
void | DbgL (String message, int debug) |
void | DbgL (String message, int debug, String callfunc) |
native void | DbgLogC (String callfunc) |
void | DbgLogC () |
native void | DbgO (String callfunc) |
void | DbgO () |
native void | DbgSTACK (int skip, int num, String callfunc) |
void | DbgSTACK () |
void | DbgSTACK (int skip) |
void | DbgSTACK (int skip, int num) |
native void | LogC (String message, int debug, String callfunc) |
void | LogC (String message) |
void | LogC (String message, int debug) |
native void | LogHEX (String callfunc, byte[] data) |
native void | Log (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
native void | LogLong (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
void | LogLong () |
void | LogLong (MkObjectC fmtobj) |
void | LogLong (MkObjectC fmtobj, int debug) |
void | LogLong (MkObjectC fmtobj, int debug, String callfunc) |
native void | LogShort (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
void | LogShort () |
void | LogShort (MkObjectC fmtobj) |
void | LogShort (MkObjectC fmtobj, int debug) |
void | LogShort (MkObjectC fmtobj, int debug, String callfunc) |
native void | LogType (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
void | LogType () |
void | LogType (MkObjectC fmtobj) |
void | LogType (MkObjectC fmtobj, int debug) |
void | LogType (MkObjectC fmtobj, int debug, String callfunc) |
void | Log () |
void | Log (MkObjectC fmtobj) |
void | Log (MkObjectC fmtobj, int debug) |
void | Log (MkObjectC fmtobj, int debug, String callfunc) |
native MkErrorC | ErrorCatch (Throwable exception, String callfunc) |
MkErrorC | ErrorCatch () |
MkErrorC | ErrorCatch (Throwable exception) |
native MkErrorC | ToError () |
native boolean | IsNull () |
native String | ToName () |
native String | ToNameOfClass () |
native String | ToNameOfType () |
native String | ToString () |
native int | RefGet () |
native void | SysKill (int pid, int signal) |
native int | SysGetPid () |
native void | Dispose () |
native void | Delete () |
void | printP () |
void | L0 () |
void | L1 () |
void | L2 () |
void | L3 () |
void | L4 () |
void | L5 () |
void | L6 () |
void | L7 () |
void | L8 () |
void | L9 () |
void | LA () |
void | LB () |
void | LE () |
void | printL (String name, Object val) |
Static Public Member Functions | |
static MqFactoryC | GetCalled (String... args) |
Java: → C-API | |
static native MqFactoryC | HandleResolve (int netHdl) |
Java: → C-API Handle-Resolve-Slot - return a MqFactoryC from netHdl or null if invalid… | |
static native MqFactoryC | Instances () |
Java: → C-API get head-instance from linked-list of MqFactoryS type … | |
static native MqFactoryC | GetNull () |
Java: → C-API Null-Slot - return a MqFactoryC typed NULL instance … | |
static native MqFactoryC | Get (String ident) |
Java: → C-API return the MqFactoryC | |
static native MqFactoryC | GetCalled (String ident) |
Java: → C-API returns the MqFactoryC identified by ident … | |
static native MqFactoryC | GetCalled (MkBufferListC largs) |
Java: → C-API returns the MqFactoryC identified as first argument in the largs MkBufferListC … | |
static MqFactoryC | GetCalled () |
Java: → C-API returns the MqFactoryC identified by ident … | |
static MqFactoryC | Get () |
Java: → C-API return the MqFactoryC | |
static native String | DefaultIdent () |
Java: → C-API return the factory-identifier of the default MqFactoryC | |
static native String | InitialIdent () |
Java: → C-API return the factory-identifier of the initial MqFactoryC | |
static native void | LogAll (String callfunc) |
Java: → C-API log all "factories" to stderr | |
static void | LogAll () |
Java: → C-API log all "factories" to stderr | |
static native MqFactoryC | Add (Class<?> constructor, String ident) |
Java: → C-API Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor … | |
static MqFactoryC | Add (Class<?> constructor) |
Java: → C-API Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor … | |
![]() | |
static native MkObjectC | HandleResolve (int netHdl) |
static native void | HandleDeleteByNetHdl (int netHdl) |
static native MkObjectC | Instances () |
static native MkObjectC | GetNull () |
static native void | DbgM (String message, int debug, String callfunc, int lvl) |
static void | DbgM (String message) |
static void | DbgM (String message, int debug) |
static void | DbgM (String message, int debug, String callfunc) |
static native int | SysHashI32 (String key, int length) |
static int | SysHashI32 (String key) |
static native String | SysHashSTR (String key, int length) |
static String | SysHashSTR (String key) |
static native void | DeleteCallbackCleanup (String ident) |
static native void | DeleteCallbackSetup (String ident, MkObjectDeleteIF callback, String filter) |
static void | DeleteCallbackSetup (String ident) |
static void | DeleteCallbackSetup (String ident, MkObjectDeleteIF callback) |
static int | getPId () |
static long | getTId () |
static String | getCallerProc (int level) |
static String | getCallerProc () |
static String | getStackTrace (int level) |
static String | getStackTrace () |
static int | getCallerLine (int level) |
static int | getCallerLine () |
static String | getCallerFile (int level) |
static String | getCallerFile () |
static void | SF (String msg, String name, int framelvl) |
static void | SF (String msg) |
static void | SF (String msg, String name) |
static void | printP (long ptr, String name, int framelvl) |
static void | printO (byte byt, String name, int framelvl) |
static void | printBool (boolean bol, String name, int framelvl) |
static void | printObj (Object id, String caller, int framelvl) |
static void | printObj (Object id, String caller) |
static void | printObj (Object id) |
static void | printC (String id, String name, int framelvl) |
static void | printC (String id) |
static void | printTyp (MkObjectC id, String name, int framelvl) |
static void | printStack (String name, int framelvl) |
static void | M0 () |
static void | M1 () |
static void | M2 () |
static void | M3 () |
static void | M4 () |
static void | M5 () |
static void | M6 () |
static void | M7 () |
static void | M8 () |
static void | M9 () |
static void | MA () |
static void | MB () |
static void | MC () |
static void | MD () |
static void | ME () |
Additional Inherited Members | |
![]() | |
MkObjectC (long mng, boolean dummy) | |
void | Dispose (boolean disposing) |
MqFactoryC - the class known as fct or factory is used to provide an interface to create one or more new MqContextC …
The factory is an important part of the object management and has the following basic features:
Without a factory only the pipe-feature without the child-feature is guaranteed to work. Other features may work, this depends of the "flexibility" of the programming-language.
The link between the MqFactoryS-identifier and the MqFactoryC is important for the future development of jvmqmsgque. Message-Routing, Service-Location and Persistent-Transactions depend on this feature.
The relationship between the MqFactoryC and the MqContextC is the same as the relationship between a type (MqFactoryS) and an object (MqContextS) of a regular programming language. The MqFactoryC define the type of the server and the MqContextC define a single object of the server process or thread.
Application |-------------------------------------------------------------------------------------| |--------------- physical host 1 -----------------------|------ physical host 2 ------| |-------- process-1 --------|-------- process-2 --------|-- process-3 --|---- … ------| thread-1 thread-2… thread-1… thread-2… thread-1… thread-… factory-A factory-X factory-Y… factory-Z… object-1 object-1 object-… … object-2 object-2 … object-3 object-3 … …
A server has a single MqFactoryC object per thread or process but multiple MqFactoryC objects per application. Decreasing the size and the complexity of a MqContextC object will improve the server performance. In future more fields, defined in the MqSetupS attribute of the the MqContextC object, will move into MqFactoryC object.
Definition at line 20 of file MqFactoryC.java.
|
static |
Java:
→ C-API [static] MqFactoryC MqFactoryC.GetCalled(?String ident = ""?)
Definition at line 45 of file MqFactoryC.java.