Package com.lightbend.cinnamon.backend
Interface Backends
-
public interface Backends
Backends
abstraction for all underlying backends.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EventFactory
eventsFor(Identity identity)
Create anEventFactory
for a single identity for all loaded event backends.EventFactory
eventsFor(java.util.List<Identity> identities)
Create anEventFactory
for multiple identities for all loaded event backends.java.util.List<Backend>
getBackends()
Get a list of all loaded backends.CinnamonMeta
getCinnamonMeta()
com.typesafe.config.Config
getConfig()
LoggingProvider
getLoggingProvider()
MetricFactory
metricsFor(Identity identity)
Create aMetricFactory
for a single identity for all loaded metric backends.MetricFactory
metricsFor(java.util.List<Identity> identities)
Create aMetricFactory
for multiple identities for all loaded metric backends.
-
-
-
Method Detail
-
getBackends
java.util.List<Backend> getBackends()
Get a list of all loaded backends.- Returns:
- all loaded backends
-
getConfig
com.typesafe.config.Config getConfig()
- Returns:
- the Config used by the backends.
-
getCinnamonMeta
CinnamonMeta getCinnamonMeta()
- Returns:
- the CinnamonMeta used by the backends.
-
getLoggingProvider
LoggingProvider getLoggingProvider()
- Returns:
- the LoggingProvider used by the backends.
-
metricsFor
MetricFactory metricsFor(Identity identity)
Create aMetricFactory
for a single identity for all loaded metric backends.- Parameters:
identity
- identity of instrumented entity- Returns:
- combined MetricFactory for all metric backends
-
metricsFor
MetricFactory metricsFor(java.util.List<Identity> identities)
Create aMetricFactory
for multiple identities for all loaded metric backends.- Parameters:
identities
- multiple identities of instrumented entity- Returns:
- combined MetricFactory for all metric backends
-
eventsFor
EventFactory eventsFor(Identity identity)
Create anEventFactory
for a single identity for all loaded event backends.- Parameters:
identity
- identity of instrumented entity- Returns:
- combined EventFactory for all event backends
-
eventsFor
EventFactory eventsFor(java.util.List<Identity> identities)
Create anEventFactory
for multiple identities for all loaded event backends.- Parameters:
identities
- multiple identities of instrumented entity- Returns:
- combined EventFactory for all event backends
-
-