Package org.eso.ias.monitor
Class IasMonitorConfig
java.lang.Object
org.eso.ias.monitor.IasMonitorConfig
Java pojo with the configuration of the IASMonitor tool
-
Field Summary
Modifier and TypeFieldDescriptionThe IDs of the clients to monitorThe IDs of the converters to monitorThe IDs of the supervisors that must NOT be monitored The Ids of the supervisors are read from the CDB and the monitor checks the HBs published by each of them unless their ID is in this setThe KAFKA Sink connectors to monitor These are monitored though the REST APIThe IDs of the plugins to monitorThe IDs of the sink client to monitor These are IAS clients not kafka sink connectorsThe threshold to invalidate the HBs -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
configToJsonString
(IasMonitorConfig config) Serialize the passed configuration into a JSON stringboolean
static IasMonitorConfig
Reads the configuration from the passed fileint
hashCode()
void
setClientIds
(Set<String> clientIds) void
setConverterIds
(Set<String> converterIds) void
setCoreToolsIds
(Set<String> coreToolsIds) void
setExcludedSupervisorIds
(Set<String> excludedSupervisorIds) void
setKafkaSinkConnectors
(Set<KafkaSinkConnectorConfig> kafkaSinkConnectors) void
setPluginIds
(Set<String> pluginIds) void
setSinkIds
(Set<String> sinkIds) void
setThreshold
(Long threshold) Serialize this configuration into a JSON stringstatic IasMonitorConfig
Build theIasMonitorConfig
from the passed JSON string
-
Field Details
-
threshold
The threshold to invalidate the HBs -
excludedSupervisorIds
The IDs of the supervisors that must NOT be monitored The Ids of the supervisors are read from the CDB and the monitor checks the HBs published by each of them unless their ID is in this set -
pluginIds
The IDs of the plugins to monitor -
converterIds
The IDs of the converters to monitor -
clientIds
The IDs of the clients to monitor -
sinkIds
The IDs of the sink client to monitor These are IAS clients not kafka sink connectors -
coreToolsIds
-
kafkaSinkConnectors
The KAFKA Sink connectors to monitor These are monitored though the REST API
-
-
Constructor Details
-
IasMonitorConfig
public IasMonitorConfig()Empty constructor
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getThreshold
-
setThreshold
-
getExcludedSupervisorIds
-
setExcludedSupervisorIds
-
getPluginIds
-
setPluginIds
-
getConverterIds
-
setConverterIds
-
getClientIds
-
setClientIds
-
getSinkIds
-
setSinkIds
-
getKafkaSinkConnectors
-
setKafkaSinkConnectors
-
getCoreToolsIds
-
setCoreToolsIds
-
toJsonString
Serialize this configuration into a JSON string- Throws:
Exception
-
valueOf
Build theIasMonitorConfig
from the passed JSON string- Parameters:
jsonString
- The JSON string with the configuration- Returns:
- The IasMonitorConfig object
- Throws:
Exception
- in case of error parsing the JSON string
-
configToJsonString
Serialize the passed configuration into a JSON string- Parameters:
config
- The configuration to serialize- Returns:
- the JSON string representing the passed object
- Throws:
Exception
- in case of error serializing into a JSON string
-
fromFile
Reads the configuration from the passed file- Parameters:
f
- The file with the configuration- Returns:
- The IasMonitorConfig object
- Throws:
Exception
- in case of error parsing the JSON string
-