02.10.2015 Views

Tungsten Replicator 2.2 Manual

Tungsten Replicator 2.2 Manual - VMware

Tungsten Replicator 2.2 Manual - VMware

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Replication Filters<br />

}<br />

8.4.15.2. Network Filter Protocol<br />

The network filter protocol has been designed to be both lightweight and binary data compatible, as it is designed to work with data that<br />

may be heavily encoded, binary, or compressed in nature.<br />

The protocol operates through a combined JSON and optional binary payload structure that communicates the information. The JSON<br />

defines the communication type and metadata, while the binary payload contains the raw or translated information.<br />

The filter communicates with the network server using the following packet types:<br />

• prepare<br />

The prepare message is called when the filter goes online, and is designed to initalize the connection to the network server and confirm<br />

the supported filter types and operation. The format of the connection message is:<br />

{<br />

}<br />

"payload" : -1,<br />

"type" : "prepare",<br />

"service" : "firstrep",<br />

"protocol" : "v0_9"<br />

Where:<br />

• protocol<br />

The protocol version.<br />

• service<br />

The name of the replicator service that called the filter.<br />

• type [316]<br />

The message type.<br />

• payload<br />

The size of the payload; a value of -1 indicates that there is no payload.<br />

The format of the response should be a JSON object and payload with the list of supported filter types in the payload section. The<br />

payload immediately follows the JSON, with the size of the list defined within the payload field of the returned JSON object:<br />

{<br />

"payload" : 22,<br />

"type" : "acknowledged",<br />

"protocol" : "v0_9",<br />

"service" : "firstrep",<br />

"return" : 0<br />

}Perl_BLOB_to_String_v1<br />

Where:<br />

• protocol<br />

The protocol version.<br />

• service<br />

The name of the replicator service that called the filter.<br />

• type [316]<br />

The message type; when acknowledging the original prepare request it should be acknowledge.<br />

• return<br />

The return value. A value of 0 (zero) indicates no faults. Any true value indicates there was an issue.<br />

• payload<br />

The length of the appended payload information in bytes. This is used by the filter to identify how much additional data to read after<br />

the JSON object has been read.<br />

255

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!