Class: UU::OperationRegistry::MessageBusRepository
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::MessageBusRepository
- Defined in:
- lib/uu/operation_registry/message_bus_repository.rb
Overview
Message bus repository represents a cluster of messaging servers.
Class Method Summary collapse
-
.create(resource_pool_uri, attributes) ⇒ UU::OS::UESURI
Creates a new message bus repository.
-
.delete(msg_bus_repository_uri) ⇒ void
Deletes the specified message bus repository from the registry.
-
.get_attributes(msg_bus_repository_uri) ⇒ Hash
Gets the attributes of the message bus repository specified by message bus repository URI and returns its detail.
-
.get_message_bus_repository_list(resource_pool_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of message bus repositories.
-
.set_attributes(msg_bus_repository_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a message bus repository.
Instance Method Summary collapse
-
#create(resource_pool_uri, attributes) ⇒ UU::OS::UESURI
Creates a new message bus repository.
-
#delete(msg_bus_repository_uri) ⇒ void
Deletes the specified message bus repository from the registry.
-
#get_attributes(msg_bus_repository_uri) ⇒ Hash
Gets the attributes of the message bus repository specified by message bus repository URI and returns its detail.
-
#get_message_bus_repository_list(resource_pool_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of message bus repositories in the given resource pool.
-
#initialize(session = nil) ⇒ MessageBusRepository
constructor
Creates a new instance of
MessageBusRepository
. -
#set_attributes(msg_bus_repository_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a message bus repository.
Constructor Details
#initialize(session = nil) ⇒ MessageBusRepository
Creates a new instance of MessageBusRepository
.
18 19 20 |
# File 'lib/uu/operation_registry/message_bus_repository.rb', line 18 def initialize(session = nil) super end |
Class Method Details
.create(resource_pool_uri, attributes) ⇒ UU::OS::UESURI
Creates a new message bus repository. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/message_bus_repository.rb', line 65
|
.delete(msg_bus_repository_uri) ⇒ void
This method returns an undefined value.
Deletes the specified message bus repository from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/message_bus_repository.rb', line 132
|
.get_attributes(msg_bus_repository_uri) ⇒ Hash
Gets the attributes of the message bus repository specified by message bus repository URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/message_bus_repository.rb', line 79
|
.get_message_bus_repository_list(resource_pool_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of message bus repositories. This method is a convenience shortcut for the #get_message_bus_repository_list instance method.
167 168 169 |
# File 'lib/uu/operation_registry/message_bus_repository.rb', line 167 def self.(resource_pool_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).(resource_pool_uri, criteria) end |
.set_attributes(msg_bus_repository_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a message bus repository. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/message_bus_repository.rb', line 119
|
Instance Method Details
#create(resource_pool_uri, attributes) ⇒ UU::OS::UESURI
Creates a new message bus repository.
|
# File 'lib/uu/operation_registry/message_bus_repository.rb', line 22
|
#delete(msg_bus_repository_uri) ⇒ void
This method returns an undefined value.
Deletes the specified message bus repository from the registry.
|
# File 'lib/uu/operation_registry/message_bus_repository.rb', line 126
|
#get_attributes(msg_bus_repository_uri) ⇒ Hash
Gets the attributes of the message bus repository specified by message bus repository URI and returns its detail.
|
# File 'lib/uu/operation_registry/message_bus_repository.rb', line 72
|
#get_message_bus_repository_list(resource_pool_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of message bus repositories in the given resource pool. Command does not return all message bus repositories, only a sublist. The list of returned message bus repositories could be filtered using Mongo Query.
158 159 160 |
# File 'lib/uu/operation_registry/message_bus_repository.rb', line 158 def (resource_pool_uri, criteria = {}) @client.invoke(:getMessageBusRepositoryList, resource_pool_uri, parameters: criteria) end |
#set_attributes(msg_bus_repository_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a message bus repository.
|
# File 'lib/uu/operation_registry/message_bus_repository.rb', line 88
|