dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #32348
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16509: Profiling for resource table and analytics
------------------------------------------------------------
revno: 16509
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-08-25 18:24:21 +0200
message:
Profiling for resource table and analytics
modified:
dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/resourcetable/scheduling/ResourceTableTask.java
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/scheduling/AnalyticsTableTask.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/resourcetable/scheduling/ResourceTableTask.java'
--- dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/resourcetable/scheduling/ResourceTableTask.java 2014-08-05 10:57:11 +0000
+++ dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/resourcetable/scheduling/ResourceTableTask.java 2014-08-25 16:24:21 +0000
@@ -38,6 +38,7 @@
import org.hisp.dhis.setting.SystemSettingManager;
import org.hisp.dhis.system.notification.NotificationLevel;
import org.hisp.dhis.system.notification.Notifier;
+import org.hisp.dhis.system.util.Clock;
import org.springframework.beans.factory.annotation.Autowired;
/**
@@ -73,6 +74,7 @@
public void run()
{
final Date startTime = new Date();
+ final Clock clock = new Clock().startClock();
notifier.notify( taskId, "Generating resource tables" );
@@ -80,7 +82,7 @@
{
generateAll();
- notifier.notify( taskId, NotificationLevel.INFO, "Resource tables generated", true );
+ notifier.notify( taskId, NotificationLevel.INFO, "Resource tables generated: " + clock.time(), true );
}
catch ( RuntimeException ex )
{
=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/scheduling/AnalyticsTableTask.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/scheduling/AnalyticsTableTask.java 2014-08-05 10:57:11 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/scheduling/AnalyticsTableTask.java 2014-08-25 16:24:21 +0000
@@ -41,6 +41,7 @@
import org.hisp.dhis.scheduling.TaskId;
import org.hisp.dhis.setting.SystemSettingManager;
import org.hisp.dhis.system.notification.Notifier;
+import org.hisp.dhis.system.util.Clock;
import org.hisp.dhis.system.util.DebugUtils;
import org.springframework.beans.factory.annotation.Autowired;
@@ -117,6 +118,7 @@
public void run()
{
final Date startTime = new Date();
+ final Clock clock = new Clock().startClock();
notifier.clear( taskId ).notify( taskId, "Analytics table update process started" );
@@ -149,7 +151,7 @@
eventAnalyticsTableService.update( lastYears, taskId );
}
- notifier.notify( taskId, INFO, "Analytics tables updated", true );
+ notifier.notify( taskId, INFO, "Analytics tables updated: " + clock.time(), true );
}
catch ( RuntimeException ex )
{