Management (Mgmt) Comm using JSON format. Concerned with full/well formed Mgmt/JSON msg frames and forwards to any listeners via channels. More...
Public Member Functions | |
JsonComm (IComm commToPtr) | |
Start a JSON communication using the connection passed in. More... | |
IMgmtMsgListenerChannels< String > | ChannelListenerJson () |
IMgmtMsgListenerChannels< MgmtMsg > | ChannelListenerMgmtMsg () |
void | close () |
void | Dispose () |
void | Send (String mgmtMsgToSend) |
Sends JSON mgmtMsgToSend using the connection that was passed in when object was created. | |
String | SendAndWaitForResponse (String mgmtMsg, int respTimeoutMs) |
Send JSON msg mgmtMsg and wait respTimeoutMs before returning response. If no response received after timeout, empty string "" returned. | |
Static Public Member Functions | |
static String | ReplaceJsonArrayValues (String json) |
Protected Member Functions | |
void | Dispose (boolean disposing) |
void | finalize () throws Throwable |
Management (Mgmt) Comm using JSON format. Concerned with full/well formed Mgmt/JSON msg frames and forwards to any listeners via channels.
Requires a communication connection for sending and listening for fully formed Mgmt messages.
This class also uses the communication connection to send and listen for JSON msgs.
Note that this class will read all data received from the communication connection as it is received in order to
listen and parse fully formed JSON messages.