Class DerbyVirtualHostImpl

  • All Implemented Interfaces:
    org.apache.qpid.server.logging.EventLoggerProvider, org.apache.qpid.server.model.ConfiguredObject<DerbyVirtualHostImpl>, 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<DerbyVirtualHostImpl>, org.apache.qpid.server.stats.StatisticsGatherer, org.apache.qpid.server.store.EventListener, org.apache.qpid.server.store.FileBasedSettings, org.apache.qpid.server.store.jdbc.JDBCContainer, org.apache.qpid.server.store.preferences.UserPreferencesCreator, org.apache.qpid.server.store.Settings, org.apache.qpid.server.store.SizeMonitoringSettings, org.apache.qpid.server.virtualhost.CacheProvider, DerbyVirtualHost<DerbyVirtualHostImpl>, org.apache.qpid.server.virtualhost.QueueManagingVirtualHost<DerbyVirtualHostImpl>

    public class DerbyVirtualHostImpl
    extends org.apache.qpid.server.virtualhost.AbstractVirtualHost<DerbyVirtualHostImpl>
    implements DerbyVirtualHost<DerbyVirtualHostImpl>, org.apache.qpid.server.store.jdbc.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
      • Nested classes/interfaces inherited from interface org.apache.qpid.server.virtualhost.QueueManagingVirtualHost

        org.apache.qpid.server.virtualhost.QueueManagingVirtualHost.Transaction, org.apache.qpid.server.virtualhost.QueueManagingVirtualHost.TransactionalOperation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String VIRTUAL_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.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
      • Fields inherited from interface org.apache.qpid.server.model.VirtualHost

        CLASS_DESCRIPTION, MODEL_VERSION, PREFERENCE_STORE_ATTRIBUTES, VIRTUALHOST_WORK_DIR, VIRTUALHOST_WORK_DIR_VAR, VIRTUALHOST_WORK_DIR_VAR_EXPRESSION
    • Constructor Summary

      Constructors 
      Constructor Description
      DerbyVirtualHostImpl​(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
      void addDeleteAction​(org.apache.qpid.server.util.Action<java.sql.Connection> action)  
      protected org.apache.qpid.server.store.MessageStore createMessageStore()  
      java.sql.Connection getConnection()  
      org.apache.qpid.server.store.jdbc.JDBCDetails getJDBCDetails()  
      java.lang.Long getStoreOverfullSize()  
      java.lang.String getStorePath()  
      java.lang.Long getStoreUnderfullSize()  
      java.lang.String getTableNamePrefix()  
      void removeDeleteAction​(org.apache.qpid.server.util.Action<java.sql.Connection> action)  
      protected void validateMessageStoreCreation()  
      • 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, 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, toString, 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.virtualhost.CacheProvider

        getNamedCache
      • 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.store.EventListener

        event
      • Methods inherited from interface org.apache.qpid.server.logging.EventLoggerProvider

        getEventLogger
      • Methods inherited from interface org.apache.qpid.server.model.Named

        getName
      • 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
      • Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider

        getTaskExecutor
      • Methods inherited from interface org.apache.qpid.server.store.preferences.UserPreferencesCreator

        createUserPreferences
      • Methods inherited from interface org.apache.qpid.server.model.VirtualHost

        getModelVersion, getProductVersion
    • Field Detail

      • VIRTUAL_HOST_TYPE

        public static final java.lang.String VIRTUAL_HOST_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • DerbyVirtualHostImpl

        public DerbyVirtualHostImpl​(java.util.Map<java.lang.String,​java.lang.Object> attributes,
                                    org.apache.qpid.server.model.VirtualHostNode<?> virtualHostNode)
    • Method Detail

      • createMessageStore

        protected org.apache.qpid.server.store.MessageStore createMessageStore()
        Specified by:
        createMessageStore in class org.apache.qpid.server.virtualhost.AbstractVirtualHost<DerbyVirtualHostImpl>
      • validateMessageStoreCreation

        protected void validateMessageStoreCreation()
        Overrides:
        validateMessageStoreCreation in class org.apache.qpid.server.virtualhost.AbstractVirtualHost<DerbyVirtualHostImpl>
      • getJDBCDetails

        public org.apache.qpid.server.store.jdbc.JDBCDetails getJDBCDetails()
        Specified by:
        getJDBCDetails in interface org.apache.qpid.server.store.jdbc.JDBCContainer
      • getConnection

        public java.sql.Connection getConnection()
        Specified by:
        getConnection in interface org.apache.qpid.server.store.jdbc.JDBCContainer
      • getTableNamePrefix

        public java.lang.String getTableNamePrefix()
        Specified by:
        getTableNamePrefix in interface org.apache.qpid.server.store.jdbc.JDBCContainer
      • addDeleteAction

        public void addDeleteAction​(org.apache.qpid.server.util.Action<java.sql.Connection> action)
        Specified by:
        addDeleteAction in interface org.apache.qpid.server.store.jdbc.JDBCContainer
      • removeDeleteAction

        public void removeDeleteAction​(org.apache.qpid.server.util.Action<java.sql.Connection> action)
        Specified by:
        removeDeleteAction in interface org.apache.qpid.server.store.jdbc.JDBCContainer