Class SocketLoggerJsonAnalyticsConnectorPlugin
- java.lang.Object
-
- io.vertigo.core.plugins.analytics.log.SocketLoggerJsonAnalyticsConnectorPlugin
-
- All Implemented Interfaces:
AnalyticsConnectorPlugin
,Activeable
,CoreComponent
,Plugin
public final class SocketLoggerJsonAnalyticsConnectorPlugin extends Object implements AnalyticsConnectorPlugin, Activeable
Processes connector which use the log4j SocketAppender.- Author:
- mlaroche, pchretien, npiedeloup
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
add(AProcess process)
Adds a process to a connector which acts as a consumer.void
pollQueue()
Daemon to unstack processes to end themvoid
start()
Called after the component has been created and filled by injection (for the components built by configuration).void
stop()
Called before the component is stopped.
-
-
-
Constructor Detail
-
SocketLoggerJsonAnalyticsConnectorPlugin
@Inject public SocketLoggerJsonAnalyticsConnectorPlugin(ParamManager paramManager, Optional<String> appNameOpt, Optional<String> hostNameOpt, Optional<Integer> portOpt, Optional<String> trustStoreUrlOpt, Optional<String> trustStorePasswordOpt)
Constructor.- Parameters:
appNameOpt
- the node namehostNameOpt
- hostName of the remote serverportOpt
- port of the remote server
-
-
Method Detail
-
add
public void add(AProcess process)
Adds a process to a connector which acts as a consumer.- Specified by:
add
in interfaceAnalyticsConnectorPlugin
- Parameters:
process
- the process
-
add
public void add(Metric metric)
Adds a metric to a connector which acts as a consumer.- Specified by:
add
in interfaceAnalyticsConnectorPlugin
- Parameters:
metric
- the metric
-
add
public void add(HealthCheck healthCheck)
Adds a healthCheck to a connector which acts as a consumer.- Specified by:
add
in interfaceAnalyticsConnectorPlugin
- Parameters:
healthCheck
- the healthCheck
-
start
public void start()
Description copied from interface:Activeable
Called after the component has been created and filled by injection (for the components built by configuration).- Specified by:
start
in interfaceActiveable
-
stop
public void stop()
Description copied from interface:Activeable
Called before the component is stopped.- Specified by:
stop
in interfaceActiveable
-
pollQueue
public void pollQueue()
Daemon to unstack processes to end them
-
-