com.google.sitebricks.routing
Interface SystemMetrics


public interface SystemMetrics

Keeps track of various global performance and error metrics.

Author:
Dhanji R. Prasanna (dhanji@gmail.com)

Method Summary
 void activate()
          Puts the system into a ready state.
 boolean isActive()
           
 void logErrorsAndWarnings(Class<?> page, List<CompileError> errors, List<CompileError> warnings)
          This sets the current errors and warnings list as given, globally.
 void logPageRenderTime(Class<?> page, long time)
          Records the last page render time for the given page (in millis).
 

Method Detail

logPageRenderTime

void logPageRenderTime(Class<?> page,
                       long time)
Records the last page render time for the given page (in millis). This method is concurrent and does not guarantee that the last render time accurately reflects the last page delivered to a user.


logErrorsAndWarnings

void logErrorsAndWarnings(Class<?> page,
                          List<CompileError> errors,
                          List<CompileError> warnings)
This sets the current errors and warnings list as given, globally. This method is thread-safe.


activate

void activate()
Puts the system into a ready state. This is used by Sitebricks to determine whether we're in the compile phase.


isActive

boolean isActive()
Returns:
Returns true if the application is ready to begin processing requests, false if Sitebricks is still in the compile phase.


Copyright © 2014. All rights reserved.