コード例 #1
0
 /**
  * @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();
 }
コード例 #2
0
 private function waitTillStop(StreamProcess $process)
 {
     $i = 0;
     while ($process->isRunning() && $i < 100) {
         usleep(1000);
         $i += 1;
     }
 }