Method | Description | |
---|---|---|
close ( ) : void |
Close MAMA and free all associated resource. MAMA employs a reference count to track multiple calls to Mama.open() and Mama.close(). The count is incremented every time Mama.open() is called and decremented when Mama.close() is called. The resources are not actually released until the count reaches zero. This function is thread safe.
|
|
defaultLogFunction ( MamaLogLevel level, string text ) : void |
This function will invoke the default log function.
|
|
disableLogging ( ) : void |
Disable logging.
|
|
enableLogging ( MamaLogLevel level ) : void |
Enable logging.
|
|
getDefaultEventQueue ( Wombat.MamaBridge bridgeImpl ) : Wombat.MamaQueue |
|
|
getLogLevel ( ) : MamaLogLevel |
Get the log level.
|
|
getProperty ( string name ) : string |
Retrieve a specific property from the API. If the property has not been set, a null value will be returned.
|
|
getVersion ( Wombat.MamaBridge bridgeImpl ) : string |
Return the version information for the library The version of Mama follows in parenthesis
|
|
loadBridge ( string middleware ) : Wombat.MamaBridge |
Load the bridge specified by middleware string. If the bridge has already been loaded then the existing bridge instance will be returned.
|
|
loadBridge ( string middleware, string path ) : Wombat.MamaBridge |
Load the bridge specified by middleware string using the path specified by the user. If the bridge has already been loaded then the existing bridge instance will be returned
|
|
loadPayloadBridge ( string payload ) : Wombat.MamaPayloadBridge |
Load the payload brige specified by the payload string.
|
|
log ( MamaLogLevel level, string text ) : void |
Add string to mama log at specified mama level.
|
|
logToFile ( string fileName, MamaLogLevel level ) : void |
Enable logging, accepts a string representing the file location.
|
|
loggingToFile ( ) : bool |
Get logging to file status
|
|
onNativeLogCallback ( int level, string message ) : void |
This handler is called by the C layer whenever a log comes in, it will invoke the managed object.
|
|
open ( ) : void |
Initialize MAMA. MAMA employs a reference count to track multiple calls to Mama.open() and Mama.close(). The count is incremented every time Mama.open() is called and decremented when Mama.close() is called. The resources are not actually released until the count reaches zero. If entitlements are enabled for the library, the available entitlement server names are read from the entitlement.servers property in the mama.properties file located in the %WOMBAT_PATH% directory. This function is thread safe.
|
|
openWithProperties ( string path, string filename ) : void |
Initialize MAMA. Allows users of the API to override the default behavior of mama_open() where a file mama.properties is required to be located in the directory specified by %WOMBAT_PATH%. The properties file must have the same structure as a standard mama.properties file. If null is passed as the path the API will look for the properties file on the %WOMBAT_PATH%. If null is passed as the filename the API will look for the default filename of mama.properties
|
|
setAppendToLogFile ( bool append ) : void |
Set append to prevent overwriting existing logfiles.
|
|
setDefaultQueueHighWatermark ( int highWatermark ) : void |
Set the high watermark for the internal default MAMA queue. See
|
|
setDefaultQueueLowWatermark ( int lowWatermark ) : void |
Set the low watermark for the internal default MAMA queue. See
|
|
setLogCallback ( MamaLogFileCallback2 callback ) : void |
Sets the log callback, this will be invoked every time a log is written in MAMA.
|
|
setLogFilePolicy ( MamaLogFilePolicy policy ) : void |
Set logging policy.
|
|
setLogLevel ( MamaLogLevel level ) : void |
Set the log level.
|
|
setLogSize ( ulong size ) : void |
Set the log file max size.
|
|
setLogSizeCb ( MamaLogFileCallback callback ) : void |
Set callback for log max size exceeded. Applies only to USER policy.
|
|
setNumLogFiles ( int numFiles ) : void |
Set the max number of log files.
|
|
setProperty ( string name, string value ) : void |
Set a specific property for the API. If the property being set has already been given a value from a properties file that value will be replaced. See the example mama.properties provided with the distribution for examples of property formatting. The properties set via this function should be formatted in the same manner as those specified in mama.properties. The strings passed to the function are copied.
|
|
start ( Wombat.MamaBridge bridgeImpl ) : void |
Start processing messages on the internal queue. This starts Mama's internal throttle, refresh logic, and other internal Mama processes as well as dispatching messages from the internal queue. Mama.start( ) blocks until an invocation of Mama.stop() occurs. MAMA employs a reference count to track multiple calls to Mama.start() and Mama.stop(). The count is incremented every time Mama.start() is called and decremented when Mama.stop() is called. The first Mama.start() call does not unblock until the count reaches zero. This function is thread safe.
|
|
startBackground ( Wombat.MamaBridge bridgeImpl, MamaStartBackgroundCallback callback ) : void |
Start Mama in the background. This method invokes Mama.start() in a separate thread.
|
|
stop ( Wombat.MamaBridge bridgeImpl ) : void |
Stop dispatching on the default event queue for the specified bridge. MAMA employs a reference count to track multiple calls to Mama.start() and Mama.stop(). The count is incremented every time Mama.start() is called and decremented when Mama.stop() is called. The first Mama.start() call does not unblock until the count reaches zero. This function is thread safe.
|
Method | Description | |
---|---|---|
getVersion ( |
Return the version information for the library The version of Mama follows in parenthesis
|
|
initGetVersionWrapper ( ) : void | ||
onNativeLogSizeExceeded ( ) : void |
This event handler is called whenever the log size is exceeded.
|
public static defaultLogFunction ( MamaLogLevel level, string text ) : void | ||
level | MamaLogLevel | /// The level to log at. /// |
text | string | /// The log message. /// |
return | void |
public static enableLogging ( MamaLogLevel level ) : void | ||
level | MamaLogLevel | /// The logging level allowed. /// |
return | void |
public static getDefaultEventQueue ( Wombat.MamaBridge bridgeImpl ) : Wombat.MamaQueue | ||
bridgeImpl | Wombat.MamaBridge | |
return | Wombat.MamaQueue |
public static getProperty ( string name ) : string | ||
name | string | |
return | string |
public static getVersion ( Wombat.MamaBridge bridgeImpl ) : string | ||
bridgeImpl | Wombat.MamaBridge | |
return | string |
public static loadBridge ( string middleware ) : Wombat.MamaBridge | ||
middleware | string | |
return | Wombat.MamaBridge |
public static loadBridge ( string middleware, string path ) : Wombat.MamaBridge | ||
middleware | string | |
path | string | |
return | Wombat.MamaBridge |
public static loadPayloadBridge ( string payload ) : Wombat.MamaPayloadBridge | ||
payload | string | |
return | Wombat.MamaPayloadBridge |
public static log ( MamaLogLevel level, string text ) : void | ||
level | MamaLogLevel | /// The level to log at. /// |
text | string | /// The log message. /// |
return | void |
public static logToFile ( string fileName, MamaLogLevel level ) : void | ||
fileName | string | /// The full path to the log file. /// |
level | MamaLogLevel | /// The logging level allowed. /// |
return | void |
public static onNativeLogCallback ( int level, string message ) : void | ||
level | int | /// The log level. /// |
message | string | /// The log message. /// |
return | void |
public static openWithProperties ( string path, string filename ) : void | ||
path | string | /// Fully qualified path to the directory containing the properties /// file /// |
filename | string | /// The name of the file containing MAMA properties. /// |
return | void |
public static setAppendToLogFile ( bool append ) : void | ||
append | bool | |
return | void |
public static setDefaultQueueHighWatermark ( int highWatermark ) : void | ||
highWatermark | int | |
return | void |
public static setDefaultQueueLowWatermark ( int lowWatermark ) : void | ||
lowWatermark | int | |
return | void |
public static setLogCallback ( MamaLogFileCallback2 callback ) : void | ||
callback | MamaLogFileCallback2 | /// The callback to invoke. /// |
return | void |
public static setLogFilePolicy ( MamaLogFilePolicy policy ) : void | ||
policy | MamaLogFilePolicy | |
return | void |
public static setLogLevel ( MamaLogLevel level ) : void | ||
level | MamaLogLevel | /// The logging level allowed. /// |
return | void |
public static setLogSize ( ulong size ) : void | ||
size | ulong | |
return | void |
public static setLogSizeCb ( MamaLogFileCallback callback ) : void | ||
callback | MamaLogFileCallback | /// The callback object to invoke whenever the log size is exceeded. /// |
return | void |
public static setNumLogFiles ( int numFiles ) : void | ||
numFiles | int | |
return | void |
public static setProperty ( string name, string value ) : void | ||
name | string | |
value | string | |
return | void |
public static start ( Wombat.MamaBridge bridgeImpl ) : void | ||
bridgeImpl | Wombat.MamaBridge | /// The bridge specific structure. /// |
return | void |
public static startBackground ( Wombat.MamaBridge bridgeImpl, MamaStartBackgroundCallback callback ) : void | ||
bridgeImpl | Wombat.MamaBridge | /// The bridge specific structure. /// |
callback | MamaStartBackgroundCallback | /// The callback for asynchronous status. /// |
return | void |
public static stop ( Wombat.MamaBridge bridgeImpl ) : void | ||
bridgeImpl | Wombat.MamaBridge | /// The bridge specific structure. /// |
return | void |