|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuditConfiguration
Method Summary | |
---|---|
java.lang.Object |
clone()
|
int |
compareTo(java.lang.Object obj)
Compares this object to another. |
void |
discardContext(java.lang.String context)
Specify that messages with the input context should be discarded and not recorded. |
void |
discardContexts(java.util.Collection contexts)
Specify that messages with the input contexts should be discarded and not recorded. |
boolean |
equals(java.lang.Object obj)
Returns true if the specified object is semantically equal to this instance. |
int |
getAuditLevel()
Get the level of detail of messages that are currently being recorded. |
java.util.Set |
getDiscardedContexts()
Obtain the set of contexts for messages that are to be discarded. |
boolean |
isContextDiscarded(java.lang.String context)
|
boolean |
isLevelDiscarded(int level)
|
void |
recordAllContexts()
Specify that messages in all contexts are to be recorded. |
void |
recordContext(java.lang.String context)
Specify that messages in the input context should be recorded rather than discarded. |
void |
recordContexts(java.util.Collection contexts)
Specify that messages in the input contexts should be recorded rather than discarded. |
void |
setAuditLevel(int newAuditLevel)
Method to set the level of messages that are recorded for this VM. |
java.lang.String |
toString()
String representation of logging configuration. |
Method Detail |
---|
boolean isContextDiscarded(java.lang.String context)
boolean isLevelDiscarded(int level)
java.util.Set getDiscardedContexts()
void discardContexts(java.util.Collection contexts)
contexts
- the set of contexts that are to be ignored for logging;
this method does nothing if the reference is null or emptyvoid discardContext(java.lang.String context)
context
- the context to add to the set; this method does nothing
if the reference is nullvoid recordAllContexts()
void recordContext(java.lang.String context)
context
- the context for messages that should be recorded; this
method does nothing if the reference is nullvoid recordContexts(java.util.Collection contexts)
contexts
- the set of contexts that are to be recorded;
this method does nothing if the reference is null or emptyint getAuditLevel()
void setAuditLevel(int newAuditLevel)
newMessageLevel
- the new level; must be either
AuditLevel.NONE
,
AuditLevel.FULL
java.lang.IllegalArgumentException
- if the level is out of range.int compareTo(java.lang.Object obj)
equals()
, meaning
that (compare(x, y)==0) == (x.equals(y))
.
compareTo
in interface java.lang.Comparable
obj
- the object that this instance is to be compared to.
java.lang.IllegalArgumentException
- if the specified object reference is null
java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this instance.boolean equals(java.lang.Object obj)
compareTo()
.
equals
in class java.lang.Object
obj
- the object that this instance is to be compared to.
java.lang.String toString()
toString
in class java.lang.Object
java.lang.Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |