AppserverIo\Appserver\Core\Api\Node\ProcessorNode::__construct PHP Method

__construct() public method

Initializes the processor node with the necessary data.
public __construct ( string $type = '', array $params = [] )
$type string The provisioner type
$params array The handler params
    public function __construct($type = '', array $params = array())
    {
        // initialize the UUID
        $this->setUuid($this->newUuid());
        // set the data
        $this->type = $type;
        $this->params = $params;
    }