UMDS .NET API
6.14
|
class UMDSMessage is the main message class for UMDS clients. More...
Classes | |
class | AppReceiver |
class | AppSource |
class | xUMDS |
xUMDS extends the base UMDS class to implement our own logging function | |
Public Types | |
enum | COMPR_TYPE { NONE, LZ4 } |
Public Member Functions | |
virtual void | somebasiclogic () |
bool | isAuthenticated () |
Determine if the connection is authenticated. More... | |
bool | isConnected () |
Determine if the connection is connected. More... | |
virtual void | start () |
Start the server connection. This will create the thread used to manage the connection and therefore all connection related configuration must occur before start() is called. A random server will be chosen from the configured list. More... | |
void | setProperty (System.String name, System.String strvalue) |
Set an individual configuration setting. More... | |
void | setProperty (System.String[] s) |
Set configuration setting from array of strings. The array should contain alternating name value pairs: { "name1", "value", "name2", "value2", ... Where a name has no value, a null should be provided. More... | |
System.String | getProperty (System.String name) |
Get an individual configuration setting. More... | |
void | setCapabilities (int capabilities) |
void | addCapability (int capability) |
virtual void | send (System.String TopicName, byte[] appdata) |
Send an application data buffer on a given topic. More... | |
byte[] | compressBuffer (byte[] input) |
byte[] | decompressMsg (UMDSMessage input) |
void | close () |
Close the server connection. This is a graceful close operation. Sent messages will be flushed. If client-linger is set, flushing will timeout at client-linger ms. More... | |
virtual void | onEvent (UMDSMessage msg) |
Event Notification function. This function is called when non-data events occur, E.G. Disconnection reported by the server. Messages passed to this callback may used cached objects. Applications must copy the content if they require processing the data on other threads. This should be overridden by applications. Expected message Types: LOSS DISCONNECT LOGIN_DENIED SERVER_STOPPED SOURCE_CREATE RECEIVER_CREATE SOURCE_DELETE RECEIVER_DELETE CONNECT LOGIN_COMPLETE LOGOUT_COMPLETE. More... | |
void | onRequest (UMDSMessage msg) |
Connection Level Request function. This function is called when a connection level (MIM) Request is sent. This functionality is currently unsupported. More... | |
virtual void | onResponse (UMDSMessage msg) |
Connection Level Response function. This function is called when a connection level (MIM) response is received, Applications must copy the content if they require processing the data on other threads. / This functionality is currently unsupported. This should be overridden by applications. More... | |
UMDS | getUMDS () |
Get the registered UMDS base object. | |
Static Public Member Functions | |
static void | Main (System.String[] args) |
static void | nmain (System.String[] args) |
Public Attributes | |
const int | CAPABILITIES_REQUEST_RESPONSE = 0x1 |
COMPR_TYPE | compressionType = COMPR_TYPE.NONE |
Properties | |
virtual long | Error [get] |
Get the current error status of this connection. More... | |
virtual System.String | ErrorStr [get] |
Get the current error status string of this connection. More... | |
virtual bool | Authenticated [get] |
Determine if the connection is authenticated. More... | |
virtual UMDS | UMDS [get] |
Get the registered UMDS base object. More... | |
class UMDSMessage is the main message class for UMDS clients.
|
inherited |
Close the server connection. This is a graceful close operation. Sent messages will be flushed. If client-linger is set, flushing will timeout at client-linger ms.
the UMDS exception
UMDSException |
References com.latencybusters.umds.UMDSMessage.MSG_TYPE.DISCONNECT.
|
inherited |
Get an individual configuration setting.
the UMDS exception
UMDSException |
name | The name of the configuration parameter to be set |
|
inherited |
Determine if the connection is authenticated.
|
inherited |
Determine if the connection is connected.
|
virtualinherited |
Event Notification function. This function is called when non-data events occur, E.G. Disconnection reported by the server. Messages passed to this callback may used cached objects. Applications must copy the content if they require processing the data on other threads. This should be overridden by applications. Expected message Types: LOSS DISCONNECT LOGIN_DENIED SERVER_STOPPED SOURCE_CREATE RECEIVER_CREATE SOURCE_DELETE RECEIVER_DELETE CONNECT LOGIN_COMPLETE LOGOUT_COMPLETE.
msg | The message containing the event |
References com.latencybusters.umds.UMDSMessage.MSG_TYPE.CONNECT, com.latencybusters.umds.UMDSMessage.MSG_TYPE.DISCONNECT, com.latencybusters.umds.UMDSMessage.MSG_TYPE.LOGIN_COMPLETE, com.latencybusters.umds.UMDSMessage.MSG_TYPE.LOGIN_DENIED, com.latencybusters.umds.UMDSMessage.MSG_TYPE.LOGOUT_COMPLETE, com.latencybusters.umds.UMDSMessage.MSG_TYPE.LOSS, com.latencybusters.umds.UMDSMessage.MSG_TYPE.RECEIVER_CREATE, com.latencybusters.umds.UMDSMessage.MSG_TYPE.RECEIVER_DELETE, com.latencybusters.umds.UMDSMessage.seqnum, com.latencybusters.umds.UMDSMessage.MSG_TYPE.SERVER_STOPPED, com.latencybusters.umds.UMDSMessage.MSG_TYPE.SOURCE_CREATE, com.latencybusters.umds.UMDSMessage.MSG_TYPE.SOURCE_DELETE, com.latencybusters.umds.UMDSMessage.srcidx, com.latencybusters.umds.UMDSMessage.status, com.latencybusters.umds.UMDSMessage.status_str, and com.latencybusters.umds.UMDSMessage.type.
Referenced by com.latencybusters.umds.UMDSServerThread.UMDSServerThread().
|
inherited |
Connection Level Request function. This function is called when a connection level (MIM) Request is sent. This functionality is currently unsupported.
msg | The message containing the event |
Referenced by com.latencybusters.umds.UMDSServerThread.UMDSServerThread().
|
virtualinherited |
Connection Level Response function. This function is called when a connection level (MIM) response is received, Applications must copy the content if they require processing the data on other threads. / This functionality is currently unsupported. This should be overridden by applications.
msg | The message containing the event |
Referenced by com.latencybusters.umds.UMDSServerThread.UMDSServerThread().
|
virtualinherited |
Send an application data buffer on a given topic.
the UMDS exception
UMDSException |
TopicName | The topic name to be send on |
appdata | The application data payload |
References com.latencybusters.umds.UMDSMessage.appdata, com.latencybusters.umds.UMDSMessage.appmeta_data, com.latencybusters.umds.UMDSMessage.MSG_TYPE.DISCONNECT, com.latencybusters.umds.UMDSReceiverRecoveryInfo.getHighSequenceNumber(), com.latencybusters.umds.UMDSReceiverRecoveryInfo.getLowSequenceNumber(), com.latencybusters.umds.UMDSReceiverRecoveryInfo.getSrcSessionId(), com.latencybusters.umds.UMDSReceiverRecoveryInfo.getTopic(), com.latencybusters.umds.UMDSMessage.low_seqnum, com.latencybusters.umds.UMDSMessage.seqnum, com.latencybusters.umds.UMDSMessage.status, and com.latencybusters.umds.UMDSMessage.status_str.
|
inherited |
Set an individual configuration setting.
See Client Configuration Properties.
UMDSException | the UMDS exception |
name | The name of the configuration parameter to be set |
strvalue | The value of the configuration parameter as a string |
Referenced by com.latencybusters.umds.UMDSServerThread.UMDSServerThread().
|
inherited |
Set configuration setting from array of strings. The array should contain alternating name value pairs: { "name1", "value", "name2", "value2", ... Where a name has no value, a null should be provided.
When the server is not initialised
UMDSException |
s | The string array containing the name, value pairs |
References com.latencybusters.umds.UMDSMessageOptions.app_meta_data.
|
virtualinherited |
Start the server connection. This will create the thread used to manage the connection and therefore all connection related configuration must occur before start() is called. A random server will be chosen from the configured list.
UMDSException |
|
|
getinherited |
Determine if the connection is authenticated.
Referenced by com.latencybusters.umds.UMDSServerThread.UMDSServerThread().
|
getinherited |
Get the current error status of this connection.
|
getinherited |
Get the current error status string of this connection.
|
getinherited |
Get the registered UMDS base object.
Referenced by com.latencybusters.umds.UMDSReceiverBase.log(), com.latencybusters.umds.UMDSSourceBase.log(), com.latencybusters.umds.UMDSMessageFormatter.UMDSMessageFormatter(), and com.latencybusters.umds.UMDSServerThread.UMDSServerThread().