|
qflib 0.98.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--de.qfs.lib.logrmi.RemoteLogLevelCallbackImplBase | +--de.qfs.lib.logrmi.RemoteLogLevelAdapter
Adapter that connects a RemoteLogLevelListener to an application.
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
RemoteLogLevelAdapter()
Create a new RemoteLogLevelAdapter. |
|
RemoteLogLevelAdapter(RemoteLogLevelListener listener)
Create a new RemoteLogLevelAdapter. |
Method Summary | |
void |
classAdded(LogLevelEvent event)
Notify the listener that a Logger for a formerly unknown class has requested its log level, adding the class to the log level tree. |
void |
disconnect()
End the connection with the RemoteLogLevelListener. |
int |
getFlushBufferSize()
Get the size of the flush buffer of the callback's application. |
int |
getFlushTriggerLevel()
Get the level that will trigger a flush of the messages saved in the flush buffer of the callback's application. |
java.lang.Object[] |
getLogLevels()
Get the current log levels from the callback. |
int |
getOutputLevel()
Get the current output log level from the callback's application. |
int |
getPostFlushSize()
Get the number of messages to pass unfiltered through the pre-queue stage after a flush happened in the callback's application. |
int |
getPreQueueLevel()
Return the current pre-queue level from the callback's application. |
int |
getQueueSize()
Get the size of log queue of the callback's application. |
boolean |
isDropOnOverflow()
Check whether the callback's application is dropping entries when its log queue overflows. |
boolean |
isQueueing()
Check whether the callback's application is using a log queue. |
void |
levelChanged(LogLevelEvent event)
Notify the listener that a log level has been changed. |
void |
levelRemoved(LogLevelEvent event)
Notify the listener that a log level has been unset. |
void |
removeLogLevel(java.lang.String name)
Callback method for a LogLevelListener to remove the log level for a class or package. |
void |
setDropOnOverflow(boolean drop)
Set whether the callback's application should drop entries when its log queue overflows. |
void |
setFlushBufferSize(int size)
Set the size of the flush buffer of the callback's application. |
void |
setFlushTriggerLevel(int level)
Set the level that will trigger a flush of the messages saved in the flush buffer of the callback's application. |
void |
setLogLevel(java.lang.String name,
int level)
Callback method for a LogLevelListener to change the log level for a class or package. |
void |
setLogLevelCallback(LogLevelCallback callback)
Sets the LogLevelCallback for the LogLevelListener. |
void |
setOutputLevel(int level)
Set the output log level for the callback's application. |
void |
setPostFlushSize(int size)
Set the number of messages to pass unfiltered through the pre-queue stage after a flush happened in the callback's application. |
void |
setPreQueueLevel(int level)
Set the pre-queue level for the callback's application. |
void |
setQueueing(boolean queue)
Set whether the callback's application should use a log queue. |
void |
setQueueSize(int size)
Set the size of log queue of the callback's application. |
void |
setRemoteListener(RemoteLogLevelListener listener)
Set the listener to forward LogLevelEvents to. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RemoteLogLevelAdapter() throws java.rmi.RemoteException
java.rmi.RemoteException
- public RemoteLogLevelAdapter(RemoteLogLevelListener listener) throws java.rmi.RemoteException
listener
- The listener to forward LogLevelEvents to.java.rmi.RemoteException
- Method Detail |
public void setRemoteListener(RemoteLogLevelListener listener)
listener
- The listener to forward LogLevelEvents to.public java.lang.Object[] getLogLevels()
getLogLevels
in class RemoteLogLevelCallbackImplBase
public void setLogLevel(java.lang.String name, int level)
setLogLevel
in class RemoteLogLevelCallbackImplBase
source
- The listener that causes the change. It will not be
notified to avoid recursion.name
- The name of the affected class or package.level
- The new log level.public void removeLogLevel(java.lang.String name)
removeLogLevel
in class RemoteLogLevelCallbackImplBase
source
- The listener that causes the change. It will not be
notified to avoid recursion.name
- The name of the affected class or package.public int getOutputLevel()
getOutputLevel
in class RemoteLogLevelCallbackImplBase
public void setOutputLevel(int level)
setOutputLevel
in class RemoteLogLevelCallbackImplBase
level
- Output log level to set.public int getPreQueueLevel()
getPreQueueLevel
in class RemoteLogLevelCallbackImplBase
public void setPreQueueLevel(int level)
setPreQueueLevel
in class RemoteLogLevelCallbackImplBase
level
- The pre-queue level to set.public boolean isQueueing()
isQueueing
in class RemoteLogLevelCallbackImplBase
Log.isQueueing()
public void setQueueing(boolean queue)
setQueueing
in class RemoteLogLevelCallbackImplBase
queue
- Whether to queue log entries.Log.setQueueing(boolean)
public int getQueueSize()
getQueueSize
in class RemoteLogLevelCallbackImplBase
Log.getQueueSize()
public void setQueueSize(int size)
setQueueSize
in class RemoteLogLevelCallbackImplBase
size
- The size of the log queue.Log.setQueueSize(int)
public boolean isDropOnOverflow()
isDropOnOverflow
in class RemoteLogLevelCallbackImplBase
Log.isDropOnOverflow()
public void setDropOnOverflow(boolean drop)
setDropOnOverflow
in class RemoteLogLevelCallbackImplBase
drop
- Whether to drop entries on overflow.Log.setDropOnOverflow(boolean)
public int getFlushBufferSize()
getFlushBufferSize
in class RemoteLogLevelCallbackImplBase
public void setFlushBufferSize(int size)
setFlushBufferSize
in class RemoteLogLevelCallbackImplBase
size
- The size of the flush buffer.public int getFlushTriggerLevel()
getFlushTriggerLevel
in class RemoteLogLevelCallbackImplBase
public void setFlushTriggerLevel(int level)
setFlushTriggerLevel
in class RemoteLogLevelCallbackImplBase
level
- The trigger level to set.public int getPostFlushSize()
getPostFlushSize
in class RemoteLogLevelCallbackImplBase
public void setPostFlushSize(int size)
setPostFlushSize
in class RemoteLogLevelCallbackImplBase
size
- The number of messages to pass.public void disconnect() throws java.rmi.RemoteException
disconnect
in class RemoteLogLevelCallbackImplBase
java.rmi.RemoteException
- If something RMI specific goes wrong.public void classAdded(LogLevelEvent event)
classAdded
in interface LogLevelListener
event
- The LogLevelEvent holding the details.public void levelChanged(LogLevelEvent event)
levelChanged
in interface LogLevelListener
event
- The LogLevelEvent holding the details.public void levelRemoved(LogLevelEvent event)
levelRemoved
in interface LogLevelListener
event
- The LogLevelEvent holding the details.public void setLogLevelCallback(LogLevelCallback callback)
setLogLevelCallback
in interface LogLevelListener
callback
- The LogLevelCallback to use to change the log
levels.
|
qflib 0.98.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |