/** * @return boolean */ public function isSearchIndexingEnabled() { return $this->props->hasPreCommitHook(ErlangCall::getErlangCallUsedToIndexData()); }
/** * * @param string $name * @param boolean $allowMult * @param boolean $basicQuorum * @param integet $bigVclock * @param \Kbrw\RiakBundle\Model\Bucket\ErlangCall $chashKeyfun * @param string $dw * @param boolean $lastWriteWins * @param \Kbrw\RiakBundle\Model\Bucket\ErlangCall $linkfun * @param integer $nVal * @param boolean $notfoundOk * @param integer $oldVclock * @param array<\Kbrw\RiakBundle\Model\Bucket\ErlangCall> $postcommit * @param integer $pr * @param array<\Kbrw\RiakBundle\Model\Bucket\ErlangCall> $precommit * @param integer $pw * @param string $r * @param string $rw * @param integer $smallVclock * @param string $w * @param integer $youngVclock */ public function __construct($name = null, $allowMult = false, $basicQuorum = false, $bigVclock = 50, $chashKeyfun = null, $dw = null, $lastWriteWins = false, $linkfun = null, $nVal = 3, $notfoundOk = true, $oldVclock = 86400, $postcommit = array(), $pr = 0, $precommit = array(), $pw = 0, $r = null, $rw = null, $smallVclock = 50, $w = null, $youngVclock = 20) { if (!isset($chashKeyfun)) { $chashKeyfun = ErlangCall::getDefaultChashKeyFun(); } if (!isset($linkfun)) { $linkfun = ErlangCall::getDefaultLinkFun(); } $this->setName($name); $this->setAllowMult($allowMult); $this->setBasicQuorum($basicQuorum); $this->setBigVclock($bigVclock); $this->setChashKeyfun($chashKeyfun); $this->setDw($dw); $this->setLastWriteWins($lastWriteWins); $this->setLinkfun($linkfun); $this->setNVal($nVal); $this->setNotfoundOk($notfoundOk); $this->setOldVclock($oldVclock); $this->setPostcommit($postcommit); $this->setPr($pr); $this->setPrecommit($precommit); $this->setPw($pw); $this->setR($r); $this->setRw($rw); $this->setSmallVclock($smallVclock); $this->setW($w); $this->setYoungVclock($youngVclock); }
/** * @test */ public function twoErlangCallsAreEquals() { $erlangCall = new ErlangCall("riak_search_kv_hook", "precommit"); $this->assertTrue($erlangCall->equalTo(new ErlangCall("riak_search_kv_hook", "precommit"))); }
/** * @param \Kbrw\RiakBundle\Model\Bucket\ErlangCall $erlangCall * @return boolean */ public function equalTo($erlangCall) { return isset($erlangCall) && $erlangCall instanceof ErlangCall && $erlangCall->getMod() === $this->getMod() && $erlangCall->getFun() === $this->getFun(); }