@ Override public void intervalUpdated ( Interval caller ) { output . out ( "===============================================================================" ) ; output . out ( "=== SNAPSHOT Interval " + interval . getName ( ) + " updated, Entity: " + id ) ; output . out ( "=== Timestamp: " + Date . currentDate ( ) + ", ServiceId: " + target . getProducerId ( ) ) ; output . out ( "===============================================================================" ) ; for ( IStats stat : target . getStats ( ) ) { output . out ( stat . toStatsString ( interval . getName ( ) ) ) ; } output . out ( "===============================================================================" ) ; output . out ( "== END: Interval " + interval . getName ( ) + ", Entity: " + id ) ; output . out ( "===============================================================================" ) ; }
Called by the timer . Writes the current status to the logger .