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. SentriesRegistry
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SentriesRegistry()

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. def addListener(listener: SentriesRegistryListener): Unit

    Adds a nl.grons.sentries.support.SentriesRegistryListener to a collection of listeners that will be notified on sentry creation.

    Adds a nl.grons.sentries.support.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

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. 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
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  12. 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

  13. def hashCode(): Int

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

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

    Definition Classes
    AnyRef
  16. def newSentriesMap(): Map[MetricName, NamedSentry]

    Returns a new concurrent map implementation.

    Returns a new concurrent map implementation. Subclass this to do weird things with your own nl.grons.sentries.support.SentriesRegistry implementation.

    returns

    a new scala.collection.concurrent.Map

    Attributes
    protected
  17. final def notify(): Unit

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

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

    Removes a nl.grons.sentries.support.SentriesRegistryListener from this registry's collection of listeners.

    Removes a nl.grons.sentries.support.SentriesRegistryListener from this registry's collection of listeners.

    listener

    the listener that will be removed

  20. 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

  21. 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

  22. 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.

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

    Definition Classes
    AnyRef
  24. def toString(): String

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. 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

Ungrouped