Package org.apache.qpid.server.model
Interface ConfiguredObject<X extends ConfiguredObject<X>>
-
- All Superinterfaces:
ContextProvider
,PermissionedObject
,TaskExecutorProvider
- All Known Subinterfaces:
AccessControlProvider<X>
,AllowAllAccessControlProvider<X>
,AMQPConnection<C>
,AmqpPort<X>
,AMQPSession<S,X>
,AuthenticationMethod
,AuthenticationProvider<X>
,AutoGeneratedSelfSignedKeyStore<X>
,Broker<X>
,BrokerConnectionLimitProvider<X>
,BrokerLogger<X>
,BrokerLogInclusionRule<X>
,CachingAuthenticationProvider<X>
,CaseAwareGroupProvider<X>
,CloudFoundryDashboardManagementGroupProvider<X>
,CompositeUsernamePasswordAuthenticationManager<T>
,Connection<X>
,ConnectionLimitProvider<X>
,Consumer<X,T>
,Container<C>
,DefaultVirtualHostAlias<X>
,DirectExchange<X>
,Exchange<X>
,ExternalAuthenticationManager<T>
,ExternalFileBasedAuthenticationManager<X>
,FanoutExchange<X>
,FileBasedGroupProvider<X>
,FileKeyStore<X>
,FileTrustStore<X>
,FixedVirtualHostNodeAlias<X>
,Group<X>
,GroupMember<X>
,GroupProvider<X>
,HeadersExchange<X>
,HostNameAlias<X>
,HttpPort<X>
,JsonSystemConfig<X>
,JsonVirtualHostNode<X>
,KeyStore<X>
,LastValueQueue<X>
,ManagedPeerCertificateTrustStore<X>
,MemorySystemConfig<X>
,NonJavaKeyStore<X>
,NonJavaTrustStore<X>
,NonStandardVirtualHost<X>
,OAuth2AuthenticationProvider<T>
,PasswordCredentialManagingAuthenticationProvider<X>
,PatternMatchingAlias<X>
,Plugin<X>
,Port<X>
,PriorityQueue<X>
,Producer<X>
,ProvidedStoreVirtualHost<X>
,Queue<X>
,QueueConsumer<X,T>
,QueueManagingVirtualHost<X>
,RedirectingVirtualHost<X>
,RedirectingVirtualHostNode<X>
,RemoteReplicationNode<X>
,Session<X>
,SimpleLDAPAuthenticationManager<X>
,SiteSpecificTrustStore<X>
,SortedQueue<X>
,StandardQueue<X>
,SystemAddressSpaceAlias<X>
,SystemConfig<X>
,TopicExchange<X>
,TrustStore<X>
,User<X>
,UsernamePasswordAuthenticationProvider<X>
,VirtualHost<X>
,VirtualHostAccessControlProvider<X>
,VirtualHostAlias<X>
,VirtualHostConnectionLimitProvider<X>
,VirtualHostLogger<X>
,VirtualHostLogInclusionRule<X>
,VirtualHostNameAlias<X>
,VirtualHostNode<X>
- All Known Implementing Classes:
AbstractAccessControlProvider
,AbstractAMQPConnection
,AbstractAMQPSession
,AbstractAuthenticationManager
,AbstractCaseAwareGroupProvider
,AbstractConfiguredObject
,AbstractContainer
,AbstractExchange
,AbstractKeyStore
,AbstractNonConnectionAcceptingVirtualHost
,AbstractPluginAdapter
,AbstractPort
,AbstractQueue
,AbstractScramAuthenticationManager
,AbstractStandardVirtualHostNode
,AbstractSystemConfig
,AbstractTrustStore
,AbstractVirtualHost
,AbstractVirtualHostNode
,AllowAllAccessControlProviderImpl
,AmqpPortImpl
,AnonymousAuthenticationManager
,AutoGeneratedSelfSignedKeyStoreImpl
,Base64MD5PasswordDatabaseAuthenticationManager
,BrokerImpl
,CloudFoundryDashboardManagementGroupProviderImpl
,CompositeUsernamePasswordAuthenticationManagerImpl
,ConfigModelPasswordManagingAuthenticationProvider
,DefaultVirtualHostAliasImpl
,DirectExchangeImpl
,ExternalAuthenticationManagerImpl
,FileBasedGroupProviderImpl
,FileKeyStoreImpl
,FileTrustStoreImpl
,GroupImpl
,GroupMemberImpl
,GroupProviderImpl
,HeadersExchangeImpl
,HostNameAliasImpl
,HttpPortImpl
,JsonSystemConfigImpl
,JsonVirtualHostNodeImpl
,KerberosAuthenticationManager
,LastValueQueueImpl
,ManagedPeerCertificateTrustStoreImpl
,MD5AuthenticationProvider
,NonJavaKeyStoreImpl
,NonJavaTrustStoreImpl
,OAuth2AuthenticationProviderImpl
,OutOfOrderQueue
,PatternMatchingAliasImpl
,PlainAuthenticationProvider
,PlainPasswordDatabaseAuthenticationManager
,PrincipalDatabaseAuthenticationManager
,PriorityQueueImpl
,ProducerImpl
,ProvidedStoreVirtualHostImpl
,RedirectingVirtualHostNodeImpl
,ScramSHA1AuthenticationManager
,ScramSHA256AuthenticationManager
,SimpleAuthenticationManager
,SimpleLDAPAuthenticationManagerImpl
,SiteSpecificTrustStoreImpl
,SortedQueueImpl
,StandardQueueImpl
,SystemAddressSpaceAliasImpl
,VirtualHostNameAliasImpl
public interface ConfiguredObject<X extends ConfiguredObject<X>> extends ContextProvider, TaskExecutorProvider, PermissionedObject
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AWAIT_ATTAINMENT_TIMEOUT
static java.lang.String
CONTEXT
static java.lang.String
CREATED_BY
static java.lang.String
CREATED_TIME
static int
DEFAULT_AWAIT_ATTAINMENT_TIMEOUT
static java.lang.String
DESCRIPTION
static java.lang.String
DESIRED_STATE
static java.lang.String
DURABLE
static java.lang.String
ID
static java.lang.String
LAST_UPDATED_BY
static java.lang.String
LAST_UPDATED_TIME
static java.lang.String
LIFETIME_POLICY
static java.lang.String
NAME
static java.lang.String
OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT
static java.lang.String
STATE
static java.lang.String
TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addChangeListener(ConfigurationChangeListener listener)
Add a listener which will be informed of all changes to this configuration objectConfiguredObjectRecord
asObjectRecord()
void
authorise(Operation operation)
void
authorise(Operation operation, java.util.Map<java.lang.String,java.lang.Object> arguments)
void
authorise(SecurityToken token, Operation operation, java.util.Map<java.lang.String,java.lang.Object> arguments)
void
close()
com.google.common.util.concurrent.ListenableFuture<java.lang.Void>
closeAsync()
<C extends ConfiguredObject>
CcreateChild(java.lang.Class<C> childClass, java.util.Map<java.lang.String,java.lang.Object> attributes)
<C extends ConfiguredObject>
com.google.common.util.concurrent.ListenableFuture<C>createChildAsync(java.lang.Class<C> childClass, java.util.Map<java.lang.String,java.lang.Object> attributes)
void
decryptSecrets()
void
delete()
com.google.common.util.concurrent.ListenableFuture<java.lang.Void>
deleteAsync()
<C extends ConfiguredObject<C>>
CfindConfiguredObject(java.lang.Class<C> clazz, java.lang.String name)
java.util.Map<java.lang.String,java.lang.Object>
getActualAttributes()
Return the map containing only explicitly set attributes<C extends ConfiguredObject>
com.google.common.util.concurrent.ListenableFuture<C>getAttainedChildById(java.lang.Class<C> childClass, java.util.UUID id)
<C extends ConfiguredObject>
com.google.common.util.concurrent.ListenableFuture<C>getAttainedChildByName(java.lang.Class<C> childClass, java.lang.String name)
java.lang.Object
getAttribute(java.lang.String name)
Return the value for the given attribute name.java.util.Collection<java.lang.String>
getAttributeNames()
Get the names of attributes that are set on this object Note that the returned collection is correct at the time the method is called, but will not reflect future additions or removals when they occurjava.lang.Class<? extends ConfiguredObject>
getCategoryClass()
<C extends ConfiguredObject>
CgetChildById(java.lang.Class<C> clazz, java.util.UUID id)
<C extends ConfiguredObject>
CgetChildByName(java.lang.Class<C> clazz, java.lang.String name)
TaskExecutor
getChildExecutor()
<C extends ConfiguredObject>
java.util.Collection<C>getChildren(java.lang.Class<C> clazz)
Return children of the ConfiguredObject of the given classjava.util.Map<java.lang.String,java.lang.String>
getContext()
java.lang.String
getCreatedBy()
java.util.Date
getCreatedTime()
java.lang.String
getDescription()
State
getDesiredState()
Get the desired state of the object.java.util.UUID
getId()
Get the universally unique identifier for the objectjava.util.Date
getLastOpenedTime()
java.lang.String
getLastUpdatedBy()
java.util.Date
getLastUpdatedTime()
LifetimePolicy
getLifetimePolicy()
Return the lifetime policy for the objectModel
getModel()
java.lang.String
getName()
Get the name of the objectConfiguredObjectFactory
getObjectFactory()
ConfiguredObject<?>
getParent()
Get the parent of the given type for this objectState
getState()
Get the actual state of the object.java.util.Map<java.lang.String,java.lang.Object>
getStatistics()
Return the statistics for the ConfiguredObjectjava.util.Map<java.lang.String,java.lang.Object>
getStatistics(java.util.List<java.lang.String> statistics)
java.lang.String
getType()
java.lang.Class<? extends ConfiguredObject>
getTypeClass()
UserPreferences
getUserPreferences()
boolean
hasEncrypter()
boolean
isDurable()
Returns whether the the object configuration is durably storedboolean
managesChildStorage()
SecurityToken
newToken(javax.security.auth.Subject subject)
void
open()
com.google.common.util.concurrent.ListenableFuture<java.lang.Void>
openAsync()
boolean
removeChangeListener(ConfigurationChangeListener listener)
Remove a change listenerjava.lang.String
removeContextVariable(java.lang.String name)
void
setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
com.google.common.util.concurrent.ListenableFuture<java.lang.Void>
setAttributesAsync(java.util.Map<java.lang.String,java.lang.Object> attributes)
java.lang.String
setContextVariable(java.lang.String name, java.lang.String value)
void
setUserPreferences(UserPreferences userPreferences)
-
Methods inherited from interface org.apache.qpid.server.model.ContextProvider
getContextKeys, getContextValue, getContextValue
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
-
-
-
Field Detail
-
OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT
static final java.lang.String OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT
- See Also:
- Constant Field Values
-
ID
static final java.lang.String ID
- See Also:
- Constant Field Values
-
NAME
static final java.lang.String NAME
- See Also:
- Constant Field Values
-
TYPE
static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
DESCRIPTION
static final java.lang.String DESCRIPTION
- See Also:
- Constant Field Values
-
DURABLE
static final java.lang.String DURABLE
- See Also:
- Constant Field Values
-
CONTEXT
static final java.lang.String CONTEXT
- See Also:
- Constant Field Values
-
LIFETIME_POLICY
static final java.lang.String LIFETIME_POLICY
- See Also:
- Constant Field Values
-
LAST_UPDATED_BY
static final java.lang.String LAST_UPDATED_BY
- See Also:
- Constant Field Values
-
LAST_UPDATED_TIME
static final java.lang.String LAST_UPDATED_TIME
- See Also:
- Constant Field Values
-
STATE
static final java.lang.String STATE
- See Also:
- Constant Field Values
-
DESIRED_STATE
static final java.lang.String DESIRED_STATE
- See Also:
- Constant Field Values
-
CREATED_BY
static final java.lang.String CREATED_BY
- See Also:
- Constant Field Values
-
CREATED_TIME
static final java.lang.String CREATED_TIME
- See Also:
- Constant Field Values
-
AWAIT_ATTAINMENT_TIMEOUT
static final java.lang.String AWAIT_ATTAINMENT_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_AWAIT_ATTAINMENT_TIMEOUT
static final int DEFAULT_AWAIT_ATTAINMENT_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
java.util.UUID getId()
Get the universally unique identifier for the object- Returns:
- the objects id
-
getName
java.lang.String getName()
Get the name of the object- Specified by:
getName
in interfacePermissionedObject
- Returns:
- the name of the object
-
getDescription
java.lang.String getDescription()
-
getType
java.lang.String getType()
-
getContext
java.util.Map<java.lang.String,java.lang.String> getContext()
-
getLastUpdatedBy
java.lang.String getLastUpdatedBy()
-
getLastUpdatedTime
java.util.Date getLastUpdatedTime()
-
getCreatedBy
java.lang.String getCreatedBy()
-
getCreatedTime
java.util.Date getCreatedTime()
-
getDesiredState
State getDesiredState()
Get the desired state of the object. This is the state set at the object itself, however the object may not be able attain this state if one of its ancestors is in a different state (in particular a descendant object may not be ACTIVE if all of its ancestors are not also ACTIVE).- Returns:
- the desired state of the object
-
getState
State getState()
Get the actual state of the object. This state is derived from the desired state of the object itself and the actual state of its parents. If an object "desires" to be ACTIVE, but one of its parents is STOPPED, then the actual state of the object will be STOPPED- Returns:
- the actual state of the object
-
getLastOpenedTime
java.util.Date getLastOpenedTime()
-
addChangeListener
void addChangeListener(ConfigurationChangeListener listener)
Add a listener which will be informed of all changes to this configuration object- Parameters:
listener
- the listener to add
-
removeChangeListener
boolean removeChangeListener(ConfigurationChangeListener listener)
Remove a change listener- Parameters:
listener
- the listener to remove- Returns:
- true iff a listener was removed
-
getParent
ConfiguredObject<?> getParent()
Get the parent of the given type for this object- Returns:
- the objects parent
-
isDurable
boolean isDurable()
Returns whether the the object configuration is durably stored- Returns:
- the durability
-
getLifetimePolicy
LifetimePolicy getLifetimePolicy()
Return the lifetime policy for the object- Returns:
- the lifetime policy
-
getStatistics
java.util.Map<java.lang.String,java.lang.Object> getStatistics(java.util.List<java.lang.String> statistics)
-
setContextVariable
java.lang.String setContextVariable(java.lang.String name, java.lang.String value)
-
removeContextVariable
java.lang.String removeContextVariable(java.lang.String name)
-
getAttributeNames
java.util.Collection<java.lang.String> getAttributeNames()
Get the names of attributes that are set on this object Note that the returned collection is correct at the time the method is called, but will not reflect future additions or removals when they occur- Returns:
- the collection of attribute names
-
getAttribute
java.lang.Object getAttribute(java.lang.String name)
Return the value for the given attribute name. The actual attribute value is returned if the configured object has such attribute set. If not, the value is looked default attributes.- Parameters:
name
- the name of the attribute- Returns:
- the value of the attribute at the object (or null if the attribute value is set neither on object itself no in defaults)
-
getActualAttributes
java.util.Map<java.lang.String,java.lang.Object> getActualAttributes()
Return the map containing only explicitly set attributes- Returns:
- the map with the attributes
-
getStatistics
java.util.Map<java.lang.String,java.lang.Object> getStatistics()
Return the statistics for the ConfiguredObject- Returns:
- the current statistics for the ConfiguredObject
-
getChildren
<C extends ConfiguredObject> java.util.Collection<C> getChildren(java.lang.Class<C> clazz)
Return children of the ConfiguredObject of the given class- Parameters:
clazz
- the class of the children to return- Returns:
- the children
- Throws:
java.lang.NullPointerException
- if the supplied class null
-
getChildById
<C extends ConfiguredObject> C getChildById(java.lang.Class<C> clazz, java.util.UUID id)
-
getChildByName
<C extends ConfiguredObject> C getChildByName(java.lang.Class<C> clazz, java.lang.String name)
-
createChild
<C extends ConfiguredObject> C createChild(java.lang.Class<C> childClass, java.util.Map<java.lang.String,java.lang.Object> attributes)
-
getAttainedChildById
<C extends ConfiguredObject> com.google.common.util.concurrent.ListenableFuture<C> getAttainedChildById(java.lang.Class<C> childClass, java.util.UUID id)
-
getAttainedChildByName
<C extends ConfiguredObject> com.google.common.util.concurrent.ListenableFuture<C> getAttainedChildByName(java.lang.Class<C> childClass, java.lang.String name)
-
createChildAsync
<C extends ConfiguredObject> com.google.common.util.concurrent.ListenableFuture<C> createChildAsync(java.lang.Class<C> childClass, java.util.Map<java.lang.String,java.lang.Object> attributes)
-
setAttributes
void setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) throws java.lang.IllegalStateException, java.security.AccessControlException, java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateException
java.security.AccessControlException
java.lang.IllegalArgumentException
-
setAttributesAsync
com.google.common.util.concurrent.ListenableFuture<java.lang.Void> setAttributesAsync(java.util.Map<java.lang.String,java.lang.Object> attributes) throws java.lang.IllegalStateException, java.security.AccessControlException, java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateException
java.security.AccessControlException
java.lang.IllegalArgumentException
-
getCategoryClass
java.lang.Class<? extends ConfiguredObject> getCategoryClass()
- Specified by:
getCategoryClass
in interfacePermissionedObject
-
getTypeClass
java.lang.Class<? extends ConfiguredObject> getTypeClass()
-
managesChildStorage
boolean managesChildStorage()
-
findConfiguredObject
<C extends ConfiguredObject<C>> C findConfiguredObject(java.lang.Class<C> clazz, java.lang.String name)
-
asObjectRecord
ConfiguredObjectRecord asObjectRecord()
-
open
void open()
-
openAsync
com.google.common.util.concurrent.ListenableFuture<java.lang.Void> openAsync()
-
close
void close()
-
closeAsync
com.google.common.util.concurrent.ListenableFuture<java.lang.Void> closeAsync()
-
deleteAsync
com.google.common.util.concurrent.ListenableFuture<java.lang.Void> deleteAsync()
-
getChildExecutor
TaskExecutor getChildExecutor()
-
getObjectFactory
ConfiguredObjectFactory getObjectFactory()
-
getModel
Model getModel()
-
delete
void delete()
-
hasEncrypter
boolean hasEncrypter()
-
decryptSecrets
void decryptSecrets()
-
getUserPreferences
UserPreferences getUserPreferences()
-
setUserPreferences
void setUserPreferences(UserPreferences userPreferences)
-
authorise
void authorise(Operation operation) throws java.security.AccessControlException
- Throws:
java.security.AccessControlException
-
authorise
void authorise(Operation operation, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.security.AccessControlException
- Throws:
java.security.AccessControlException
-
authorise
void authorise(SecurityToken token, Operation operation, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.security.AccessControlException
- Throws:
java.security.AccessControlException
-
newToken
SecurityToken newToken(javax.security.auth.Subject subject)
-
-