Class DerbyVirtualHostImpl
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.virtualhost.AbstractVirtualHost<DerbyVirtualHostImpl>
-
- org.apache.qpid.server.virtualhost.derby.DerbyVirtualHostImpl
-
- All Implemented Interfaces:
org.apache.qpid.server.logging.EventLoggerProvider,ConfiguredObject<DerbyVirtualHostImpl>,ContextProvider,Named,NamedAddressSpace,PermissionedObject,TaskExecutorProvider,VirtualHost<DerbyVirtualHostImpl>,org.apache.qpid.server.stats.StatisticsGatherer,org.apache.qpid.server.store.EventListener,org.apache.qpid.server.store.FileBasedSettings,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>, JDBCContainer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
AbstractConfiguredObject.CallableWithArgument<V extends Object,A extends Object>, AbstractConfiguredObject.ChainedListenableFuture<V extends Object>, AbstractConfiguredObject.ChainedSettableFuture<V extends Object>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameException
-
-
Field Summary
Fields Modifier and Type Field Description static 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.virtualhost.derby.DerbyVirtualHost
STORE_PATH
-
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(Map<String,Object> attributes, VirtualHostNode<?> virtualHostNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDeleteAction(org.apache.qpid.server.util.Action<Connection> action)protected org.apache.qpid.server.store.MessageStorecreateMessageStore()ConnectiongetConnection()JDBCDetailsgetJDBCDetails()LonggetStoreOverfullSize()StringgetStorePath()LonggetStoreUnderfullSize()StringgetTableNamePrefix()voidremoveDeleteAction(org.apache.qpid.server.util.Action<Connection> action)protected voidvalidateMessageStoreCreation()-
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.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
-
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 String VIRTUAL_HOST_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DerbyVirtualHostImpl
public DerbyVirtualHostImpl(Map<String,Object> attributes, VirtualHostNode<?> virtualHostNode)
-
-
Method Detail
-
createMessageStore
protected org.apache.qpid.server.store.MessageStore createMessageStore()
- Specified by:
createMessageStorein classorg.apache.qpid.server.virtualhost.AbstractVirtualHost<DerbyVirtualHostImpl>
-
getStorePath
public String getStorePath()
- Specified by:
getStorePathin interfaceDerbyVirtualHost<DerbyVirtualHostImpl>- Specified by:
getStorePathin interfaceorg.apache.qpid.server.store.FileBasedSettings
-
getStoreUnderfullSize
public Long getStoreUnderfullSize()
- Specified by:
getStoreUnderfullSizein interfaceDerbyVirtualHost<DerbyVirtualHostImpl>- Specified by:
getStoreUnderfullSizein interfaceorg.apache.qpid.server.store.SizeMonitoringSettings
-
getStoreOverfullSize
public Long getStoreOverfullSize()
- Specified by:
getStoreOverfullSizein interfaceDerbyVirtualHost<DerbyVirtualHostImpl>- Specified by:
getStoreOverfullSizein interfaceorg.apache.qpid.server.store.SizeMonitoringSettings
-
validateMessageStoreCreation
protected void validateMessageStoreCreation()
- Overrides:
validateMessageStoreCreationin classorg.apache.qpid.server.virtualhost.AbstractVirtualHost<DerbyVirtualHostImpl>
-
getJDBCDetails
public JDBCDetails getJDBCDetails()
- Specified by:
getJDBCDetailsin interfaceJDBCContainer
-
getConnection
public Connection getConnection()
- Specified by:
getConnectionin interfaceJDBCContainer
-
getTableNamePrefix
public String getTableNamePrefix()
- Specified by:
getTableNamePrefixin interfaceJDBCContainer
-
addDeleteAction
public void addDeleteAction(org.apache.qpid.server.util.Action<Connection> action)
- Specified by:
addDeleteActionin interfaceJDBCContainer
-
removeDeleteAction
public void removeDeleteAction(org.apache.qpid.server.util.Action<Connection> action)
- Specified by:
removeDeleteActionin interfaceJDBCContainer
-
-