Class: UU::OperationRegistry::MessageBus
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::MessageBus
- Defined in:
- lib/uu/operation_registry/message_bus.rb
Overview
Message bus is a logical set of queues.
Class Method Summary collapse
-
.allocate_queue_pairs(msg_bus_repository_uri, attributes = {}) ⇒ Array<String>
Allocates new queue pairs.
-
.create(msg_bus_repository_uri, attributes) ⇒ UU::OS::UESURI
Creates a new message bus.
-
.delete(msg_bus_uri) ⇒ void
Deletes the specified message bus from the registry.
-
.get_attributes(msg_bus_uri) ⇒ Hash
Gets the attributes of the message bus specified by message bus URI and returns its detail.
-
.get_message_bus_list(msg_bus_repository_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of message buses.
-
.release_queue_pairs(msg_bus_repository_uri, attributes = {}) ⇒ void
Releases allocated queue pairs.
-
.set_attributes(msg_bus_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a message bus.
Instance Method Summary collapse
-
#allocate_queue_pairs(msg_bus_repository_uri, attributes = {}) ⇒ Array<String>
Allocates new queue pairs.
-
#create(msg_bus_repository_uri, attributes) ⇒ UU::OS::UESURI
Creates a new message bus.
-
#delete(msg_bus_uri) ⇒ void
Deletes the specified message bus from the registry.
-
#get_attributes(msg_bus_uri) ⇒ Hash
Gets the attributes of the message bus specified by message bus URI and returns its detail.
-
#get_message_bus_list(msg_bus_repository_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of message buses in the given message bus repository.
-
#initialize(session = nil) ⇒ MessageBus
constructor
Creates a new instance of
MessageBus
. -
#release_queue_pairs(msg_bus_repository_uri, attributes = {}) ⇒ void
Releases allocated queue pairs.
-
#set_attributes(msg_bus_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a message bus.
Constructor Details
#initialize(session = nil) ⇒ MessageBus
Creates a new instance of MessageBus
.
18 19 20 |
# File 'lib/uu/operation_registry/message_bus.rb', line 18 def initialize(session = nil) super end |
Class Method Details
.allocate_queue_pairs(msg_bus_repository_uri, attributes = {}) ⇒ Array<String>
Allocates new queue pairs. This method is a convenience shortcut for the #allocate_queue_pairs instance method.
147 148 149 |
# File 'lib/uu/operation_registry/message_bus.rb', line 147 def self.allocate_queue_pairs(msg_bus_repository_uri, attributes = {}) self.new(UU::OS::Security::Session.current_session).allocate_queue_pairs(msg_bus_repository_uri, attributes) end |
.create(msg_bus_repository_uri, attributes) ⇒ UU::OS::UESURI
Creates a new message bus. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/message_bus.rb', line 44
|
.delete(msg_bus_uri) ⇒ void
This method returns an undefined value.
Deletes the specified message bus from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/message_bus.rb', line 94
|
.get_attributes(msg_bus_uri) ⇒ Hash
Gets the attributes of the message bus specified by message bus URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/message_bus.rb', line 58
|
.get_message_bus_list(msg_bus_repository_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns list of message buses. This method is a convenience shortcut for the #get_message_bus_list instance method.
125 126 127 |
# File 'lib/uu/operation_registry/message_bus.rb', line 125 def self.(msg_bus_repository_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).(msg_bus_repository_uri, criteria) end |
.release_queue_pairs(msg_bus_repository_uri, attributes = {}) ⇒ void
This method returns an undefined value.
Releases allocated queue pairs. This method is a convenience shortcut for the #release_queue_pairs instance method.
169 170 171 |
# File 'lib/uu/operation_registry/message_bus.rb', line 169 def self.release_queue_pairs(msg_bus_repository_uri, attributes = {}) self.new(UU::OS::Security::Session.current_session).release_queue_pairs(msg_bus_repository_uri, attributes) end |
.set_attributes(msg_bus_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a message bus. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/message_bus.rb', line 83
|
Instance Method Details
#allocate_queue_pairs(msg_bus_repository_uri, attributes = {}) ⇒ Array<String>
Allocates new queue pairs.
138 139 140 |
# File 'lib/uu/operation_registry/message_bus.rb', line 138 def allocate_queue_pairs(msg_bus_repository_uri, attributes = {}) @client.invoke(:allocateQueuePairs, msg_bus_repository_uri, parameters: attributes) end |
#create(msg_bus_repository_uri, attributes) ⇒ UU::OS::UESURI
Creates a new message bus.
|
# File 'lib/uu/operation_registry/message_bus.rb', line 22
|
#delete(msg_bus_uri) ⇒ void
This method returns an undefined value.
Deletes the specified message bus from the registry.
|
# File 'lib/uu/operation_registry/message_bus.rb', line 89
|
#get_attributes(msg_bus_uri) ⇒ Hash
Gets the attributes of the message bus specified by message bus URI and returns its detail.
|
# File 'lib/uu/operation_registry/message_bus.rb', line 52
|
#get_message_bus_list(msg_bus_repository_uri, criteria = {}) ⇒ UU::OS::Persistence::PagedResult<Hash>
Returns a list of message buses in the given message bus repository. Command does not return all message buses, only a sublist. The list of returned message buses could be filtered using Mongo Query.
116 117 118 |
# File 'lib/uu/operation_registry/message_bus.rb', line 116 def (msg_bus_repository_uri, criteria = {}) @client.invoke(:getMessageBusList, msg_bus_repository_uri, parameters: criteria) end |
#release_queue_pairs(msg_bus_repository_uri, attributes = {}) ⇒ void
This method returns an undefined value.
Releases allocated queue pairs.
160 161 162 |
# File 'lib/uu/operation_registry/message_bus.rb', line 160 def release_queue_pairs(msg_bus_repository_uri, attributes = {}) @client.invoke(:releaseQueuePairs, msg_bus_repository_uri, parameters: attributes) end |
#set_attributes(msg_bus_uri, attributes) ⇒ UU::OS::UESURI
Sets attributes of a message bus.
|
# File 'lib/uu/operation_registry/message_bus.rb', line 65
|