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
-
Constructor Summary
Constructors -
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
-
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 Details
-
add
Adds a span to a connector which acts as a consumer.- Specified by:
addin interfaceAnalyticsConnectorPlugin- Parameters:
process- 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
-