Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $config = $cluster->getRiakConfig();
     $operation = new FetchOperation($config, $this->location, $this->options);
     $response = $cluster->execute($operation);
     return $response;
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $config = $cluster->getRiakConfig();
     $converter = $config->getCrdtResponseConverter();
     $operation = new FetchSetOperation($converter, $this->location, $this->options);
     $response = $cluster->execute($operation);
     return $response;
 }
Exemple #3
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $op = $this->update->getOp();
     $config = $cluster->getRiakConfig();
     $converter = $config->getCrdtResponseConverter();
     $operation = new StoreMapOperation($converter, $this->location, $op, $this->context, $this->options);
     $response = $cluster->execute($operation);
     return $response;
 }
Exemple #4
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $operation = new SearchOperation($this->query);
     $response = $cluster->execute($operation);
     return $response;
 }
 /**
  * @expectedException \Riak\Client\RiakException
  * @expectedExceptionMessage There are no nodes in the cluster.
  */
 public function testBuildNodeInvalidProtocolException()
 {
     $this->instence->execute($this->getMock('Riak\\Client\\Core\\RiakOperation'));
 }
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $operation = new StorePropertiesOperation($this->namespace, $this->properties);
     $response = $cluster->execute($operation);
     return $response;
 }
Exemple #7
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $operation = new ListBucketsOperation($this->type, $this->timeout);
     $response = $cluster->execute($operation);
     return $response;
 }
Exemple #8
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $operation = new FetchIndexOperation($this->indexName);
     $response = $cluster->execute($operation);
     return $response;
 }
Exemple #9
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $operation = new FetchSchemaOperation($this->schemaName);
     $response = $cluster->execute($operation);
     return $response;
 }
Exemple #10
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $operation = $this->createOperation();
     $response = $cluster->execute($operation);
     return $response;
 }