Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $operation = new SearchOperation($this->query);
     $response = $cluster->execute($operation);
     return $response;
 }
Exemplo n.º 5
0
 /**
  * @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;
 }
Exemplo n.º 7
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $operation = new ListBucketsOperation($this->type, $this->timeout);
     $response = $cluster->execute($operation);
     return $response;
 }
Exemplo n.º 8
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $operation = new FetchIndexOperation($this->indexName);
     $response = $cluster->execute($operation);
     return $response;
 }
Exemplo n.º 9
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $operation = new FetchSchemaOperation($this->schemaName);
     $response = $cluster->execute($operation);
     return $response;
 }
Exemplo n.º 10
0
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $operation = $this->createOperation();
     $response = $cluster->execute($operation);
     return $response;
 }