|
Openfire 3.7.1 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 AuditManagerpublic void setEnabled(boolean enabled)
AuditManager
setEnabled in interface AuditManagerenabled - true if auditing is enabled, false indicates no auditing will occur.public Auditor getAuditor()
AuditManager
getAuditor in interface AuditManagerpublic int getMaxTotalSize()
AuditManager
getMaxTotalSize in interface AuditManagerpublic void setMaxTotalSize(int size)
AuditManager
setMaxTotalSize in interface AuditManagersize - the maximum size of all audit logs in megabytes.public int getMaxFileSize()
AuditManager
getMaxFileSize in interface AuditManagerpublic void setMaxFileSize(int size)
AuditManager
setMaxFileSize in interface AuditManagersize - the maximum audit log file size in megabytes.public int getMaxDays()
AuditManager
getMaxDays in interface AuditManagerpublic void setMaxDays(int count)
AuditManager
setMaxDays in interface AuditManagercount - the maximum number of days to keep audit information
or -1 for unlimitedpublic int getLogTimeout()
AuditManager
getLogTimeout in interface AuditManagerpublic void setLogTimeout(int logTimeout)
AuditManager
setLogTimeout in interface AuditManagerlogTimeout - 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 AuditManagerpublic void setLogDir(String logDir)
AuditManager
setLogDir in interface AuditManagerlogDir - the absolute path to the directory where the audit log files will be saved.public boolean isAuditMessage()
AuditManagerDetermines 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 AuditManagerpublic void setAuditMessage(boolean auditMessage)
AuditManagerEnables 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 AuditManagerauditMessage - True if all messages are to be auditedpublic boolean isAuditPresence()
AuditManagerDetermines 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 AuditManagerpublic void setAuditPresence(boolean auditPresence)
AuditManagerEnables 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 AuditManagerauditPresence - True if all presence are to be auditedpublic boolean isAuditIQ()
AuditManagerDetermines 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 AuditManagerpublic void setAuditIQ(boolean auditIQ)
AuditManager
setAuditIQ in interface AuditManagerauditIQ - true if all iq are to be audited.public boolean isAuditXPath()
AuditManager
isAuditXPath in interface AuditManagerpublic void setAuditXPath(boolean auditXPath)
AuditManagerEnables/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 AuditManagerauditXPath - true if XPath expressions should be auditedpublic void addXPath(String xpathExpression)
AuditManager
addXPath in interface AuditManagerxpathExpression - the xpath expression to add to the list of auditing filters.public void removeXPath(String xpathExpression)
AuditManagerRemoves 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 AuditManagerxpathExpression - The xpath expression to remove from the list of auditing filterspublic Iterator getXPathFilters()
AuditManagerObtain 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 AuditManagerpublic void setIgnoreList(Collection<String> usernames)
AuditManager
setIgnoreList in interface AuditManagerusernames - the list of usernames that won't be audited.public Collection<String> getIgnoreList()
AuditManager
getIgnoreList in interface AuditManagerpublic void initialize(XMPPServer server)
BasicModuleInitializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize in interface Moduleinitialize in class BasicModuleserver - the server hosting this module.public void stop()
BasicModuleStops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
stop in interface Modulestop in class BasicModule
|
Openfire 3.7.1 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||