Class PrometheusEndpointComponent
- java.lang.Object
-
- com.adaptris.core.management.MgmtComponentImpl
-
- com.adaptris.rest.AbstractRestfulEndpoint
-
- com.adaptris.rest.metrics.prometheus.PrometheusEndpointComponent
-
- All Implemented Interfaces:
AdaptrisMessageListener,ManagementComponent
public class PrometheusEndpointComponent extends com.adaptris.rest.AbstractRestfulEndpoint
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.management.MgmtComponentImpl
log
-
-
Constructor Summary
Constructors Constructor Description PrometheusEndpointComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexceptionLogging(boolean logging, java.lang.String msg, java.lang.Exception e)protected java.lang.StringgetAcceptedFilter()protected java.lang.StringgetDefaultUrlPath()voidinit(java.util.Properties config)voidonAdaptrisMessage(AdaptrisMessage message, java.util.function.Consumer<AdaptrisMessage> success, java.util.function.Consumer<AdaptrisMessage> failure)voidstop()-
Methods inherited from class com.adaptris.rest.AbstractRestfulEndpoint
configuredUrlPath, destroy, doErrorResponse, doResponse, doResponse, friendlyName, getConfiguredUrlPath, getConsumer, setConfiguredUrlPath, setConsumer, start
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.AdaptrisMessageListener
onAdaptrisMessage, onAdaptrisMessage
-
Methods inherited from interface com.adaptris.core.management.ManagementComponent
setClassLoader
-
-
-
-
Method Detail
-
init
public void init(java.util.Properties config) throws java.lang.Exception- Specified by:
initin interfaceManagementComponent- Overrides:
initin classcom.adaptris.rest.AbstractRestfulEndpoint- Throws:
java.lang.Exception
-
stop
public void stop() throws java.lang.Exception- Specified by:
stopin interfaceManagementComponent- Overrides:
stopin classcom.adaptris.rest.AbstractRestfulEndpoint- Throws:
java.lang.Exception
-
onAdaptrisMessage
public void onAdaptrisMessage(AdaptrisMessage message, java.util.function.Consumer<AdaptrisMessage> success, java.util.function.Consumer<AdaptrisMessage> failure)
-
exceptionLogging
protected void exceptionLogging(boolean logging, java.lang.String msg, java.lang.Exception e)
-
getDefaultUrlPath
protected java.lang.String getDefaultUrlPath()
- Specified by:
getDefaultUrlPathin classcom.adaptris.rest.AbstractRestfulEndpoint
-
getAcceptedFilter
protected java.lang.String getAcceptedFilter()
- Specified by:
getAcceptedFilterin classcom.adaptris.rest.AbstractRestfulEndpoint
-
-