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 String |
_rcsid |
protected ICacheManager |
cacheManager |
protected static String |
classNameField |
protected static String |
configField |
protected static String |
descriptionField |
protected static int |
FETCH_MAX |
protected ILockManager |
lockManager |
protected static String |
maxCountField |
protected static String |
nameField |
protected String |
notificationsLock |
protected static Random |
random |
protected IThreadContext |
threadContext |
dbInterface, tableName| Constructor and Description |
|---|
NotificationConnectionManager(IThreadContext threadContext,
IDBInterface database)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkConnectorExists(String name)
Check if underlying connector exists.
|
INotificationConnection |
create()
Create a new notification connection object.
|
void |
deinstall()
Uninstall the manager.
|
void |
delete(String name)
Delete a notification connection.
|
void |
exportConfiguration(OutputStream os)
Export configuration
|
String[] |
findConnectionsForConnector(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.
|
String |
getConnectionNameColumn()
Return the name column.
|
protected static String |
getNotificationConnectionKey(String connectionName)
Construct a key which represents an individual notification connection.
|
protected void |
getNotificationConnectionsChunk(NotificationConnection[] rval,
Map returnIndex,
ArrayList params)
Read a chunk of notification connections.
|
protected static String |
getNotificationConnectionsKey()
Construct a key which represents the general list of notification connectors.
|
protected NotificationConnection[] |
getNotificationConnectionsMultiple(String[] connectionNames)
Fetch multiple notification connections at a single time.
|
void |
importConfiguration(InputStream is)
Import configuration
|
void |
install()
Install the manager.
|
INotificationConnection |
load(String name)
Load a notification connection by name.
|
INotificationConnection[] |
loadMultiple(String[] names)
Load multiple notification connections by name.
|
protected int |
loadMultipleInternal(INotificationConnection[] rval,
int outputIndex,
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, sleepForclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTableNamepublic static final String _rcsid
protected static final String nameField
protected static final String descriptionField
protected static final String classNameField
protected static final String maxCountField
protected static final String configField
protected static Random random
protected final ICacheManager cacheManager
protected final IThreadContext threadContext
protected final ILockManager lockManager
protected final String notificationsLock
protected static final int FETCH_MAX
public NotificationConnectionManager(IThreadContext threadContext, IDBInterface database) throws ManifoldCFException
threadContext - is the thread context.ManifoldCFExceptionpublic void install()
throws ManifoldCFException
install in interface INotificationConnectionManagerManifoldCFExceptionpublic void deinstall()
throws ManifoldCFException
deinstall in interface INotificationConnectionManagerManifoldCFExceptionpublic void exportConfiguration(OutputStream os) throws IOException, ManifoldCFException
exportConfiguration in interface INotificationConnectionManagerIOExceptionManifoldCFExceptionpublic void importConfiguration(InputStream is) throws IOException, ManifoldCFException
importConfiguration in interface INotificationConnectionManagerIOExceptionManifoldCFExceptionpublic INotificationConnection[] getAllConnections() throws ManifoldCFException
getAllConnections in interface INotificationConnectionManagerManifoldCFExceptionpublic INotificationConnection load(String name) throws ManifoldCFException
load in interface INotificationConnectionManagername - is the name of the notification connection.ManifoldCFExceptionpublic INotificationConnection[] loadMultiple(String[] names) throws ManifoldCFException
loadMultiple in interface INotificationConnectionManagernames - are the names to load.ManifoldCFExceptionprotected int loadMultipleInternal(INotificationConnection[] rval, int outputIndex, String[] fetchNames, int inputIndex, int length) throws ManifoldCFException
ManifoldCFExceptionpublic INotificationConnection create() throws ManifoldCFException
create in interface INotificationConnectionManagerManifoldCFExceptionpublic boolean save(INotificationConnection object) throws ManifoldCFException
save in interface INotificationConnectionManagerobject - is the object to save.ManifoldCFExceptionpublic void delete(String name) throws ManifoldCFException
delete in interface INotificationConnectionManagername - is the name of the connection to delete. If the
name does not exist, no error is returned.ManifoldCFExceptionpublic String[] findConnectionsForConnector(String className) throws ManifoldCFException
findConnectionsForConnector in interface INotificationConnectionManagerclassName - is the class name of the connector.ManifoldCFExceptionpublic boolean checkConnectorExists(String name) throws ManifoldCFException
checkConnectorExists in interface INotificationConnectionManagername - is the name of the connection to check.ManifoldCFExceptionpublic String getConnectionNameColumn()
getConnectionNameColumn in interface INotificationConnectionManagerprotected static String getNotificationConnectionsKey()
protected static String getNotificationConnectionKey(String connectionName)
connectionName - is the name of the connector.protected NotificationConnection[] getNotificationConnectionsMultiple(String[] connectionNames) throws ManifoldCFException
connectionNames - are a list of connection names.ManifoldCFExceptionprotected int maxClauseGetNotificationConnectionsChunk()
protected void getNotificationConnectionsChunk(NotificationConnection[] rval, Map returnIndex, 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