|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IRepositoryConnectionManager
Manager classes of this kind use the database to contain a human description of a repository connection.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
static java.lang.String |
ACTIVITY_JOBABORT
Abort a job |
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_JOBWAIT
Wait a job |
static java.lang.String[] |
activitySet
The set of activity records. |
| Method Summary | |
|---|---|
boolean |
checkConnectorExists(java.lang.String name)
Check if underlying connector exists. |
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. |
java.lang.String |
getTableName()
Return the primary table name. |
void |
importConfiguration(java.io.InputStream is)
Import configuration |
void |
install()
Install the manager. |
boolean |
isReferenced(java.lang.String authorityName)
Return true if the specified authority 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. |
| Field Detail |
|---|
static final java.lang.String _rcsid
static final java.lang.String ACTIVITY_JOBSTART
static final java.lang.String ACTIVITY_JOBWAIT
static final java.lang.String ACTIVITY_JOBCONTINUE
static final java.lang.String ACTIVITY_JOBEND
static final java.lang.String ACTIVITY_JOBABORT
static final java.lang.String[] activitySet
| Method Detail |
|---|
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 isReferenced(java.lang.String authorityName)
throws ManifoldCFException
authorityName - is the authority 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.
ManifoldCFExceptionjava.lang.String getTableName()
java.lang.String getConnectionNameColumn()
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
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||