Package io.continual.iam.impl
Class BasicIamServiceWrapper<I extends Identity,G extends Group>
java.lang.Object
io.continual.services.SimpleService
io.continual.iam.impl.BasicIamServiceWrapper<I,G>
- Type Parameters:
I- an identity classG- a group class
- All Implemented Interfaces:
IamService<I,,G> IamServiceManager<I,,G> MetricsSupplier,Service
public class BasicIamServiceWrapper<I extends Identity,G extends Group>
extends SimpleService
implements IamServiceManager<I,G>, MetricsSupplier
Creates a service object to wrap an IAM manager implementation
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.continual.services.Service
Service.FailedToStart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the access databaseGet the access managerGet the identity databaseGet the identity managerGet the tag managerprotected voidprotected voidvoidpopulateMetrics(MetricsCatalog metrics) Methods inherited from class io.continual.services.SimpleService
isRunning, requestFinish, requestFinishAndWait, start
-
Constructor Details
-
BasicIamServiceWrapper
public BasicIamServiceWrapper(ServiceContainer sc, org.json.JSONObject config) throws IamSvcException, Builder.BuildFailure - Throws:
IamSvcExceptionBuilder.BuildFailure
-
-
Method Details
-
onStartRequested
- Overrides:
onStartRequestedin classSimpleService- Throws:
Service.FailedToStart
-
onStopRequested
protected void onStopRequested()- Overrides:
onStopRequestedin classSimpleService
-
populateMetrics
- Specified by:
populateMetricsin interfaceMetricsSupplier
-
getIdentityDb
Description copied from interface:IamServiceGet the identity database- Specified by:
getIdentityDbin interfaceIamService<I extends Identity,G extends Group> - Returns:
- the identity database
- Throws:
IamSvcException- if there's a problem in the IAM service
-
getAccessDb
Description copied from interface:IamServiceGet the access database- Specified by:
getAccessDbin interfaceIamService<I extends Identity,G extends Group> - Returns:
- the access database
- Throws:
IamSvcException- if there's a problem in the IAM service
-
getIdentityManager
Description copied from interface:IamServiceManagerGet the identity manager- Specified by:
getIdentityManagerin interfaceIamServiceManager<I extends Identity,G extends Group> - Returns:
- the identity manager
- Throws:
IamSvcException- if there's a problem in the IAM service
-
getAccessManager
Description copied from interface:IamServiceManagerGet the access manager- Specified by:
getAccessManagerin interfaceIamServiceManager<I extends Identity,G extends Group> - Returns:
- the access manager
- Throws:
IamSvcException- if there's a problem in the IAM service
-
getTagManager
Description copied from interface:IamServiceManagerGet the tag manager- Specified by:
getTagManagerin interfaceIamServiceManager<I extends Identity,G extends Group> - Returns:
- the tag manager
- Throws:
IamSvcException- if there's a problem in the IAM service
-