public class ThrottleSpecManager extends BaseTable
Field | Type | Description |
---|---|---|
ownername | VARCHAR(32) | Reference:repoconnections.connectionname |
description | VARCHAR(255) | |
matchstring | VARCHAR(255) | |
throttle | FLOAT |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
static java.lang.String |
descriptionField |
static java.lang.String |
matchField |
static java.lang.String |
ownerNameField |
static java.lang.String |
throttleField |
dbInterface, tableName
Constructor and Description |
---|
ThrottleSpecManager(IDBInterface database)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
deinstall()
Uninstall.
|
void |
deleteRows(java.lang.String owner)
Delete rows.
|
void |
getRows(IRepositoryConnection[] connections,
java.util.Map indexMap,
java.util.ArrayList ownerNameParams)
Fill in a set of throttles corresponding to a set of connection names.
|
void |
install(java.lang.String ownerTable,
java.lang.String owningTablePrimaryKey)
Install or upgrade.
|
int |
maxClauseGetRows()
Calculate the maximum number of clauses we can use with getRows.
|
IResultSet |
readRows(java.lang.String name)
Read rows for a given owner name.
|
void |
writeRows(java.lang.String owner,
IRepositoryConnection connection)
Write a throttle spec into the database.
|
addTableIndex, analyzeTable, beginTransaction, buildConjunctionClause, constructCountClause, constructDistinctOnClause, constructDoubleCastClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, findConjunctionClauseMax, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getSleepAmt, getTableIndexes, getTableName, getTableSchema, getTransactionID, getWindowedReportMaxRows, makeTableKey, noteModifications, performAddIndex, performAlter, performCommit, performCreate, performDelete, performDrop, performInsert, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback, sleepFor
public static final java.lang.String _rcsid
public static final java.lang.String ownerNameField
public static final java.lang.String descriptionField
public static final java.lang.String matchField
public static final java.lang.String throttleField
public ThrottleSpecManager(IDBInterface database) throws ManifoldCFException
database
- is the database instance.ManifoldCFException
public void install(java.lang.String ownerTable, java.lang.String owningTablePrimaryKey) throws ManifoldCFException
ownerTable
- is the name of the table that owns this one.owningTablePrimaryKey
- is the primary key of the owning table.ManifoldCFException
public void deinstall() throws ManifoldCFException
ManifoldCFException
public IResultSet readRows(java.lang.String name) throws ManifoldCFException
name
- is the owner name.ManifoldCFException
public int maxClauseGetRows()
public void getRows(IRepositoryConnection[] connections, java.util.Map indexMap, java.util.ArrayList ownerNameParams) throws ManifoldCFException
connections
- is the set of connections to fill in.indexMap
- maps the connection name to the index in the connections array.ownerNameParams
- is the corresponding set of connection name parameters.ManifoldCFException
public void writeRows(java.lang.String owner, IRepositoryConnection connection) throws ManifoldCFException
owner
- is the owning connection name.connection
- is the connection to write throttle specs for.ManifoldCFException
public void deleteRows(java.lang.String owner) throws ManifoldCFException
owner
- is the owner whose rows to delete.ManifoldCFException