Esempio 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;
 }
Esempio 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;
 }
Esempio 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;
 }