Class JDBCVirtualHostNodeImpl
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.virtualhostnode.AbstractVirtualHostNode<X>
-
- org.apache.qpid.server.virtualhostnode.AbstractStandardVirtualHostNode<JDBCVirtualHostNodeImpl>
-
- org.apache.qpid.server.virtualhostnode.jdbc.JDBCVirtualHostNodeImpl
-
- All Implemented Interfaces:
org.apache.qpid.server.logging.EventLoggerProvider,org.apache.qpid.server.model.ConfiguredObject<JDBCVirtualHostNodeImpl>,org.apache.qpid.server.model.ContextProvider,org.apache.qpid.server.model.PermissionedObject,org.apache.qpid.server.model.TaskExecutorProvider,org.apache.qpid.server.model.VirtualHostNode<JDBCVirtualHostNodeImpl>,JDBCContainer,JDBCSettings,org.apache.qpid.server.store.preferences.PreferencesRoot,org.apache.qpid.server.store.preferences.PreferenceStoreProvider,org.apache.qpid.server.store.Settings,JDBCVirtualHostNode<JDBCVirtualHostNodeImpl>
public class JDBCVirtualHostNodeImpl extends org.apache.qpid.server.virtualhostnode.AbstractStandardVirtualHostNode<JDBCVirtualHostNodeImpl> implements JDBCVirtualHostNode<JDBCVirtualHostNodeImpl>, 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_NODE_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.virtualhostnode.jdbc.JDBCVirtualHostNode
DEFAULT_JDBC_VIRTUALHOSTNODE_TABLE_NAME_PREFIX
-
-
Constructor Summary
Constructors Constructor Description JDBCVirtualHostNodeImpl(java.util.Map<java.lang.String,java.lang.Object> attributes, org.apache.qpid.server.model.Broker<?> parent)
-
Method Summary
All Methods Static 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.DurableConfigurationStorecreateConfigurationStore()java.sql.ConnectiongetConnection()java.lang.StringgetConnectionPoolType()java.lang.StringgetConnectionUrl()JDBCDetailsgetJDBCDetails()java.lang.StringgetPassword()org.apache.qpid.server.store.preferences.PreferenceStoregetPreferenceStore()static java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>getSupportedChildTypes()java.lang.StringgetTableNamePrefix()java.lang.StringgetUsername()voidremoveDeleteAction(org.apache.qpid.server.util.Action<java.sql.Connection> action)java.lang.StringtoString()protected voidwriteLocationEventLog()-
Methods inherited from class org.apache.qpid.server.virtualhostnode.AbstractStandardVirtualHostNode
activate, enrichInitialVirtualHostRootRecord, getRemoteReplicationNodes, getVirtualHost, onDelete, validateOnCreate
-
Methods inherited from class org.apache.qpid.server.virtualhostnode.AbstractVirtualHostNode
closeVirtualHostIfExists, createPreferenceStore, doActivate, doStop, getBroker, getChildExecutor, getConfigurationStore, getConfigurationStoreLogSubject, getEventLogger, getInitialConfigReader, getInitialRecords, getLifetimePolicy, getPreferenceStoreAttributes, getSupportedVirtualHostTypes, getVirtualHostInitialConfiguration, isDefaultVirtualHostNode, onClose, onCloseOrDelete, onCreate, onExceptionInOpen, onOpen, postResolve, startQuiesced, stopAndSetStateTo, validateChange
-
Methods inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
addChangeListener, addChildAsync, addFutureCallback, applyToChildren, asObjectRecord, attainState, attributesAsString, attributeSet, authorise, authorise, authorise, authoriseCreateChild, awaitChildClassToAttainState, awaitChildClassToAttainState, beforeClose, beforeDelete, changeAttributes, 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, getAccessControl, getActualAttributes, getAncestor, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getSubjectWithAddedSystemRights, getSystemPrincipal, getSystemTaskControllerContext, getSystemTaskSubject, getSystemTaskSubject, getTaskExecutor, getType, getTypeClass, getUserPreferences, handleExceptionOnOpen, hasEncrypter, isDurable, isSystemProcess, isSystemSubject, logCreated, logDeleted, logOperation, logRecovered, logUpdated, managesChildStorage, newToken, notifyStateChanged, onResolve, onValidate, open, openAsync, postResolveChildren, postSetAttributes, registerWithParents, removeChangeListener, removeContextVariable, rethrowRuntimeExceptionsOnOpen, runTask, setAttributes, setAttributesAsync, setContextVariable, setEncrypter, setState, setUserPreferences, start, startAsync, stop, updateModel, validateChildDelete
-
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.virtualhostnode.jdbc.JDBCVirtualHostNode
getPreferenceStoreAttributes
-
-
-
-
Field Detail
-
VIRTUAL_HOST_NODE_TYPE
public static final java.lang.String VIRTUAL_HOST_NODE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeLocationEventLog
protected void writeLocationEventLog()
- Specified by:
writeLocationEventLogin classorg.apache.qpid.server.virtualhostnode.AbstractStandardVirtualHostNode<JDBCVirtualHostNodeImpl>
-
createConfigurationStore
protected org.apache.qpid.server.store.DurableConfigurationStore createConfigurationStore()
- Specified by:
createConfigurationStorein classorg.apache.qpid.server.virtualhostnode.AbstractVirtualHostNode<JDBCVirtualHostNodeImpl>
-
getConnectionUrl
public java.lang.String getConnectionUrl()
- Specified by:
getConnectionUrlin interfaceJDBCSettings- Specified by:
getConnectionUrlin interfaceJDBCVirtualHostNode<JDBCVirtualHostNodeImpl>
-
getConnectionPoolType
public java.lang.String getConnectionPoolType()
- Specified by:
getConnectionPoolTypein interfaceJDBCSettings- Specified by:
getConnectionPoolTypein interfaceJDBCVirtualHostNode<JDBCVirtualHostNodeImpl>
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsernamein interfaceJDBCSettings- Specified by:
getUsernamein interfaceJDBCVirtualHostNode<JDBCVirtualHostNodeImpl>
-
getPassword
public java.lang.String getPassword()
- Specified by:
getPasswordin interfaceJDBCSettings- Specified by:
getPasswordin interfaceJDBCVirtualHostNode<JDBCVirtualHostNodeImpl>
-
getTableNamePrefix
public java.lang.String getTableNamePrefix()
- Specified by:
getTableNamePrefixin interfaceJDBCContainer- Specified by:
getTableNamePrefixin interfaceJDBCSettings- Specified by:
getTableNamePrefixin interfaceJDBCVirtualHostNode<JDBCVirtualHostNodeImpl>
-
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.virtualhostnode.AbstractStandardVirtualHostNode<JDBCVirtualHostNodeImpl>
-
getSupportedChildTypes
public static java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getSupportedChildTypes()
-
getPreferenceStore
public org.apache.qpid.server.store.preferences.PreferenceStore getPreferenceStore()
- Specified by:
getPreferenceStorein interfaceorg.apache.qpid.server.store.preferences.PreferenceStoreProvider
-
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
-
-