Package org.opends.server.loggers
Class AbstractLogger.LoggerStorage<P extends LogPublisher<C>,C extends LogPublisherCfg>
- java.lang.Object
-
- org.opends.server.loggers.AbstractLogger.LoggerStorage<P,C>
-
- Type Parameters:
P- The concreteLogPublishertypeC- The concreteLogPublisherCfgtype
- Enclosing class:
- AbstractLogger<P extends LogPublisher<C>,C extends LogPublisherCfg>
protected static class AbstractLogger.LoggerStorage<P extends LogPublisher<C>,C extends LogPublisherCfg> extends Object
The storage designed to store log publishers. It is helpful in abstracting away the methods used to manage the collection.
-
-
Constructor Summary
Constructors Constructor Description LoggerStorage()Defined as public to allow subclasses ofAbstractLoggerto instantiate it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLogPublisher(P publisher)Add a log publisher to the logger.Collection<P>getLogPublishers()Returns the logPublishers.voidremoveAllLogPublishers()Removes all existing log publishers from the logger.booleanremoveLogPublisher(P publisher)Remove a log publisher from the logger.
-
-
-
Constructor Detail
-
LoggerStorage
public LoggerStorage()
Defined as public to allow subclasses ofAbstractLoggerto instantiate it.
-
-
Method Detail
-
addLogPublisher
public void addLogPublisher(P publisher)
Add a log publisher to the logger.- Parameters:
publisher- The log publisher to add.
-
removeLogPublisher
public boolean removeLogPublisher(P publisher)
Remove a log publisher from the logger.- Parameters:
publisher- The log publisher to remove.- Returns:
- True if the log publisher is removed or false otherwise.
-
removeAllLogPublishers
public void removeAllLogPublishers()
Removes all existing log publishers from the logger.
-
getLogPublishers
public Collection<P> getLogPublishers()
Returns the logPublishers.- Returns:
- the collection of
LogPublishers
-
-