/** * @return void */ public function streamProcess() { $logger = Logger::getInstance('stream_log_location'); $logger->logInfo("in TwitterRealtimePlugin->streamProcess()", __METHOD__ . ',' . __LINE__); $stream_proc = new StreamProcess(); $stream_proc->processStreamData(); }
private function waitTillStop(StreamProcess $process) { $i = 0; while ($process->isRunning() && $i < 100) { usleep(1000); $i += 1; } }