Class EntitlementInitialization
java.lang.Object
org.elasticsearch.entitlement.initialization.EntitlementInitialization
Called by the agent during
agentmain to configure the entitlement system,
instantiate and configure an EntitlementChecker,
make it available to the bootstrap library via checker(),
and then install the Instrumenter
to begin injecting our instrumentation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EntitlementCheckerchecker()static RuntimeExceptiongetError()Return any exception that occurred during initializationstatic voidinitialize(Instrumentation inst) Initializes the Entitlement system: Initialize dynamic instrumentation viaDynamicInstrumentation.initialize(java.lang.instrument.Instrumentation, java.lang.Class<?>, boolean)Creates thePolicyManagerCreates theElasticsearchEntitlementCheckerinstance referenced by the instrumented methods
-
Constructor Details
-
EntitlementInitialization
public EntitlementInitialization()
-
-
Method Details
-
checker
-
getError
Return any exception that occurred during initialization -
initialize
Initializes the Entitlement system:-
Initialize dynamic instrumentation via
DynamicInstrumentation.initialize(java.lang.instrument.Instrumentation, java.lang.Class<?>, boolean) -
Creates the
PolicyManager -
Creates the
ElasticsearchEntitlementCheckerinstance referenced by the instrumented methods
NOTE: this method is referenced by the agent reflectively
- Parameters:
inst- the JVM instrumentation class instance
-
Initialize dynamic instrumentation via
-