|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.kernel.log.impl.MechanismManager
public class MechanismManager
| Constructor Summary | |
|---|---|
MechanismManager(Log aLogger)
|
|
| Method Summary | |
|---|---|
void |
addMechanism(AbstractLoggingMechanism newMech)
Adds a Logging Mechanism to the list of mechanisms that this log writes to. |
void |
addMechanism(String mechanismName)
Adds a Logging Mechanism to the list of mechanisms.. |
void |
addMechanisms(String[] mechs)
Adds a Logging Mechanism to the list of mechanisms.. |
AbstractLoggingMechanism[] |
getMechanisms()
Returns a list with the currently active mechanisms. |
boolean |
isMechanismActive(String mechName)
Checks if a mechanims given by its name is active. |
boolean |
isMechanismConfigured(String mechName)
Checks if a mechanism is configured for this logger |
void |
register(MechanismManagerListener listener)
Register a listener |
void |
removeAllMechanisms()
Removes all Logging Mechanisms from the list of mechanisms that this log writes to. |
void |
removeMechanism(String mechName)
Removes an active Logging Mechanism from the list of mechanisms that this log writes to. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MechanismManager(Log aLogger)
| Method Detail |
|---|
public AbstractLoggingMechanism[] getMechanisms()
public boolean isMechanismActive(String mechName)
public boolean isMechanismConfigured(String mechName)
mechName - a mechanism name
public void addMechanisms(String[] mechs)
name - The name of the Mechanism.public void addMechanism(String mechanismName)
name - The name of the Mechanism.public void addMechanism(AbstractLoggingMechanism newMech)
newMech - The name of the Logging Mechanism.public void removeMechanism(String mechName)
mechName - The name of the Logging Mechanism to remove.public void removeAllMechanisms()
public void register(MechanismManagerListener listener)
listener - public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||