public class NotificationConnectionManager extends BaseTable implements INotificationConnectionManager
Field | Type | Description |
---|---|---|
connectionname | VARCHAR(32) | Primary Key |
description | VARCHAR(255) | |
classname | VARCHAR(255) | |
maxcount | BIGINT | |
configxml | LONGTEXT |
Modifier and Type | Class and Description |
---|---|
protected static class |
NotificationConnectionManager.NotificationConnectionDescription
This is the object description for a repository connection object.
|
protected static class |
NotificationConnectionManager.NotificationConnectionExecutor
This is the executor object for locating notification connection objects.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
protected ICacheManager |
cacheManager |
protected static java.lang.String |
classNameField |
protected static java.lang.String |
configField |
protected static java.lang.String |
descriptionField |
protected static int |
FETCH_MAX |
protected ILockManager |
lockManager |
protected static java.lang.String |
maxCountField |
protected static java.lang.String |
nameField |
protected java.lang.String |
notificationsLock |
protected static java.util.Random |
random |
protected IThreadContext |
threadContext |
dbInterface, tableName
Constructor and Description |
---|
NotificationConnectionManager(IThreadContext threadContext,
IDBInterface database)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkConnectorExists(java.lang.String name)
Check if underlying connector exists.
|
INotificationConnection |
create()
Create a new notification connection object.
|
void |
deinstall()
Uninstall the manager.
|
void |
delete(java.lang.String name)
Delete a notification connection.
|
void |
exportConfiguration(java.io.OutputStream os)
Export configuration
|
java.lang.String[] |
findConnectionsForConnector(java.lang.String className)
Get a list of notification connections that share the same connector.
|
INotificationConnection[] |
getAllConnections()
Obtain a list of the notification connections, ordered by name.
|
java.lang.String |
getConnectionNameColumn()
Return the name column.
|
protected static java.lang.String |
getNotificationConnectionKey(java.lang.String connectionName)
Construct a key which represents an individual notification connection.
|
protected void |
getNotificationConnectionsChunk(NotificationConnection[] rval,
java.util.Map returnIndex,
java.util.ArrayList params)
Read a chunk of notification connections.
|
protected static java.lang.String |
getNotificationConnectionsKey()
Construct a key which represents the general list of notification connectors.
|
protected NotificationConnection[] |
getNotificationConnectionsMultiple(java.lang.String[] connectionNames)
Fetch multiple notification connections at a single time.
|
void |
importConfiguration(java.io.InputStream is)
Import configuration
|
void |
install()
Install the manager.
|
INotificationConnection |
load(java.lang.String name)
Load a notification connection by name.
|
INotificationConnection[] |
loadMultiple(java.lang.String[] names)
Load multiple notification connections by name.
|
protected int |
loadMultipleInternal(INotificationConnection[] rval,
int outputIndex,
java.lang.String[] fetchNames,
int inputIndex,
int length) |
protected int |
maxClauseGetNotificationConnectionsChunk()
Calculate how many notification connections to get at once.
|
boolean |
save(INotificationConnection object)
Save a notification connection object.
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTableName
public static final java.lang.String _rcsid
protected static final java.lang.String nameField
protected static final java.lang.String descriptionField
protected static final java.lang.String classNameField
protected static final java.lang.String maxCountField
protected static final java.lang.String configField
protected static java.util.Random random
protected final ICacheManager cacheManager
protected final IThreadContext threadContext
protected final ILockManager lockManager
protected final java.lang.String notificationsLock
protected static final int FETCH_MAX
public NotificationConnectionManager(IThreadContext threadContext, IDBInterface database) throws ManifoldCFException
threadContext
- is the thread context.ManifoldCFException
public void install() throws ManifoldCFException
install
in interface INotificationConnectionManager
ManifoldCFException
public void deinstall() throws ManifoldCFException
deinstall
in interface INotificationConnectionManager
ManifoldCFException
public void exportConfiguration(java.io.OutputStream os) throws java.io.IOException, ManifoldCFException
exportConfiguration
in interface INotificationConnectionManager
java.io.IOException
ManifoldCFException
public void importConfiguration(java.io.InputStream is) throws java.io.IOException, ManifoldCFException
importConfiguration
in interface INotificationConnectionManager
java.io.IOException
ManifoldCFException
public INotificationConnection[] getAllConnections() throws ManifoldCFException
getAllConnections
in interface INotificationConnectionManager
ManifoldCFException
public INotificationConnection load(java.lang.String name) throws ManifoldCFException
load
in interface INotificationConnectionManager
name
- is the name of the notification connection.ManifoldCFException
public INotificationConnection[] loadMultiple(java.lang.String[] names) throws ManifoldCFException
loadMultiple
in interface INotificationConnectionManager
names
- are the names to load.ManifoldCFException
protected int loadMultipleInternal(INotificationConnection[] rval, int outputIndex, java.lang.String[] fetchNames, int inputIndex, int length) throws ManifoldCFException
ManifoldCFException
public INotificationConnection create() throws ManifoldCFException
create
in interface INotificationConnectionManager
ManifoldCFException
public boolean save(INotificationConnection object) throws ManifoldCFException
save
in interface INotificationConnectionManager
object
- is the object to save.ManifoldCFException
public void delete(java.lang.String name) throws ManifoldCFException
delete
in interface INotificationConnectionManager
name
- is the name of the connection to delete. If the
name does not exist, no error is returned.ManifoldCFException
public java.lang.String[] findConnectionsForConnector(java.lang.String className) throws ManifoldCFException
findConnectionsForConnector
in interface INotificationConnectionManager
className
- is the class name of the connector.ManifoldCFException
public boolean checkConnectorExists(java.lang.String name) throws ManifoldCFException
checkConnectorExists
in interface INotificationConnectionManager
name
- is the name of the connection to check.ManifoldCFException
public java.lang.String getConnectionNameColumn()
getConnectionNameColumn
in interface INotificationConnectionManager
protected static java.lang.String getNotificationConnectionsKey()
protected static java.lang.String getNotificationConnectionKey(java.lang.String connectionName)
connectionName
- is the name of the connector.protected NotificationConnection[] getNotificationConnectionsMultiple(java.lang.String[] connectionNames) throws ManifoldCFException
connectionNames
- are a list of connection names.ManifoldCFException
protected int maxClauseGetNotificationConnectionsChunk()
protected void getNotificationConnectionsChunk(NotificationConnection[] rval, java.util.Map returnIndex, java.util.ArrayList params) throws ManifoldCFException
rval
- is the place to put the read policies.returnIndex
- is a map from the object id (resource id) and the rval index.params
- is the set of parameters.ManifoldCFException