public interface IRepositoryConnectionManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
static java.lang.String |
ACTIVITY_JOBCONTINUE
Continue a job
|
static java.lang.String |
ACTIVITY_JOBEND
Finish a job
|
static java.lang.String |
ACTIVITY_JOBSTART
Start a job
|
static java.lang.String |
ACTIVITY_JOBSTOP
Stop a job
|
static java.lang.String |
ACTIVITY_JOBUNWAIT
Unwait due to schedule
|
static java.lang.String |
ACTIVITY_JOBWAIT
Wait due to schedule
|
static java.lang.String[] |
activitySet
The set of activity records.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkConnectorExists(java.lang.String name)
Check if underlying connector exists.
|
void |
cleanUpHistoryData(long timeCutoff)
Delete history rows older than a specified timestamp.
|
void |
cleanUpHistoryData(java.lang.String connectionName)
Delete history rows related to a specific connection, upon user request.
|
long |
countHistoryRows(java.lang.String connectionName,
FilterCriteria criteria)
Count the number of rows specified by a given set of criteria.
|
IRepositoryConnection |
create()
Create a new repository connection object.
|
void |
deinstall()
Uninstall the manager.
|
void |
delete(java.lang.String name)
Delete a repository connection.
|
void |
exportConfiguration(java.io.OutputStream os)
Export configuration
|
java.lang.String[] |
findConnectionsForConnector(java.lang.String className)
Get a list of repository connections that share the same connector.
|
IResultSet |
genHistoryActivityCount(java.lang.String connectionName,
FilterCriteria criteria,
SortOrder sort,
BucketDescription idBucket,
long interval,
int startRow,
int maxRowCount)
Generate a report, listing the start time, activity count, and identifier bucket, given
a time slice (interval) size.
|
IResultSet |
genHistoryByteCount(java.lang.String connectionName,
FilterCriteria criteria,
SortOrder sort,
BucketDescription idBucket,
long interval,
int startRow,
int maxRowCount)
Generate a report, listing the start time, bytes processed, and identifier bucket, given
a time slice (interval) size.
|
IResultSet |
genHistoryResultCodes(java.lang.String connectionName,
FilterCriteria criteria,
SortOrder sort,
BucketDescription resultCodeBucket,
BucketDescription idBucket,
int startRow,
int maxRowCount)
Generate a report, listing the result bucket and identifier bucket.
|
IResultSet |
genHistorySimple(java.lang.String connectionName,
FilterCriteria criteria,
SortOrder sort,
int startRow,
int maxRowCount)
Generate a report, listing the start time, elapsed time, result code and description, number of bytes, and entity identifier.
|
IRepositoryConnection[] |
getAllConnections()
Obtain a list of the repository connections, ordered by name.
|
java.lang.String |
getConnectionNameColumn()
Return the name column.
|
long |
getMaxRows()
Get the maximum number of rows a window-based report can work with.
|
java.lang.String |
getTableName()
Return the primary table name.
|
void |
importConfiguration(java.io.InputStream is)
Import configuration
|
void |
install()
Install the manager.
|
boolean |
isGroupReferenced(java.lang.String authorityGroup)
Return true if the specified authority group name is referenced.
|
IRepositoryConnection |
load(java.lang.String name)
Load a repository connection by name.
|
IRepositoryConnection[] |
loadMultiple(java.lang.String[] names)
Load a set of repository connections.
|
void |
recordHistory(java.lang.String connectionName,
java.lang.Long startTime,
java.lang.String activityType,
java.lang.Long dataSize,
java.lang.String entityIdentifier,
java.lang.String resultCode,
java.lang.String resultDescription,
java.lang.String[] childIdentifiers)
Record time-stamped information about the activity of the connection.
|
boolean |
save(IRepositoryConnection object)
Save a repository connection object.
|
static final java.lang.String _rcsid
static final java.lang.String ACTIVITY_JOBSTART
static final java.lang.String ACTIVITY_JOBEND
static final java.lang.String ACTIVITY_JOBSTOP
static final java.lang.String ACTIVITY_JOBCONTINUE
static final java.lang.String ACTIVITY_JOBWAIT
static final java.lang.String ACTIVITY_JOBUNWAIT
static final java.lang.String[] activitySet
void install() throws ManifoldCFException
ManifoldCFException
void deinstall() throws ManifoldCFException
ManifoldCFException
void exportConfiguration(java.io.OutputStream os) throws java.io.IOException, ManifoldCFException
java.io.IOException
ManifoldCFException
void importConfiguration(java.io.InputStream is) throws java.io.IOException, ManifoldCFException
java.io.IOException
ManifoldCFException
IRepositoryConnection[] getAllConnections() throws ManifoldCFException
ManifoldCFException
IRepositoryConnection load(java.lang.String name) throws ManifoldCFException
name
- is the name of the repository connection.ManifoldCFException
IRepositoryConnection[] loadMultiple(java.lang.String[] names) throws ManifoldCFException
names
- are the names of the repository connections.ManifoldCFException
IRepositoryConnection create() throws ManifoldCFException
ManifoldCFException
boolean save(IRepositoryConnection object) throws ManifoldCFException
object
- is the object to save.ManifoldCFException
void delete(java.lang.String name) throws ManifoldCFException
name
- is the name of the connection to delete. If the
name does not exist, no error is returned.ManifoldCFException
boolean isGroupReferenced(java.lang.String authorityGroup) throws ManifoldCFException
authorityGroup
- is the authority group name.ManifoldCFException
java.lang.String[] findConnectionsForConnector(java.lang.String className) throws ManifoldCFException
className
- is the class name of the connector.ManifoldCFException
boolean checkConnectorExists(java.lang.String name) throws ManifoldCFException
name
- is the name of the connection to check.ManifoldCFException
java.lang.String getTableName()
java.lang.String getConnectionNameColumn()
void cleanUpHistoryData(java.lang.String connectionName) throws ManifoldCFException
connectionName
- is the connection whose history records should be removed.ManifoldCFException
void cleanUpHistoryData(long timeCutoff) throws ManifoldCFException
timeCutoff
- is the timestamp to delete older rows before.ManifoldCFException
void recordHistory(java.lang.String connectionName, java.lang.Long startTime, java.lang.String activityType, java.lang.Long dataSize, java.lang.String entityIdentifier, java.lang.String resultCode, java.lang.String resultDescription, java.lang.String[] childIdentifiers) throws ManifoldCFException
connectionName
- is the connection to which the record belongs. If the connection is deleted, the
corresponding records will also be deleted. Cannot be null.startTime
- is either null or the time since the start of epoch in milliseconds (Jan 1, 1970). Every
activity has an associated time; the startTime field records when the activity began. A null value
indicates that the start time and the finishing time are the same.activityType
- is a string which is fully interpretable only in the context of the connector involved, which is
used to categorize what kind of activity is being recorded. For example, a web connector might record a
"fetch document" activity, while the framework might record "ingest document", "job start", "job finish",
"job abort", etc. Cannot be null.dataSize
- is the number of bytes of data involved in the activity, or null if not applicable.entityIdentifier
- is a (possibly long) string which identifies the object involved in the history record.
The interpretation of this field will differ from connector to connector. May be null.resultCode
- contains a terse description of the result of the activity. The description is limited in
size to 255 characters, and can be interpreted only in the context of the current connector. May be null.resultDescription
- is a (possibly long) human-readable string which adds detail, if required, to the result
described in the resultCode field. This field is not meant to be queried on. May be null.childIdentifiers
- is a set of child entity identifiers associated with this activity. May be null.ManifoldCFException
IResultSet genHistorySimple(java.lang.String connectionName, FilterCriteria criteria, SortOrder sort, int startRow, int maxRowCount) throws ManifoldCFException
connectionName
- is the name of the connection.criteria
- is the filtering criteria, which selects the records of interest.sort
- is the sorting order, which can specify sort based on the result columns.startRow
- is the first row to include (beginning with 0)maxRowCount
- is the maximum number of rows to include.ManifoldCFException
long countHistoryRows(java.lang.String connectionName, FilterCriteria criteria) throws ManifoldCFException
connectionName
- is the name of the connection.criteria
- is the filtering criteria, which selects the records of interest.ManifoldCFException
long getMaxRows() throws ManifoldCFException
ManifoldCFException
IResultSet genHistoryActivityCount(java.lang.String connectionName, FilterCriteria criteria, SortOrder sort, BucketDescription idBucket, long interval, int startRow, int maxRowCount) throws ManifoldCFException
connectionName
- is the name of the connection.criteria
- is the filtering criteria, which selects the records of interest.sort
- is the sorting order, which can specify sort based on the result columns.idBucket
- is the description of the bucket based on processed entity identifiers.interval
- is the time interval, in milliseconds, to locate. There will be one row in the resultset
for each distinct idBucket value, and the returned activity count will the maximum found over the
specified interval size.startRow
- is the first row to include (beginning with 0)maxRowCount
- is the maximum number of rows to include.ManifoldCFException
IResultSet genHistoryByteCount(java.lang.String connectionName, FilterCriteria criteria, SortOrder sort, BucketDescription idBucket, long interval, int startRow, int maxRowCount) throws ManifoldCFException
connectionName
- is the name of the connection.criteria
- is the filtering criteria, which selects the records of interest.sort
- is the sorting order, which can specify sort based on the result columns.idBucket
- is the description of the bucket based on processed entity identifiers.interval
- is the time interval, in milliseconds, to locate. There will be one row in the resultset
for each distinct idBucket value, and the returned activity count will the maximum found over the
specified interval size.startRow
- is the first row to include (beginning with 0)maxRowCount
- is the maximum number of rows to include.ManifoldCFException
IResultSet genHistoryResultCodes(java.lang.String connectionName, FilterCriteria criteria, SortOrder sort, BucketDescription resultCodeBucket, BucketDescription idBucket, int startRow, int maxRowCount) throws ManifoldCFException
connectionName
- is the name of the connection.criteria
- is the filtering criteria, which selects the records of interest.sort
- is the sorting order, which can specify sort based on the result columns.resultCodeBucket
- is the description of the bucket based on processed result codes.idBucket
- is the description of the bucket based on processed entity identifiers.startRow
- is the first row to include (beginning with 0)maxRowCount
- is the maximum number of rows to include.ManifoldCFException