public class ChangeEventMonitor extends Object
RepositoryAdmin's
getChangeEventMonitor method) provides various
get methods by which lists of
ChangeEvents may be obtained (grouped and ordered in various ways), and the class
provides a static convenience method for outputting a list of ChangeEvents to a CSV file.| Modifier and Type | Method and Description |
|---|---|
static void |
exportChangeEventListToCsvFile(Collection<ChangeEvent> changeEvents,
File targetFile)
Export the submitted list of ChangeEvent objects to a comma-separated-value (CSV) file, one
line per ChangeEvent, with the first non-comment line of the file consisting of column headers.
|
Set<ChangeEvent> |
getAllChangeEvents()
Get a Set of all
ChangeEvents in the ColumnManager repository in the default
(timestamp) order. |
Set<ChangeEvent> |
getAllChangeEventsByUserName()
Get a Set of all
ChangeEvents in the ColumnManager repository, ordered by user name (as
designated by the Java "user.name" property in effect within a session as a change was made). |
Set<ChangeEvent> |
getChangeEventsForColumnAuditor(TableName tableName,
byte[] columnFamily,
byte[] columnQualifier)
Get the
ChangeEvents pertaining to the specified ColumnAuditor,
in timestamp order. |
Set<ChangeEvent> |
getChangeEventsForColumnDefinition(TableName tableName,
byte[] columnFamily,
byte[] columnQualifier)
Get the
ChangeEvents pertaining to the specified ColumnDefinition,
in timestamp order. |
Set<ChangeEvent> |
getChangeEventsForColumnFamily(TableName tableName,
byte[] columnFamily,
boolean includeChildEntities)
Get the
ChangeEvents pertaining to the specified
Column Family, in timestamp order. |
Set<ChangeEvent> |
getChangeEventsForColumnFamilyAttribute(TableName tableName,
byte[] columnFamily,
String attributeName)
Get the
ChangeEvents pertaining to the specified Attribute of the specified
Column Family, in timestamp order. |
Set<ChangeEvent> |
getChangeEventsForNamespace(byte[] namespaceName,
boolean includeChildEntities)
Get the
ChangeEvents pertaining to the specified
Namespace, in timestamp order. |
Set<ChangeEvent> |
getChangeEventsForTable(TableName tableName,
boolean includeChildEntities)
Get the
ChangeEvents pertaining to the specified
Table, in timestamp order. |
Set<ChangeEvent> |
getChangeEventsForTableAttribute(TableName tableName,
String attributeName)
Get the
ChangeEvents pertaining to the specified Attribute of the specified
Table, in timestamp order. |
Set<ChangeEvent> |
getChangeEventsForUserName(String userName)
Get the
ChangeEvents pertaining to a specific user name (as designated by
the Java "user.name"
property in effect within a session as a change was made), in timestamp order. |
public Set<ChangeEvent> getAllChangeEvents()
ChangeEvents in the ColumnManager repository in the default
(timestamp) order.ChangeEvents in timestamp orderpublic Set<ChangeEvent> getAllChangeEventsByUserName()
ChangeEvents in the ColumnManager repository, ordered by user name (as
designated by the Java "user.name" property in effect within a session as a change was made).ChangeEvents in user-name and timestamp orderpublic Set<ChangeEvent> getChangeEventsForUserName(String userName)
ChangeEvents pertaining to a specific user name (as designated by
the Java "user.name"
property in effect within a session as a change was made), in timestamp order.userName - value of Java "user.name" property in effect when change was madeChangeEvents pertaining to the user name, in timestamp orderpublic Set<ChangeEvent> getChangeEventsForNamespace(byte[] namespaceName, boolean includeChildEntities)
ChangeEvents pertaining to the specified
Namespace, in timestamp order.namespaceName - Namespace nameincludeChildEntities - if true ChangeEvents for Tables and
all table components in the Namespace will be included in returned SetChangeEvents pertaining to the specified
Namespacepublic Set<ChangeEvent> getChangeEventsForTable(TableName tableName, boolean includeChildEntities)
ChangeEvents pertaining to the specified
Table, in timestamp order.tableName - TableName objectincludeChildEntities - if true ChangeEvents for Column Families,
ColumnAuditors, and ColumnDefinitions will be included in returned SetChangeEvents pertaining to the specified
Tablepublic Set<ChangeEvent> getChangeEventsForTableAttribute(TableName tableName, String attributeName)
ChangeEvents pertaining to the specified Attribute of the specified
Table, in timestamp order.tableName - TableName objectattributeName - name of attributeChangeEvents pertaining to the specified Attribute of the specified
Tablepublic Set<ChangeEvent> getChangeEventsForColumnFamily(TableName tableName, byte[] columnFamily, boolean includeChildEntities)
ChangeEvents pertaining to the specified
Column Family, in timestamp order.tableName - TableName objectcolumnFamily - name of Column FamilyincludeChildEntities - if true ChangeEvents for ColumnAuditors
and ColumnDefinitions will be included in returned SetChangeEvents pertaining to the specified
Column Familypublic Set<ChangeEvent> getChangeEventsForColumnFamilyAttribute(TableName tableName, byte[] columnFamily, String attributeName)
ChangeEvents pertaining to the specified Attribute of the specified
Column Family, in timestamp order.tableName - TableName objectcolumnFamily - name of Column FamilyattributeName - name of attributeChangeEvents pertaining to the specified Attribute of the specified
Column Familypublic Set<ChangeEvent> getChangeEventsForColumnDefinition(TableName tableName, byte[] columnFamily, byte[] columnQualifier)
ChangeEvents pertaining to the specified ColumnDefinition,
in timestamp order.tableName - TableName objectcolumnFamily - name of Column FamilycolumnQualifier - qualifier that identifies the ColumnDefinitionChangeEvents pertaining to the specified ColumnDefinitionpublic Set<ChangeEvent> getChangeEventsForColumnAuditor(TableName tableName, byte[] columnFamily, byte[] columnQualifier)
ChangeEvents pertaining to the specified ColumnAuditor,
in timestamp order.tableName - TableName objectcolumnFamily - name of Column FamilycolumnQualifier - qualifier that identifies the ColumnAuditorChangeEvents pertaining to the specified ColumnAuditorpublic static void exportChangeEventListToCsvFile(Collection<ChangeEvent> changeEvents, File targetFile) throws IOException
changeEvents - list of ChangeEvent objects returned by one of the "get" methods of the
ChangeEventMonitor class.targetFile - target fileIOException - if a remote or network exception occursCopyright © 2016. All rights reserved.