@ManagedObject(value="File messsage log") public class FileMessageLog extends AbstractMessageLog implements AccessLog
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
YYYY_MM_DD |
IN, MAXIMAL_BUFFER_LENGTH, OUT| Constructor and Description |
|---|
FileMessageLog() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteLogFiles() |
void |
doLog(SipMessage message,
int direction,
SipConnection connection) |
protected void |
doStart() |
protected void |
doStop() |
java.lang.String |
getFilename() |
int |
getRetainDays() |
boolean |
isAppend() |
void |
setAppend(boolean append) |
void |
setFilename(java.lang.String filename) |
void |
setRetainDays(int days) |
generateInfoLine, generateMessage, messageReceived, messageSentaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmessageReceived, messageSentpublic static final java.lang.String YYYY_MM_DD
protected void doStart()
throws java.lang.Exception
doStart in class AbstractMessageLogjava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class org.eclipse.jetty.util.component.AbstractLifeCyclejava.lang.Exceptionpublic void doLog(SipMessage message, int direction, SipConnection connection) throws java.io.IOException
doLog in class AbstractMessageLogjava.io.IOExceptionpublic void setFilename(java.lang.String filename)
@ManagedAttribute(value="File name",
readonly=true)
public java.lang.String getFilename()
@ManagedAttribute(value="Append",
readonly=true)
public boolean isAppend()
public void setAppend(boolean append)
@ManagedAttribute(value="Retains days",
readonly=true)
public int getRetainDays()
public void setRetainDays(int days)
@ManagedOperation(value="Delete log files",
impact="ACTION")
public void deleteLogFiles()
throws java.io.IOException
java.io.IOExceptionCopyright © 2015. All Rights Reserved.