org.jclouds.rackspace.cloudloadbalancers.v1.features
Interface NodeApi


public interface NodeApi

Provides access to CloudLoadBalancers Node features.


Method Summary
 Set<Node> add(Iterable<AddNode> addNodes)
          Add a new node with the configuration defined by the request.
 Metadata createMetadata(int id, Map<String,String> metadata)
          When a metadata item is added, it is assigned a unique identifier that can be used for mutating operations such as changing the value attribute or removing it.
 boolean deleteMetadata(int id, Iterable<Integer> metadataIds)
          Batch delete metadata given the specified ids.
 boolean deleteMetadatum(int id, int metadatumId)
          Delete metadatum.
 Node get(int id)
          Get a node.
 Metadata getMetadata(int lb)
          List a load balancer's metadata.
 org.jclouds.collect.PagedIterable<Node> list()
          List the nodes.
 org.jclouds.collect.IterableWithMarker<Node> list(org.jclouds.openstack.v2_0.options.PaginationOptions options)
          List the nodes with full control of pagination.
 void remove(int id)
          Remove a node from the load balancer.
 void remove(Iterable<Integer> ids)
          Batch remove nodes from the load balancer.
 void update(int id, UpdateNode updateNode)
          Update the attributes of a node.
 boolean updateMetadatum(int id, int metadatumId, String value)
          Update metadatum.
 

Method Detail

add

@Named(value="node:add")
Set<Node> add(Iterable<AddNode> addNodes)
Add a new node with the configuration defined by the request.


update

@Named(value="node:update")
void update(int id,
                  UpdateNode updateNode)
Update the attributes of a node.


list

@Named(value="node:list")
org.jclouds.collect.PagedIterable<Node> list()
List the nodes.


list

@Named(value="node:list")
org.jclouds.collect.IterableWithMarker<Node> list(org.jclouds.openstack.v2_0.options.PaginationOptions options)
List the nodes with full control of pagination.


get

@Named(value="node:get")
Node get(int id)
Get a node.


remove

@Named(value="node:remove")
void remove(int id)
Remove a node from the load balancer.


remove

@Named(value="node:remove")
void remove(Iterable<Integer> ids)
Batch remove nodes from the load balancer.


createMetadata

@Named(value="node:createmetadata")
Metadata createMetadata(int id,
                              Map<String,String> metadata)
When a metadata item is added, it is assigned a unique identifier that can be used for mutating operations such as changing the value attribute or removing it. Key and value must be 256 characters or less. All UTF-8 characters are valid.


getMetadata

@Named(value="node:getmetadata")
Metadata getMetadata(int lb)
List a load balancer's metadata.


updateMetadatum

@Named(value="node:updatemetadatum")
boolean updateMetadatum(int id,
                              int metadatumId,
                              String value)
Update metadatum. Key and value must be 256 characters or less. All UTF-8 characters are valid.

Returns:
true on a successful update, false if the metadatum was not found

deleteMetadatum

@Named(value="node:deletemetadatum")
boolean deleteMetadatum(int id,
                              int metadatumId)
Delete metadatum.

Returns:
true on a successful removal, false if the metadatum was not found
See Also:
deleteMetadata(int, Iterable)

deleteMetadata

@Named(value="node:deletemetadata")
boolean deleteMetadata(int id,
                             Iterable<Integer> metadataIds)
Batch delete metadata given the specified ids. The current default limit is ten ids per request. Any and all configuration data is immediately purged and is not recoverable. If one or more of the items in the list cannot be removed due to its current status, an exception is thrown along with the ids of the ones the system identified as potential failures for this request.

Returns:
true on a successful removal, false if the metadata was not found


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.