theLink 10.0
Loading...
Searching...
No Matches
jvmqmsgque.MqFactoryC Class Reference

MqFactoryC - the class known as fct or factory is used to provide an interface to create one or more new MqContextCMore...

+ Inheritance diagram for jvmqmsgque.MqFactoryC:
+ Collaboration diagram for jvmqmsgque.MqFactoryC:

Public Member Functions

native MqFactoryC Next ()
  Java: MqFactoryC fct.Next() C-API
get next instance from linked-list of MqFactoryS type
 
native MqFactoryC Prev ()
  Java: MqFactoryC fct.Prev() C-API
get previous instance from linked-list of MqFactoryS type
 
native String GetOriginalIdent ()
  Java: String fct.GetOriginalIdent() C-API
helper function to return MqFactoryS.originalIdent
 
native MqFactoryC Default ()
  Java: MqFactoryC fct.Default() C-API
set the default-attribute to the factory
 
native MqFactoryC Initial ()
  Java: MqFactoryC fct.Initial() C-API
set the initial-attribut to fct
 
native MqContextC New ()
  Java: MqContextC fct.New() C-API
create a new MqContextC from a MqFactoryC
 
void Log ()
  Java: fct.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MqFactoryC
 
void Log (MkObjectC fmtobj)
  Java: fct.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MqFactoryC
 
void Log (MkObjectC fmtobj, int debug)
  Java: fct.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MqFactoryC
 
void Log (MkObjectC fmtobj, int debug, String callfunc)
  Java: fct.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MqFactoryC
 
native MqFactoryC Dup2 (String ident)
  Java: [constructor] MqFactoryC fct.Dup2(String ident) C-API
create a duplicate of the singleton object MqFactoryC using a new factory-identifer
 
 MqFactoryC (Class<?> constructor, String ident)
  Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 
 MqFactoryC (Class<?> constructor)
  Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 
- Public Member Functions inherited from jvmkkernel::MkObjectC
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: [static] MqFactoryC MqFactoryC.GetCalled(?String ident = ""?) C-API

 
static native MqFactoryC HandleResolve (int netHdl)
  Java: [static] MqFactoryC MqFactoryC.HandleResolve(int netHdl) C-API
Handle-Resolve-Slot - return a MqFactoryC from netHdl or null if invalid…
 
static native MqFactoryC Instances ()
  Java: [static] MqFactoryC MqFactoryC.Instances() C-API
get head-instance from linked-list of MqFactoryS type …
 
static native MqFactoryC GetNull ()
  Java: [static] MqFactoryC MqFactoryC.GetNull() C-API
Null-Slot - return a MqFactoryC typed NULL instance …
 
static native MqFactoryC Get (String ident)
  Java: [static] MqFactoryC MqFactoryC.Get(?String ident = ""?) C-API
return the MqFactoryC
 
static native MqFactoryC GetCalled (String ident)
  Java: [static] MqFactoryC MqFactoryC.GetCalled(?String ident = ""?) C-API
returns the MqFactoryC identified by ident
 
static native MqFactoryC GetCalled (MkBufferListC largs)
  Java: [static] MqFactoryC MqFactoryC.GetCalled(?String ident = ""?) C-API
returns the MqFactoryC identified as first argument in the largs MkBufferListC
 
static MqFactoryC GetCalled ()
  Java: [static] MqFactoryC MqFactoryC.GetCalled(?String ident = ""?) C-API
returns the MqFactoryC identified by ident
 
static MqFactoryC Get ()
  Java: [static] MqFactoryC MqFactoryC.Get(?String ident = ""?) C-API
return the MqFactoryC
 
static native String DefaultIdent ()
  Java: [static] String MqFactoryC.DefaultIdent() C-API
return the factory-identifier of the default MqFactoryC
 
static native String InitialIdent ()
  Java: [static] String MqFactoryC.InitialIdent() C-API
return the factory-identifier of the initial MqFactoryC
 
static native void LogAll (String callfunc)
  Java: [static] MqFactoryC.LogAll(?String callfunc = null?) C-API
log all "factories" to stderr
 
static void LogAll ()
  Java: [static] MqFactoryC.LogAll(?String callfunc = null?) C-API
log all "factories" to stderr
 
static native MqFactoryC Add (Class<?> constructor, String ident)
  Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 
static MqFactoryC Add (Class<?> constructor)
  Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 
- Static Public Member Functions inherited from jvmkkernel::MkObjectC
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

- Protected Member Functions inherited from jvmkkernel::MkObjectC
 MkObjectC (long mng, boolean dummy)
 
void Dispose (boolean disposing)
 

Detailed Description

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:

  1. create/delete a MqContextC defined by a MqFactoryC
  2. infrastructure to host multiple MqFactoryC in a single executable
  3. provide an identifier used for factory-lookup and as an unique-application-name
  4. identification of a client and a server in an application-link

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.

Member Function Documentation

◆ GetCalled()

static MqFactoryC jvmqmsgque.MqFactoryC.GetCalled ( String... args)
static

Java: [static] MqFactoryC MqFactoryC.GetCalled(?String ident = ""?) C-API

Definition at line 45 of file MqFactoryC.java.

45 {
46 return GetCalled(new MkBufferListC(args));
47 }
static MqFactoryC GetCalled()
Java: [static] MqFactoryC MqFactoryC.GetCalled(?String ident = ""?) → C-API returns the MqFactor...

The documentation for this class was generated from the following file: