public final class SocketLoggerAnalyticsConnectorPlugin extends Object implements AnalyticsConnectorPlugin
| Constructor and Description |
|---|
SocketLoggerAnalyticsConnectorPlugin(Optional<String> appNameOpt,
Optional<String> hostNameOpt,
Optional<Integer> portOpt)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(AProcess process)
Adds a process to a connector which acts as a consumer.
|
void |
add(HealthCheck healthCheck)
Adds a healthCheck to a connector which acts as a consumer.
|
void |
add(Metric metric)
Adds a metric to a connector which acts as a consumer.
|
void |
pollQueue()
Daemon to unstack processes to end them
|
@Inject
public SocketLoggerAnalyticsConnectorPlugin(@Named(value="appName")
Optional<String> appNameOpt,
@Named(value="hostName")
Optional<String> hostNameOpt,
@Named(value="port")
Optional<Integer> portOpt)
appNameOpt - the app namehostNameOpt - hostName of the remote serverportOpt - port of the remote serverpublic void add(AProcess process)
add in interface AnalyticsConnectorPluginprocess - the processpublic void add(Metric metric)
add in interface AnalyticsConnectorPluginmetric - the metricpublic void add(HealthCheck healthCheck)
add in interface AnalyticsConnectorPluginhealthCheck - the healthCheckpublic void pollQueue()
Copyright © 2018. All Rights Reserved.