Class JDBCVirtualHostImpl
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.virtualhost.AbstractVirtualHost<JDBCVirtualHostImpl>
-
- org.apache.qpid.server.virtualhost.jdbc.JDBCVirtualHostImpl
-
- All Implemented Interfaces:
org.apache.qpid.server.logging.EventLoggerProvider,org.apache.qpid.server.model.ConfiguredObject<JDBCVirtualHostImpl>,org.apache.qpid.server.model.ContextProvider,org.apache.qpid.server.model.Named,org.apache.qpid.server.model.NamedAddressSpace,org.apache.qpid.server.model.PermissionedObject,org.apache.qpid.server.model.TaskExecutorProvider,org.apache.qpid.server.model.VirtualHost<JDBCVirtualHostImpl>,org.apache.qpid.server.stats.StatisticsGatherer,org.apache.qpid.server.store.EventListener,JDBCContainer,JDBCSettings,org.apache.qpid.server.store.preferences.UserPreferencesCreator,org.apache.qpid.server.store.Settings,org.apache.qpid.server.virtualhost.CacheProvider,JDBCVirtualHost<JDBCVirtualHostImpl>,org.apache.qpid.server.virtualhost.QueueManagingVirtualHost<JDBCVirtualHostImpl>
public class JDBCVirtualHostImpl extends org.apache.qpid.server.virtualhost.AbstractVirtualHost<JDBCVirtualHostImpl> implements JDBCVirtualHost<JDBCVirtualHostImpl>, JDBCContainer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
org.apache.qpid.server.model.AbstractConfiguredObject.CallableWithArgument<V extends java.lang.Object,A extends java.lang.Object>, org.apache.qpid.server.model.AbstractConfiguredObject.ChainedListenableFuture<V extends java.lang.Object>, org.apache.qpid.server.model.AbstractConfiguredObject.ChainedSettableFuture<V extends java.lang.Object>, org.apache.qpid.server.model.AbstractConfiguredObject.DuplicateIdException, org.apache.qpid.server.model.AbstractConfiguredObject.DuplicateNameException
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVIRTUAL_HOST_TYPE-
Fields inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
SECURED_STRING_VALUE
-
Fields inherited from interface org.apache.qpid.server.model.ConfiguredObject
AWAIT_ATTAINMENT_TIMEOUT, CONTEXT, CREATED_BY, CREATED_TIME, DEFAULT_AWAIT_ATTAINMENT_TIMEOUT, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE, TYPE
-
Fields inherited from interface org.apache.qpid.server.store.jdbc.JDBCSettings
CONNECTION_POOL_TYPE, CONNECTION_URL, PASSWORD, TABLE_NAME_PREFIX, USERNAME
-
Fields inherited from interface org.apache.qpid.server.virtualhost.jdbc.JDBCVirtualHost
DEFAULT_JDBC_VIRTUALHOST_TABLE_NAME_PREFIX
-
Fields inherited from interface org.apache.qpid.server.virtualhost.QueueManagingVirtualHost
CONNECTION_THREAD_POOL_KEEP_ALIVE_TIMEOUT, CONNECTION_THREAD_POOL_SIZE, DEFAULT_CONNECTION_THREAD_POOL_KEEP_ALIVE_TIMEOUT, DEFAULT_DISABLED_VALIDATORS, DEFAULT_DISCARD_GLOBAL_SHARED_SUBSCRIPTION_LINKS_ON_DETACH, DEFAULT_ENABLED_VALIDATORS, DEFAULT_FLOW_TO_DISK_CHECK_PERIOD, DEFAULT_HOUSEKEEPING_CHECK_PERIOD, DEFAULT_HOUSEKEEPING_THREAD_COUNT, DEFAULT_NAMED_CACHE_EXPIRATION, DEFAULT_NAMED_CACHE_SIZE, DEFAULT_STATISTICS_REPORTING_PERIOD, DEFAULT_STORE_TRANSACTION_IDLE_TIMEOUT_CLOSE, DEFAULT_STORE_TRANSACTION_IDLE_TIMEOUT_WARN, DEFAULT_STORE_TRANSACTION_OPEN_TIMEOUT_CLOSE, DEFAULT_STORE_TRANSACTION_OPEN_TIMEOUT_WARN, DEFAULT_VIRTUALHOST_CONNECTION_THREAD_POOL_NUMBER_OF_SELECTORS, DEFAULT_VIRTUALHOST_CONNECTION_THREAD_POOL_SIZE, DISABLED_CONNECTION_VALIDATORS, DISCARD_GLOBAL_SHARED_SUBSCRIPTION_LINKS_ON_DETACH, ENABLED_CONNECTION_VALIDATORS, FLOW_TO_DISK_CHECK_PERIOD, GLOBAL_ADDRESS_DOMAINS, HOUSE_KEEPING_THREAD_COUNT, HOUSEKEEPING_CHECK_PERIOD, NAMED_CACHE_EXPIRATION, NAMED_CACHE_EXPIRATION_FORMAT, NAMED_CACHE_MAXIMUM_SIZE, NAMED_CACHE_MAXIMUM_SIZE_FORMAT, NODE_AUTO_CREATION_POLICIES, NUMBER_OF_SELECTORS, STATISTICS_REPORTING_PERIOD, STORE_TRANSACTION_IDLE_TIMEOUT_CLOSE, STORE_TRANSACTION_IDLE_TIMEOUT_WARN, STORE_TRANSACTION_OPEN_TIMEOUT_CLOSE, STORE_TRANSACTION_OPEN_TIMEOUT_WARN, VIRTUALHOST_CONNECTION_THREAD_POOL_NUMBER_OF_SELECTORS, VIRTUALHOST_CONNECTION_THREAD_POOL_SIZE, VIRTUALHOST_STATISTICS_REPORING_PERIOD
-
-
Constructor Summary
Constructors Constructor Description JDBCVirtualHostImpl(java.util.Map<java.lang.String,java.lang.Object> attributes, org.apache.qpid.server.model.VirtualHostNode<?> virtualHostNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDeleteAction(org.apache.qpid.server.util.Action<java.sql.Connection> action)protected org.apache.qpid.server.store.MessageStorecreateMessageStore()java.sql.ConnectiongetConnection()java.lang.StringgetConnectionPoolType()java.lang.StringgetConnectionUrl()JDBCDetailsgetJDBCDetails()java.lang.StringgetPassword()java.lang.StringgetTableNamePrefix()java.lang.StringgetUsername()voidremoveDeleteAction(org.apache.qpid.server.util.Action<java.sql.Connection> action)java.lang.StringtoString()-
Methods inherited from class org.apache.qpid.server.virtualhost.AbstractVirtualHost
addChildAsync, authoriseCreateConnection, beforeClose, beforeDelete, changeAttributes, clearMatchingQueues, clearQueues, createMessageDestination, createMessageSource, createUserPreferences, deregisterConnection, doStop, dumpLinkRegistry, event, executeTask, executeTransaction, exportMessageStore, extractConfig, findSendingLinks, getAccessControl, getAttainedChildFromAddress, getAttainedMessageDestination, getAttainedMessageSource, getAttainedQueue, getAttainedQueue, getBroker, getBytesEvacuatedFromMemory, getBytesIn, getBytesOut, getConnection, getConnectionCount, getConnectionMetaData, getConnections, getConnectionThreadPoolSize, getDefaultDestination, getDisabledConnectionValidators, getDtxRegistry, getDurableConfigurationStore, getEnabledConnectionValidators, getEventLogger, getExchangeCount, getFlowToDiskCheckPeriod, getGlobalAddressDomains, getHousekeepingCheckPeriod, getHousekeepingThreadCount, getInboundMessageSizeHighWatermark, getInMemoryMessageSize, getInMemoryMessageThreshold, getLocalAddress, getMessagesIn, getMessagesOut, getMessageStore, getMessageStoreLogSubject, getModelVersion, getNamedCache, getNodeAutoCreationPolicies, getNumberOfSelectors, getPrincipal, getProductVersion, getQueueCount, getReceivingLink, getRedirectHost, getSendingLink, getStatisticsReportingPeriod, getStoreTransactionIdleTimeoutClose, getStoreTransactionIdleTimeoutWarn, getStoreTransactionOpenTimeoutClose, getStoreTransactionOpenTimeoutWarn, getSubscriptionQueue, getSystemDestination, getTargetSize, getTotalConnectionCount, getTotalDepthOfQueuesBytes, getTotalDepthOfQueuesMessages, getTransactedMessagesIn, getTransactedMessagesOut, hasMessageSources, importMessageStore, isActive, isDiscardGlobalSharedSubscriptionLinksOnDetach, isOverTargetSize, logCreated, logDeleted, logOperation, logRecovered, logUpdated, onClose, onCreate, onDelete, onExceptionInOpen, onOpen, onValidate, postResolveChildren, publishMessage, purgeLinkRegistry, reallocateMessages, registerConnection, registerMessageDelivered, registerMessageReceived, registerTransactedMessageDelivered, registerTransactedMessageReceived, removeSubscriptionQueue, resetStatistics, scheduleHouseKeepingTask, scheduleTask, setFirstOpening, setTargetSize, startFileSystemSpaceChecking, validateChange, validateMessageStoreCreation, visitSendingLinks
-
Methods inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
addChangeListener, addFutureCallback, applyToChildren, asObjectRecord, attainState, attributesAsString, attributeSet, authorise, authorise, authorise, authoriseCreateChild, awaitChildClassToAttainState, awaitChildClassToAttainState, childAdded, childRemoved, close, closeAsync, closeChildren, create, createAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, deleteChildren, deleteNoChecks, doAfter, doAfter, doAfter, doAfter, doAfter, doAfter, doAfterAlways, doAfterAlways, doCreation, doOnConfigThread, doOpening, doResolution, doSync, doSync, doValidation, findConfiguredObject, forceUpdateAllSecureAttributes, getActualAttributes, getAncestor, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getSubjectWithAddedSystemRights, getSystemPrincipal, getSystemTaskControllerContext, getSystemTaskSubject, getSystemTaskSubject, getTaskExecutor, getType, getTypeClass, getUserPreferences, handleExceptionOnOpen, hasEncrypter, isDurable, isSystemProcess, isSystemSubject, managesChildStorage, newToken, notifyStateChanged, onResolve, open, openAsync, postResolve, postSetAttributes, registerWithParents, removeChangeListener, removeContextVariable, rethrowRuntimeExceptionsOnOpen, runTask, setAttributes, setAttributesAsync, setContextVariable, setEncrypter, setState, setUserPreferences, start, startAsync, stop, updateModel, validateChildDelete, validateOnCreate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.model.ConfiguredObject
addChangeListener, asObjectRecord, authorise, authorise, authorise, close, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getType, getTypeClass, getUserPreferences, hasEncrypter, isDurable, managesChildStorage, newToken, open, openAsync, removeChangeListener, removeContextVariable, setAttributes, setAttributesAsync, setContextVariable, setUserPreferences
-
Methods inherited from interface org.apache.qpid.server.model.ContextProvider
getContextKeys, getContextValue, getContextValue
-
Methods inherited from interface org.apache.qpid.server.model.NamedAddressSpace
authoriseCreateConnection, createMessageDestination, createMessageSource, deregisterConnection, findSendingLinks, getAttainedMessageDestination, getAttainedMessageSource, getDefaultDestination, getDtxRegistry, getId, getLocalAddress, getMessageStore, getPrincipal, getReceivingLink, getRedirectHost, getSendingLink, hasMessageSources, isActive, registerConnection, visitSendingLinks
-
Methods inherited from interface org.apache.qpid.server.virtualhost.QueueManagingVirtualHost
clearMatchingQueues, clearQueues, dumpLinkRegistry, executeTask, executeTransaction, exportMessageStore, extractConfig, getAttainedChildFromAddress, getAttainedQueue, getAttainedQueue, getBroker, getBytesEvacuatedFromMemory, getBytesIn, getBytesOut, getConnection, getConnectionCount, getConnectionMetaData, getConnections, getConnectionThreadPoolSize, getDisabledConnectionValidators, getDurableConfigurationStore, getEnabledConnectionValidators, getExchangeCount, getFlowToDiskCheckPeriod, getGlobalAddressDomains, getHousekeepingCheckPeriod, getHousekeepingThreadCount, getInboundMessageSizeHighWatermark, getInMemoryMessageSize, getInMemoryMessageThreshold, getMessagesIn, getMessagesOut, getNodeAutoCreationPolicies, getNumberOfSelectors, getQueueCount, getStatisticsReportingPeriod, getStoreTransactionIdleTimeoutClose, getStoreTransactionIdleTimeoutWarn, getStoreTransactionOpenTimeoutClose, getStoreTransactionOpenTimeoutWarn, getSubscriptionQueue, getSystemDestination, getTargetSize, getTotalConnectionCount, getTotalDepthOfQueuesBytes, getTotalDepthOfQueuesMessages, getTransactedMessagesIn, getTransactedMessagesOut, importMessageStore, isDiscardGlobalSharedSubscriptionLinksOnDetach, isOverTargetSize, publishMessage, purgeLinkRegistry, reallocateMessages, removeSubscriptionQueue, resetStatistics, scheduleHouseKeepingTask, scheduleTask, setFirstOpening, setTargetSize
-
Methods inherited from interface org.apache.qpid.server.stats.StatisticsGatherer
registerMessageDelivered, registerMessageReceived, registerTransactedMessageDelivered, registerTransactedMessageReceived
-
-
-
-
Field Detail
-
VIRTUAL_HOST_TYPE
public static final java.lang.String VIRTUAL_HOST_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createMessageStore
protected org.apache.qpid.server.store.MessageStore createMessageStore()
- Specified by:
createMessageStorein classorg.apache.qpid.server.virtualhost.AbstractVirtualHost<JDBCVirtualHostImpl>
-
getConnectionUrl
public java.lang.String getConnectionUrl()
- Specified by:
getConnectionUrlin interfaceJDBCSettings- Specified by:
getConnectionUrlin interfaceJDBCVirtualHost<JDBCVirtualHostImpl>
-
getConnectionPoolType
public java.lang.String getConnectionPoolType()
- Specified by:
getConnectionPoolTypein interfaceJDBCSettings- Specified by:
getConnectionPoolTypein interfaceJDBCVirtualHost<JDBCVirtualHostImpl>
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsernamein interfaceJDBCSettings- Specified by:
getUsernamein interfaceJDBCVirtualHost<JDBCVirtualHostImpl>
-
getPassword
public java.lang.String getPassword()
- Specified by:
getPasswordin interfaceJDBCSettings- Specified by:
getPasswordin interfaceJDBCVirtualHost<JDBCVirtualHostImpl>
-
getTableNamePrefix
public java.lang.String getTableNamePrefix()
- Specified by:
getTableNamePrefixin interfaceJDBCContainer- Specified by:
getTableNamePrefixin interfaceJDBCSettings- Specified by:
getTableNamePrefixin interfaceJDBCVirtualHost<JDBCVirtualHostImpl>
-
getJDBCDetails
public JDBCDetails getJDBCDetails()
- Specified by:
getJDBCDetailsin interfaceJDBCContainer
-
getConnection
public java.sql.Connection getConnection()
- Specified by:
getConnectionin interfaceJDBCContainer
-
toString
public java.lang.String toString()
- Overrides:
toStringin classorg.apache.qpid.server.model.AbstractConfiguredObject<JDBCVirtualHostImpl>
-
addDeleteAction
public void addDeleteAction(org.apache.qpid.server.util.Action<java.sql.Connection> action)
- Specified by:
addDeleteActionin interfaceJDBCContainer
-
removeDeleteAction
public void removeDeleteAction(org.apache.qpid.server.util.Action<java.sql.Connection> action)
- Specified by:
removeDeleteActionin interfaceJDBCContainer
-
-