Interface JolokiaService<T extends JolokiaService<?>>
- All Superinterfaces:
Comparable<T>
- All Known Subinterfaces:
JolokiaService.Init,NotificationBackend,RequestHandler,RequestInterceptor,Serializer,ServerDetector
- All Known Implementing Classes:
AbstractJolokiaService,AbstractRequestHandler,DebugStore,VersionRequestHandler
Interface describing a Jolokia Service. Jolokia Services are used within Jolokia
for various tasks. Each service has a specific type describing its API. Also, it has an
order which is used when multiple services exist. Services can be created in many ways, either
statically (and then registered at the
JolokiaServiceManager) or dynamically via a
JolokiaServiceLookup (which is especially suited for looking up OSGi services).- Since:
- 28.03.13
- Author:
- roland
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Lifecycle method called when agent goes down.intgetOrder()Order of the service.getType()The service type which is used to distinguish the various services.voidinit(JolokiaContext pJolokiaContext) Lifecycle method called when the services are initializedMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getOrder
int getOrder()Order of the service. The higher the number, the later in the list of services this service appears. Default order is 100.- Returns:
- the order of this service
-
getType
The service type which is used to distinguish the various services. The service type is an extension of this base interface and add service specific methods to it- Returns:
- service type
-
destroy
Lifecycle method called when agent goes down.- Throws:
Exception
-
init
Lifecycle method called when the services are initialized- Parameters:
pJolokiaContext- the jolokia context used
-