Class SocketLoggerAnalyticsConnectorPlugin
java.lang.Object
io.vertigo.core.plugins.analytics.log.SocketLoggerAnalyticsConnectorPlugin
- All Implemented Interfaces:
AnalyticsConnectorPlugin,Activeable,CoreComponent,Plugin
public final class SocketLoggerAnalyticsConnectorPlugin
extends Object
implements AnalyticsConnectorPlugin, Activeable
Processes connector which use the log4j SocketAppender.
- Author:
- mlaroche, pchretien, npiedeloup
-
Constructor Summary
ConstructorsConstructorDescriptionSocketLoggerAnalyticsConnectorPlugin(ParamManager paramManager, Optional<String> hostNameOpt, Optional<Integer> portOpt, Optional<String> hostNameParamOpt, Optional<String> portParamOpt, Optional<String> nodeNameParamOpt, Optional<String> envNameParamOpt, Optional<Integer> bufferSizeOpt, Optional<Integer> batchSizeOpt, Optional<Boolean> jsonLayoutOpt, Optional<String> jsonLayoutParamOpt, Optional<Boolean> compressOutputStreamOpt, Optional<String> compressOutputStreamParamOpt) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(HealthCheck healthCheck) Adds a healthCheck to a connector which acts as a consumer.voidAdds a metric to a connector which acts as a consumer.voidAdds a span to a connector which acts as a consumer.voidDaemon to unstack processes to end themvoidstart()Initializes and activates the component.voidstop()Deactivates and prepares the component for destruction.
-
Constructor Details
-
SocketLoggerAnalyticsConnectorPlugin
@Inject public SocketLoggerAnalyticsConnectorPlugin(ParamManager paramManager, Optional<String> hostNameOpt, Optional<Integer> portOpt, Optional<String> hostNameParamOpt, Optional<String> portParamOpt, Optional<String> nodeNameParamOpt, Optional<String> envNameParamOpt, Optional<Integer> bufferSizeOpt, Optional<Integer> batchSizeOpt, Optional<Boolean> jsonLayoutOpt, Optional<String> jsonLayoutParamOpt, Optional<Boolean> compressOutputStreamOpt, Optional<String> compressOutputStreamParamOpt) Constructor.- Parameters:
hostNameOpt- hostName of the remote serverportOpt- port of the remote serverbufferSizeOpt- size of the offline buffer in MoappNameOpt- the node name
-
-
Method Details
-
add
Adds a span to a connector which acts as a consumer.- Specified by:
addin interfaceAnalyticsConnectorPlugin- Parameters:
span- the span
-
add
Adds a metric to a connector which acts as a consumer.- Specified by:
addin interfaceAnalyticsConnectorPlugin- Parameters:
metric- the metric
-
add
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:ActiveableInitializes and activates the component. This method is called after the component has been created and fully initialized, typically after dependency injection for components built via configuration. Implementations should perform any necessary setup or resource allocation to prepare the component for use.- Specified by:
startin interfaceActiveable
-
stop
public void stop()Description copied from interface:ActiveableDeactivates and prepares the component for destruction. This method is called before the component is stopped or destroyed. Implementations should release resources, terminate processes, or perform cleanup to ensure a graceful shutdown.- Specified by:
stopin interfaceActiveable
-
pollQueue
public void pollQueue()Daemon to unstack processes to end them
-