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 voidadd(HealthCheck healthCheck)Adds a healthCheck to a connector which acts as a consumer.voidadd(Metric metric)Adds a metric to a connector which acts as a consumer.voidadd(AProcess process)Adds a process to a connector which acts as a consumer.voidpollQueue()Daemon to unstack processes to end themvoidstart()Called after the component has been created and filled by injection (for the components built by configuration).voidstop()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:
addin interfaceAnalyticsConnectorPlugin- Parameters:
process- the process
-
add
public void add(Metric metric)
Adds a metric to a connector which acts as a consumer.- Specified by:
addin interfaceAnalyticsConnectorPlugin- Parameters:
metric- the metric
-
add
public void add(HealthCheck healthCheck)
Adds a healthCheck to a connector which acts as a consumer.- Specified by:
addin interfaceAnalyticsConnectorPlugin- Parameters:
healthCheck- the healthCheck
-
start
public void start()
Description copied from interface:ActiveableCalled after the component has been created and filled by injection (for the components built by configuration).- Specified by:
startin interfaceActiveable
-
stop
public void stop()
Description copied from interface:ActiveableCalled before the component is stopped.- Specified by:
stopin interfaceActiveable
-
pollQueue
public void pollQueue()
Daemon to unstack processes to end them
-
-