Class: UU::OperationRegistry::Node
- Inherits:
-
BaseMethods
- Object
- BaseMethods
- UU::OperationRegistry::Node
- Defined in:
- lib/uu/operation_registry/node.rb
Overview
Node.
Constant Summary
Class Method Summary (collapse)
-
+ (UU::OS::UESURI) create(host_uri, attributes)
Creates a new node.
-
+ (void) delete(node_uri)
Deletes the specified node from the registry.
-
+ (Hash) get_attributes(node_uri)
Gets the attributes of the node specified by node URI and returns its detail.
-
+ (UU::OS::Persistence::PagedResult<Hash>) get_node_list(host_uri, criteria = {})
Returns list of nodes.
-
+ (UU::OS::UESURI) set_attributes(node_uri, attributes)
Sets attributes of an node.
Instance Method Summary (collapse)
-
- (UU::OS::UESURI) create(host_uri, attributes)
Creates a new node.
-
- (void) delete(node_uri)
Deletes the specified node from the registry.
-
- (Hash) get_attributes(node_uri)
Gets the attributes of the node specified by node URI and returns its detail.
-
- (UU::OS::Persistence::PagedResult<Hash>) get_node_list(host_uri, criteria = {})
Returns a list of nodes on the given host.
-
- (Node) initialize(session = nil)
constructor
Creates a new instance of
Node
. -
- (UU::OS::UESURI) set_attributes(node_uri, attributes)
Sets attributes of an node.
Constructor Details
- (Node) initialize(session = nil)
Creates a new instance of Node
.
18 19 20 |
# File 'lib/uu/operation_registry/node.rb', line 18 def initialize(session = nil) super end |
Class Method Details
+ (UU::OS::UESURI) create(host_uri, attributes)
Creates a new node. This method is a convenience shortcut for the #create instance method.
|
# File 'lib/uu/operation_registry/node.rb', line 39
|
+ (void) delete(node_uri)
This method returns an undefined value.
Deletes the specified node from the registry. This method is a convenience shortcut for the #delete instance method.
|
# File 'lib/uu/operation_registry/node.rb', line 86
|
+ (Hash) get_attributes(node_uri)
Gets the attributes of the node specified by node URI and returns its detail. This method is a convenience shortcut for the #get_attributes instance method.
|
# File 'lib/uu/operation_registry/node.rb', line 52
|
+ (UU::OS::Persistence::PagedResult<Hash>) get_node_list(host_uri, criteria = {})
Returns list of nodes. This method is a convenience shortcut for the #get_node_list instance method.
113 114 115 |
# File 'lib/uu/operation_registry/node.rb', line 113 def self.get_node_list(host_uri, criteria = {}) self.new(UU::OS::Security::Session.current_session).get_node_list(host_uri, criteria) end |
+ (UU::OS::UESURI) set_attributes(node_uri, attributes)
Sets attributes of an node. This method is a convenience shortcut for the #set_attributes instance method.
|
# File 'lib/uu/operation_registry/node.rb', line 75
|
Instance Method Details
- (UU::OS::UESURI) create(host_uri, attributes)
Creates a new node.
|
# File 'lib/uu/operation_registry/node.rb', line 22
|
- (void) delete(node_uri)
This method returns an undefined value.
Deletes the specified node from the registry.
|
# File 'lib/uu/operation_registry/node.rb', line 81
|
- (Hash) get_attributes(node_uri)
Gets the attributes of the node specified by node URI and returns its detail.
|
# File 'lib/uu/operation_registry/node.rb', line 46
|
- (UU::OS::Persistence::PagedResult<Hash>) get_node_list(host_uri, criteria = {})
Returns a list of nodes on the given host. Command does not return all nodes, only a sublist. The list of returned nodes could be filtered using Mongo Query.
104 105 106 |
# File 'lib/uu/operation_registry/node.rb', line 104 def get_node_list(host_uri, criteria = {}) @client.invoke(:getNodeList, host_uri, parameters: criteria) end |
- (UU::OS::UESURI) set_attributes(node_uri, attributes)
Sets attributes of an node.
|
# File 'lib/uu/operation_registry/node.rb', line 59
|