Class GrouperLoaderLogger

java.lang.Object
edu.internet2.middleware.grouper.app.loader.GrouperLoaderLogger

public class GrouperLoaderLogger extends Object
logger for loader events
  • Constructor Details

    • GrouperLoaderLogger

      public GrouperLoaderLogger()
  • Method Details

    • isLoggerEnabled

      public static boolean isLoggerEnabled()
      is debug enabled
      Returns:
      true if enabled
    • removeThreadLocalMaps

      public static void removeThreadLocalMaps()
      done with thread local map
    • assignOverallId

      public static void assignOverallId(String overallId)
      Parameters:
      overallId -
    • assignSubjobId

      public static void assignSubjobId(String subjobId)
      Parameters:
      subjobId -
    • retrieveOverallId

      public static String retrieveOverallId()
      Returns:
      the overall id
    • retrieveSubjobId

      public static String retrieveSubjobId()
      Returns:
      the sub log id
    • initializeThreadLocalMap

      public static boolean initializeThreadLocalMap(String label, Map<String,Object> existingMap)
      when loader thing starts
      Parameters:
      label -
      existingMap -
      Returns:
      false if already initted
    • initializeThreadLocalMap

      public static boolean initializeThreadLocalMap(String label)
      when loader thing starts
      Parameters:
      label -
      Returns:
      false if already initted
    • retrieveMap

      public static Map<String,Object> retrieveMap(String label)
      get a map or create it
      Parameters:
      label -
      Returns:
      the map
    • addLogEntry

      public static void addLogEntry(String label, String key, Object value)
      add log entry
      Parameters:
      label - the type of log, e.g. overallLog
      key - key of log
      value - value
    • doTheLogging

      public static void doTheLogging(String label)
      Parameters:
      label - is the type of logger log something to the log file
    • skipLogging

      public static void skipLogging(String label)
      Parameters:
      label - is the type of logger log something to the log file