Constructor and Description |
---|
RemoteNodeProxy(NodeReference nodeRef) |
Modifier and Type | Method and Description |
---|---|
void |
bootstrap(NodeReference nodeRef) |
List<GenericValue> |
delete(Key key) |
NodeReference |
findSuccessor(Key key) |
List<GenericValue> |
get(Key key) |
List<GenericValue> |
getLessThanAndRemove(Key key) |
NodeReference |
getPredecessorNodeRef() |
private com.sun.jersey.api.client.WebResource |
getWebResource(String path) |
NodeReference |
notify(NodeReference nodeRef) |
NodeReference |
ping() |
Boolean |
put(GenericValue elem) |
Boolean |
put(List<GenericValue> elems) |
private String |
request(String uri)
Make a GET request
|
private Boolean |
request(String uri,
String payload)
Make a POST request
|
private String |
request(String uri,
String method,
String payload)
Generic method that generate a request
|
getNodeReference
public static final String PATH
public RemoteNodeProxy(NodeReference nodeRef)
private String request(String uri, String method, String payload)
uri
- |method
- |payload
- |private Boolean request(String uri, String payload)
uri
- |payload
- |private com.sun.jersey.api.client.WebResource getWebResource(String path)
public List<GenericValue> get(Key key)
key
- |public Boolean put(GenericValue elem)
elem
- |public List<GenericValue> delete(Key key)
public NodeReference findSuccessor(Key key)
public NodeReference notify(NodeReference nodeRef)
public NodeReference getPredecessorNodeRef()
public NodeReference ping()
public Boolean put(List<GenericValue> elems)
public List<GenericValue> getLessThanAndRemove(Key key)
public void bootstrap(NodeReference nodeRef)
Copyright © 2018. All rights reserved.