nl.grons.sentries.support

SentriesRegistry

class SentriesRegistry extends AnyRef

A registry of sentry instances.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SentriesRegistry
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SentriesRegistry()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addListener(listener: SentriesRegistryListener): Unit

    Adds a SentriesRegistryListener to a collection of listeners that will be notified on sentry creation.

    Adds a SentriesRegistryListener to a collection of listeners that will be notified on sentry creation. Listeners will be notified in the order in which they are added.

    N.B.: The listener will be notified of all existing sentries when it first registers.

    listener

    the listener that will be notified

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def createName(sentryOwner: Class[_], name: String, sentryType: String): MetricName

    Override to customize how com.yammer.metrics.core.MetricNames are created.

    Override to customize how com.yammer.metrics.core.MetricNames are created.

    sentryOwner

    the class which owns the sentry

    name

    the name of the sentry

    sentryType

    the sentry's sentryType

    returns

    the sentry's full name

    Attributes
    protected
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  14. def getOrAdd[S <: NamedSentry](sentry: S, sentryOwner: Class[_], name: String, sentryType: String): S

    Gets any existing sentry with the given name or, if none exists, adds the given sentry.

    Gets any existing sentry with the given name or, if none exists, adds the given sentry.

    S

    type of the sentry

    sentry

    the sentry to add

    sentryOwner

    the class that owns the sentry

    name

    name of the sentry

    sentryType

    sentryType type of sentry

    returns

    either the existing sentry or sentry

  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def newSentriesMap(): CMap[MetricName, NamedSentry]

    Returns a new scala.collection.mutable.ConcurrentMap implementation.

    Returns a new scala.collection.mutable.ConcurrentMap implementation. Subclass this to do weird things with your own SentriesRegistry implementation.

    returns

    a new scala.collection.mutable.ConcurrentMap

    Attributes
    protected
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def removeListener(listener: SentriesRegistryListener): Unit

    Removes a SentriesRegistryListener from this registry's collection of listeners.

    Removes a SentriesRegistryListener from this registry's collection of listeners.

    listener

    the listener that will be removed

  22. def removeSentry(name: MetricName): Unit

    Removes the sentry with the given name.

    Removes the sentry with the given name.

    name

    the name of the sentry

  23. def removeSentry(sentryOwner: Class[_], name: String, sentryType: String): Unit

    Removes the sentry for the given class with the given name (and sentryType).

    Removes the sentry for the given class with the given name (and sentryType).

    sentryOwner

    the class that owns the sentry

    name

    the name of the sentry

    sentryType

    the sentryType of the sentry

  24. def resetAllSentries(): Unit

    Reset all known sentries to their initial state by calling [Sentry#reset] on each sentry.

    Reset all known sentries to their initial state by calling [Sentry#reset] on each sentry.

    See README.md section 'Sentries in tests' for alternatives during testing.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def clear(): Unit

    Remove all sentries from the registry.

    Remove all sentries from the registry.

    See README.md section 'Sentries in tests' for alternatives during testing.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.5) will be removed in sentries 0.6

Inherited from AnyRef

Inherited from Any