ch.qos.logback.core.sift
Class DefaultDiscriminator<E>

java.lang.Object
  extended by ch.qos.logback.core.sift.DefaultDiscriminator<E>
All Implemented Interfaces:
Discriminator<E>, LifeCycle

public class DefaultDiscriminator<E>
extends Object
implements Discriminator<E>

Author:
Ceki Gücü

Field Summary
static String DEFAULT
           
 
Constructor Summary
DefaultDiscriminator()
           
 
Method Summary
 String getDiscriminatingValue(E e)
          Given event 'e' return a discriminating value.
 String getKey()
          The key or variable name under which the discriminating value should be exported into the host environment.
 boolean isStarted()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final String DEFAULT
See Also:
Constant Field Values
Constructor Detail

DefaultDiscriminator

public DefaultDiscriminator()
Method Detail

getDiscriminatingValue

public String getDiscriminatingValue(E e)
Description copied from interface: Discriminator
Given event 'e' return a discriminating value.

Specified by:
getDiscriminatingValue in interface Discriminator<E>
Returns:

getKey

public String getKey()
Description copied from interface: Discriminator
The key or variable name under which the discriminating value should be exported into the host environment.

Specified by:
getKey in interface Discriminator<E>
Returns:

start

public void start()
Specified by:
start in interface LifeCycle

stop

public void stop()
Specified by:
stop in interface LifeCycle

isStarted

public boolean isStarted()
Specified by:
isStarted in interface LifeCycle


Copyright © 2005-2013 QOS.ch. All Rights Reserved.