|
Openfire 3.6.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.container.BasicModule org.jivesoftware.openfire.audit.spi.AuditManagerImpl
public class AuditManagerImpl
Implementation of the AuditManager interface.
Field Summary |
---|
Fields inherited from interface org.jivesoftware.openfire.audit.AuditManager |
---|
PRESENCE_AVAILABLE_AVAILABLE, PRESENCE_AVAILABLE_UNAVAILABLE, PRESENCE_UNAVAILABLE_AVAILABLE, PRESENCE_UNAVAILABLE_UNAVAILABLE |
Constructor Summary | |
---|---|
AuditManagerImpl()
|
Method Summary | |
---|---|
void |
addXPath(String xpathExpression)
Adds an XPath expression to be used for filtering packets to be audited. |
Auditor |
getAuditor()
Factory method for creating auditors that are configured by this audit manager. |
Collection<String> |
getIgnoreList()
Returns the list of usernames that won't be audited. |
String |
getLogDir()
Returns the absolute path to the directory where the audit log files will be saved. |
int |
getLogTimeout()
Returns the time in milliseconds between successive executions of the task that will save the queued audited packets to a permanent store. |
int |
getMaxDays()
Returns the maximum number of days to keep audit information. |
int |
getMaxFileSize()
Obtain the maximum size of audit log files in megabytes. |
int |
getMaxTotalSize()
Returns the maximum size in megabytes that all audit log files may have. |
Iterator |
getXPathFilters()
Obtain an iterator over the XPath expressions (Strings) currently registered with the audit manager. |
void |
initialize(XMPPServer server)
Initializes the basic module. |
boolean |
isAuditIQ()
Determines if the server will audit all iq packets. |
boolean |
isAuditMessage()
Determines if the server will audit all message packets. |
boolean |
isAuditPresence()
Determines if the server will audit all presence packets. |
boolean |
isAuditXPath()
Determines if the server will audit packets using XPath expressions. |
boolean |
isEnabled()
Determines if auditing is enabled at all. |
void |
removeXPath(String xpathExpression)
Removes the XPath expression from the set being used for filtering packets to be audited. |
void |
setAuditIQ(boolean auditIQ)
Enables or disables the server auditing of all iq packets. |
void |
setAuditMessage(boolean auditMessage)
Enables or disables the server auditing of all message packets. |
void |
setAuditPresence(boolean auditPresence)
Enables or disables the server auditing of all presence packets. |
void |
setAuditXPath(boolean auditXPath)
Enables/disables server auditing of packets using XPath expressions. |
void |
setEnabled(boolean enabled)
Turns auditing off or on for the manager as a whole. |
void |
setIgnoreList(Collection<String> usernames)
Sets the list of usernames that won't be audited. |
void |
setLogDir(String logDir)
Sets the absolute path to the directory where the audit log files will be saved. |
void |
setLogTimeout(int logTimeout)
Sets the time in milliseconds between successive executions of the task that will save the queued audited packets to a permanent store. |
void |
setMaxDays(int count)
Set the the maximum number of days to keep audit information. |
void |
setMaxFileSize(int size)
Set the maximum size of audit log files in megabytes. |
void |
setMaxTotalSize(int size)
Sets the maximum size in megabytes that all audit log files may have. |
void |
stop()
Stops the basic module. |
Methods inherited from class org.jivesoftware.openfire.container.BasicModule |
---|
destroy, getName, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuditManagerImpl()
Method Detail |
---|
public boolean isEnabled()
AuditManager
isEnabled
in interface AuditManager
public void setEnabled(boolean enabled)
AuditManager
setEnabled
in interface AuditManager
enabled
- true if auditing is enabled, false indicates no auditing will occur.public Auditor getAuditor()
AuditManager
getAuditor
in interface AuditManager
public int getMaxTotalSize()
AuditManager
getMaxTotalSize
in interface AuditManager
public void setMaxTotalSize(int size)
AuditManager
setMaxTotalSize
in interface AuditManager
size
- the maximum size of all audit logs in megabytes.public int getMaxFileSize()
AuditManager
getMaxFileSize
in interface AuditManager
public void setMaxFileSize(int size)
AuditManager
setMaxFileSize
in interface AuditManager
size
- the maximum audit log file size in megabytes.public int getMaxDays()
AuditManager
getMaxDays
in interface AuditManager
public void setMaxDays(int count)
AuditManager
setMaxDays
in interface AuditManager
count
- the maximum number of days to keep audit information
or -1 for unlimitedpublic int getLogTimeout()
AuditManager
getLogTimeout
in interface AuditManager
public void setLogTimeout(int logTimeout)
AuditManager
setLogTimeout
in interface AuditManager
logTimeout
- the time in milliseconds between successive executions of the task that will save
the queued audited packets to a permanent store.public String getLogDir()
AuditManager
getLogDir
in interface AuditManager
public void setLogDir(String logDir)
AuditManager
setLogDir
in interface AuditManager
logDir
- the absolute path to the directory where the audit log files will be saved.public boolean isAuditMessage()
AuditManager
Determines if the server will audit all message packets.
This is a speed optimization and convenience for logging all message packets rather than using an XPath expression.
isAuditMessage
in interface AuditManager
public void setAuditMessage(boolean auditMessage)
AuditManager
Enables or disables the server auditing of all message packets.
This is a speed optimization and convenience for logging all message packets rather than using an XPath expression.
setAuditMessage
in interface AuditManager
auditMessage
- True if all messages are to be auditedpublic boolean isAuditPresence()
AuditManager
Determines if the server will audit all presence packets.
This is a speed optimization and convenience for logging all presence packets rather than using an XPath expression.
isAuditPresence
in interface AuditManager
public void setAuditPresence(boolean auditPresence)
AuditManager
Enables or disables the server auditing of all presence packets.
This is a speed optimization and convenience for logging all presence packets rather than using an XPath expression.
setAuditPresence
in interface AuditManager
auditPresence
- True if all presence are to be auditedpublic boolean isAuditIQ()
AuditManager
Determines if the server will audit all iq packets.
This is a speed optimization and convenience for logging all iq packets rather than using an XPath expression.
isAuditIQ
in interface AuditManager
public void setAuditIQ(boolean auditIQ)
AuditManager
setAuditIQ
in interface AuditManager
auditIQ
- true if all iq are to be audited.public boolean isAuditXPath()
AuditManager
isAuditXPath
in interface AuditManager
public void setAuditXPath(boolean auditXPath)
AuditManager
Enables/disables server auditing of packets using XPath expressions.
XPath expressions provide a lot of power in specifying what is logged. However, it is much more compute intensive than other techniques and requires all packets be transformed into DOM objects (which can be computationally expensive).
setAuditXPath
in interface AuditManager
auditXPath
- true if XPath expressions should be auditedpublic void addXPath(String xpathExpression)
AuditManager
addXPath
in interface AuditManager
xpathExpression
- the xpath expression to add to the list of auditing filters.public void removeXPath(String xpathExpression)
AuditManager
Removes the XPath expression from the set being used for filtering packets to be audited.
XPath expressions aren't evaluated or used for filtering unless isAuditXPath() returns true.
removeXPath
in interface AuditManager
xpathExpression
- The xpath expression to remove from the list of auditing filterspublic Iterator getXPathFilters()
AuditManager
Obtain an iterator over the XPath expressions (Strings) currently registered with the audit manager.
XPath expressions aren't evaluated or used for filtering unless isAuditXPath() returns true.
getXPathFilters
in interface AuditManager
public void setIgnoreList(Collection<String> usernames)
AuditManager
setIgnoreList
in interface AuditManager
usernames
- the list of usernames that won't be audited.public Collection<String> getIgnoreList()
AuditManager
getIgnoreList
in interface AuditManager
public void initialize(XMPPServer server)
BasicModule
Initializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize
in interface Module
initialize
in class BasicModule
server
- the server hosting this module.public void stop()
BasicModule
Stops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
stop
in interface Module
stop
in class BasicModule
|
Openfire 3.6.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |