public function createExecutor($application_id, $app_version_id)
 {
     $executor = new CodeExecutor($application_id, $app_version_id);
     try {
         // code download java driver on server side
         //CodeManagement::getInstance()->downloadCode( $application_id, $app_version_id );///
         $executor->init();
     } catch (Exception $e) {
         Log::writeError("Can not create executor for appVersionId: " . $app_version_id);
         Log::writeError("Can not create executor msg:" . $e->getMessage(), $target = "file");
     }
     return $executor;
 }
Esempio n. 2
0
 private function afterRequest()
 {
     if (defined("DEV_MODE")) {
         Log::writeInfo("Server response: " . $this->getResponse(), "file");
         Log::writeInfo("---------------------------------------------------------------------------------------------", "file");
         echo "\n";
         Log::writeInfo("Processing results", $target = 'console');
     }
 }
Esempio n. 3
0
 public static function devMode()
 {
     define('DEV_MODE', true);
     Log::init();
 }
Esempio n. 4
0
 private function afterRequest()
 {
     if (defined('DEV_MODE')) {
         Log::writeInfo('Server response: ' . $this->getResponse(), 'file');
         Log::writeInfo('---------------------------------------------------------------------------------------------', 'file');
         echo 'n';
         Log::writeInfo('Processing results', 'console');
     }
 }