- // Get the state factory and create the initial state, we don't need
- // the state instance here
- StateFactory::createStateInstanceByName('init', $this);
- }
-
- /**
- * Setter for node id
- *
- * @param $nodeId Our new node id
- * @return void
- */
- private final function setNodeId ($nodeId) {
- // Set it config now
- $this->getConfigInstance()->setConfigEntry('node_id', (string) $nodeId);
- }
-
- /**
- * Getter for node id
- *
- * @return $nodeId Current node id
- */
- private final function getNodeId () {
- // Get it from config
- return $this->getConfigInstance()->getConfigEntry('node_id');
- }
-
- /**
- * Setter for listener pool instance
- *
- * @param $listenerPoolInstance Our new listener pool instance
- * @return void
- */
- private final function setListenerPoolInstance (PoolableListener $listenerPoolInstance) {
- $this->listenerPoolInstance = $listenerPoolInstance;
+ /*
+ * Get the state factory and create the initial state, we don't need
+ * the state instance here
+ */
+ NodeStateFactory::createNodeStateInstanceByName('init', $this);