$this->setErrorCode(self::SOCKET_ERROR_UNKNOWN);
// Init stacker instance for processed raw data
- $stackerInstance = ObjectFactory::createObjectByConfiguredName('node_raw_data_stacker_class');
+ $stackInstance = ObjectFactory::createObjectByConfiguredName('node_raw_data_stacker_class');
// Remember this in this package handler
- $this->setStackerInstance($stackerInstance);
+ $this->setStackInstance($stackInstance);
// Init stacker
$this->initStack();
* @return void
*/
protected function initStack () {
- $this->getStackerInstance()->initStack(self::STACKER_NAME_RAW_DATA);
+ $this->getStackInstance()->initStack(self::STACKER_NAME_RAW_DATA);
}
/**
* Add the deocoded data and error code to the stacker so other classes
* (e.g. NetworkPackage) can "pop" it from the stacker.
*/
- $this->getStackerInstance()->pushNamed(self::STACKER_NAME_RAW_DATA, array(
+ $this->getStackInstance()->pushNamed(self::STACKER_NAME_RAW_DATA, array(
self::PACKAGE_RAW_DATA => $rawData,
self::PACKAGE_ERROR_CODE => $this->getErrorCode()
));
*/
public function isRawDataPending () {
// Does the stacker have some entries (not empty)?
- $isPending = (!$this->getStackerInstance()->isStackEmpty(self::STACKER_NAME_RAW_DATA));
+ $isPending = (!$this->getStackInstance()->isStackEmpty(self::STACKER_NAME_RAW_DATA));
// Return it
return $isPending;
*/
public function getNextRawData () {
// "Pop" the raw data from the stacker
- $rawData = $this->getStackerInstance()->popNamed(self::STACKER_NAME_RAW_DATA);
+ $rawData = $this->getStackInstance()->popNamed(self::STACKER_NAME_RAW_DATA);
// And return it
return $rawData;