Class RequestStats

java.lang.Object
org.gorpipe.gor.RequestStats
All Implemented Interfaces:
org.gorpipe.gor.session.EventLogger

public class RequestStats extends Object implements org.gorpipe.gor.session.EventLogger
  • Field Details

    • nodes

      protected Map<String,org.gorpipe.gor.session.GorScriptTask> nodes
    • stats

      protected Map<String,org.gorpipe.gor.stats.StatsCollector> stats
    • createdFiles

      protected Map<String,String> createdFiles
    • iteratorsCreated

      protected int iteratorsCreated
    • query

      protected String query
    • session

      protected final org.gorpipe.gor.session.GorSession session
    • localHostName

      protected final String localHostName
  • Constructor Details

    • RequestStats

      public RequestStats(org.gorpipe.gor.session.GorSession session)
  • Method Details

    • getInfo

      public org.gorpipe.gor.session.EventLogger.SessionInfo getInfo()
      Specified by:
      getInfo in interface org.gorpipe.gor.session.EventLogger
    • nodeAddedOrUpdated

      protected void nodeAddedOrUpdated(org.gorpipe.gor.session.GorScriptTask task)
    • statsAdded

      protected void statsAdded(String signature, org.gorpipe.gor.stats.StatsCollector stats)
    • tasks

      public void tasks(Collection<org.gorpipe.gor.session.GorScriptTask> tasks)
      Specified by:
      tasks in interface org.gorpipe.gor.session.EventLogger
    • query

      public void query(String query)
      Specified by:
      query in interface org.gorpipe.gor.session.EventLogger
    • commandCreated

      public void commandCreated(String name, String origin, String commandSignature, String commandToExecute)
      Specified by:
      commandCreated in interface org.gorpipe.gor.session.EventLogger
    • commandStarted

      public void commandStarted(String name, String commandSignature, String cacheFile, String commandToExecute)
      Specified by:
      commandStarted in interface org.gorpipe.gor.session.EventLogger
    • commandEnded

      public void commandEnded(String name)
      Specified by:
      commandEnded in interface org.gorpipe.gor.session.EventLogger
    • commandCached

      public void commandCached(String name, String cacheFile)
      Specified by:
      commandCached in interface org.gorpipe.gor.session.EventLogger
    • iteratorCreated

      public void iteratorCreated(String args)
      Specified by:
      iteratorCreated in interface org.gorpipe.gor.session.EventLogger
    • endSession

      public void endSession()
      Specified by:
      endSession in interface org.gorpipe.gor.session.EventLogger
    • getStatsCollector

      public org.gorpipe.gor.stats.StatsCollector getStatsCollector()
      Specified by:
      getStatsCollector in interface org.gorpipe.gor.session.EventLogger
    • saveToJson

      public void saveToJson() throws IOException
      Throws:
      IOException