Package org.opennms.plugins.cloud.config
Class ConfigurationManager
- java.lang.Object
-
- org.opennms.plugins.cloud.config.ConfigurationManager
-
public class ConfigurationManager extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigurationManager.ConfigStatusSee also ....
-
Constructor Summary
Constructors Constructor Description ConfigurationManager(ConfigStore config, GrpcConnectionConfig pasConfigTls, GrpcConnectionConfig pasConfigMtls, RegistrationManager serviceManager, org.opennms.integration.api.v1.runtime.RuntimeInfo runtimeInfo, java.util.List<GrpcService> grpcServices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationManager.ConfigStatusconfigure()See also: ... These are the steps // 9.) getServices // 10.) getAccessToken (cert, system-uuid, service) return token synchronized: its ok to call the method multiple times but we don't want it to be called at the same time (just in case).java.time.InstantgetCertExpiration()ConfigurationManager.ConfigStatusgetStatus()java.time.InstantgetTokenExpiration()voidinitConfiguration(java.lang.String key)See also: ... This is step 5.) authenticate(String opennmsKey, environment-uuid, system-uuid) return cert, grpc endpointvoidinitGrpcServices(GrpcConnectionConfig config)voidrenewCerts()
-
-
-
Constructor Detail
-
ConfigurationManager
public ConfigurationManager(ConfigStore config, GrpcConnectionConfig pasConfigTls, GrpcConnectionConfig pasConfigMtls, RegistrationManager serviceManager, org.opennms.integration.api.v1.runtime.RuntimeInfo runtimeInfo, java.util.List<GrpcService> grpcServices)
-
-
Method Detail
-
initConfiguration
public void initConfiguration(java.lang.String key)
See also: ... This is step 5.) authenticate(String opennmsKey, environment-uuid, system-uuid) return cert, grpc endpoint
-
renewCerts
public void renewCerts() throws java.security.cert.CertificateException- Throws:
java.security.cert.CertificateException
-
configure
public ConfigurationManager.ConfigStatus configure()
See also: ... These are the steps // 9.) getServices // 10.) getAccessToken (cert, system-uuid, service) return token synchronized: its ok to call the method multiple times but we don't want it to be called at the same time (just in case). It is accessed from multiple Threads, e.g. from Housekeeper
-
initGrpcServices
public void initGrpcServices(GrpcConnectionConfig config)
-
getStatus
public ConfigurationManager.ConfigStatus getStatus()
-
getTokenExpiration
public java.time.Instant getTokenExpiration()
-
getCertExpiration
public java.time.Instant getCertExpiration()
-
-