public interface AuditManager
Auditing currently saves audit data to a raw XML file which can later be processed and mined for information.
Modifier and Type | Field and Description |
---|---|
static int |
PRESENCE_AVAILABLE_AVAILABLE |
static int |
PRESENCE_AVAILABLE_UNAVAILABLE |
static int |
PRESENCE_UNAVAILABLE_AVAILABLE |
static int |
PRESENCE_UNAVAILABLE_UNAVAILABLE |
Modifier and Type | Method and Description |
---|---|
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.
|
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 enabled)
Enables or disables the server auditing of all iq packets.
|
void |
setAuditMessage(boolean enabled)
Enables or disables the server auditing of all message packets.
|
void |
setAuditPresence(boolean enabled)
Enables or disables the server auditing of all presence packets.
|
void |
setAuditXPath(boolean enabled)
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.
|
static final int PRESENCE_UNAVAILABLE_AVAILABLE
static final int PRESENCE_AVAILABLE_AVAILABLE
static final int PRESENCE_AVAILABLE_UNAVAILABLE
static final int PRESENCE_UNAVAILABLE_UNAVAILABLE
boolean isEnabled()
void setEnabled(boolean enabled)
enabled
- true if auditing is enabled, false indicates no auditing will occur.Auditor getAuditor()
int getMaxTotalSize()
void setMaxTotalSize(int size)
size
- the maximum size of all audit logs in megabytes.int getMaxFileSize()
void setMaxFileSize(int size)
size
- the maximum audit log file size in megabytes.int getMaxDays()
void setMaxDays(int count)
count
- the maximum number of days to keep audit information
or -1 for unlimitedint getLogTimeout()
void setLogTimeout(int logTimeout)
logTimeout
- the time in milliseconds between successive executions of the task that will save
the queued audited packets to a permanent store.String getLogDir()
void setLogDir(String logDir)
logDir
- the absolute path to the directory where the audit log files will be saved.boolean isAuditMessage()
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.
void setAuditMessage(boolean enabled)
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.
enabled
- True if all messages are to be auditedboolean isAuditPresence()
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.
void setAuditPresence(boolean enabled)
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.
enabled
- True if all presence are to be auditedboolean isAuditIQ()
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.
void setAuditIQ(boolean enabled)
enabled
- true if all iq are to be audited.boolean isAuditXPath()
void setAuditXPath(boolean enabled)
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).
enabled
- true if XPath expressions should be auditedvoid addXPath(String xpathExpression)
xpathExpression
- the xpath expression to add to the list of auditing filters.void removeXPath(String xpathExpression)
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.
xpathExpression
- The xpath expression to remove from the list of auditing filtersIterator getXPathFilters()
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.
void setIgnoreList(Collection<String> usernames)
usernames
- the list of usernames that won't be audited.Collection<String> getIgnoreList()
Copyright © 2003–2019 Ignite Realtime. All rights reserved.