예제 #1
0
    }
    /**
     * 
     * @param ResourceImpl $resource
     */
    private function updateResourcePool($resource)
    {
        self::$_RESOURCE_POOL[$this->_resource_identifer_merged_s] = $resource;
    }
    private function deleteEntryResourcePool()
    {
        unset(self::$_RESOURCE_POOL[$this->_resource_identifer_merged_s]);
    }
    private function execRelease()
    {
        if ($this->_resource_exist_b === FALSE) {
            $errorMessage = sprintf("can not execute <%s> on inexistant resource", self::_RELEASE);
            self::$_log->error($errorMessage);
            throw new Exception($errorMessage);
        }
        $this->_foundResource->unreserve($this->_givenResource->getTransactionId());
        self::$_log->info(sprintf("<%s> applied on this [%s] Object: <%s>", self::_RELEASE, get_class($this->_givenResource), $this->_foundResource->toString()));
        return NULL;
    }
    public function getResourcePool()
    {
        return self::$_RESOURCE_POOL;
    }
}
ResourceHolderImpl::init();