public class Connector extends Object implements Runnable
It operates as follows:
The connector is entirely java properties driven - these can be set as parameters to the JVM or passed in as a file.
The Connector starts a thread which drives a DataFlowHandler. The handler connects to NATS and invokes various interfaces on a supplied plugin.
The plugin has a few APIs that allow it to publish messages, flush the NATS connection, and subscribe to various subjects.
A plugin can both subscribe to receive data and export it to another system, feed data into NATS, or both.
The plugin's responsibilities include: a) Ensuring performance out of nats. This may include some buffering if the destination of the data consumer slower than NATS produces it. b) Translation of external origin/destination and the subject namespace.
Modifier and Type | Field and Description |
---|---|
static String |
PLUGIN_CLASS
Name of the property to set the plugin class name.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
run() |
void |
shutdown()
Shuts down a running Connector.
|
public static final String PLUGIN_CLASS
Copyright © 2015–2016 Apcera, Inc.. All rights reserved.