Class MicroserviceRepositoryBuilder
java.lang.Object
com.cumulocity.microservice.subscription.repository.MicroserviceRepositoryBuilder
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionapplicationKey(String applicationKey) applicationName(String applicationName) autoregistation(boolean defaultAutoregistration) build()creates MicroserviceRepository implementation according to some env variables and passed user: - when C8Y.microservice.isolation is defined, then microservice runs on new SDK in kubernetes (Current) - when C8Y.microservice.isolation not defined, then microservice should support old SDK (Legacy) - when C8Y.custom.autoregistration is set to "true", and user passed to builder is 'current servicebootstrap' (eg. servicebootstrap_lwm2m) then microservice should support helm-based deployments (Autoregistration) - default value is Legacyconnector(CredentialsSwitchingPlatform connector) environment(org.springframework.core.env.Environment environment)
-
Field Details
-
MICROSERVICE_ISOLATION_ENV_NAME
- See Also:
-
CUSTOM_AUTOREGISTRATION_ENV_NAME
- See Also:
-
GLOBAL_SERVICEBOOTSTRAP_USER
- See Also:
-
APP_SERVICEBOOTSTRAP_PREFIX
- See Also:
-
-
Method Details
-
build
creates MicroserviceRepository implementation according to some env variables and passed user: - when C8Y.microservice.isolation is defined, then microservice runs on new SDK in kubernetes (Current) - when C8Y.microservice.isolation not defined, then microservice should support old SDK (Legacy) - when C8Y.custom.autoregistration is set to "true", and user passed to builder is 'current servicebootstrap' (eg. servicebootstrap_lwm2m) then microservice should support helm-based deployments (Autoregistration) - default value is Legacy- Returns:
- microservice repository instance
-
microserviceRepositoryBuilder
-
baseUrl
-
tenant
-
username
-
applicationName
-
applicationKey
-
password
-
connector
-
environment
public MicroserviceRepositoryBuilder environment(org.springframework.core.env.Environment environment) -
autoregistation
-