public interface NodeApi
Modifier and Type | Method and Description |
---|---|
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.
|
PagedIterable<Node> |
list()
List the nodes.
|
IterableWithMarker<Node> |
list(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.
|
@Named(value="node:add") Set<Node> add(Iterable<AddNode> addNodes)
@Named(value="node:update") void update(int id, UpdateNode updateNode)
@Named(value="node:list") PagedIterable<Node> list()
@Named(value="node:list") IterableWithMarker<Node> list(PaginationOptions options)
@Named(value="node:get") Node get(int id)
@Named(value="node:remove") void remove(int id)
@Named(value="node:remove") void remove(Iterable<Integer> ids)
@Named(value="node:createmetadata") Metadata createMetadata(int id, Map<String,String> metadata)
@Named(value="node:getmetadata") Metadata getMetadata(int lb)
@Named(value="node:updatemetadatum") boolean updateMetadatum(int id, int metadatumId, String value)
@Named(value="node:deletemetadatum") boolean deleteMetadatum(int id, int metadatumId)
deleteMetadata(int, Iterable)
@Named(value="node:deletemetadata") boolean deleteMetadata(int id, Iterable<Integer> metadataIds)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.