public class BagRestConnector extends RemoteRestConnector implements BagConnector
RemoteRestConnector.REQUEST_MODE
CHARACTER_ENCODING, CONNECTION_HOST_PROPERTY, CONNECTION_PORT_PROPERTY, REQUESTCONTEXT
Constructor and Description |
---|
BagRestConnector(NodeInformation nodeInformation) |
Modifier and Type | Method and Description |
---|---|
BagMeta |
createBag(RemotingContext context,
String instance,
Bag bagMeta) |
IndexDefinition |
createIndex(RemotingContext context,
String instance,
String bag,
IndexDefinition definition,
boolean isUnique) |
boolean |
flushBag(RemotingContext context,
String instance,
String bagName) |
RemoteBag |
getBag(RemotingContext context,
String instance,
String bagName) |
List<RemoteBag> |
getBags(RemotingContext context,
String instance) |
List<IndexDefinition> |
getIndexDefinitions(RemotingContext context,
String instance,
String bag) |
boolean |
removeBag(RemotingContext context,
String instance,
String bagName) |
boolean |
removeIndex(RemotingContext context,
String instance,
String bag,
String indexName) |
close, doInternalRequest, doRequest, doRequest, doRequest, toBytes, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
public BagRestConnector(NodeInformation nodeInformation) throws ConfigurationException
ConfigurationException
public RemoteBag getBag(RemotingContext context, String instance, String bagName) throws RemoteException
getBag
in interface BagConnector
RemoteException
public List<RemoteBag> getBags(RemotingContext context, String instance) throws RemoteException
getBags
in interface BagConnector
RemoteException
public BagMeta createBag(RemotingContext context, String instance, Bag bagMeta) throws RemoteException
createBag
in interface BagConnector
RemoteException
public boolean removeBag(RemotingContext context, String instance, String bagName) throws RemoteException
removeBag
in interface BagConnector
RemoteException
public boolean flushBag(RemotingContext context, String instance, String bagName) throws RemoteException
flushBag
in interface BagConnector
RemoteException
public boolean removeIndex(RemotingContext context, String instance, String bag, String indexName) throws RemoteException
removeIndex
in interface BagConnector
RemoteException
public List<IndexDefinition> getIndexDefinitions(RemotingContext context, String instance, String bag) throws RemoteException
getIndexDefinitions
in interface BagConnector
RemoteException
public IndexDefinition createIndex(RemotingContext context, String instance, String bag, IndexDefinition definition, boolean isUnique) throws RemoteException
createIndex
in interface BagConnector
RemoteException
Copyright © 2015. All rights reserved.