mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Action Tracking Service update
Keep a record of which machine an action is currently running on, so for a cluster situation you know where you actions are git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21482 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -20,6 +20,7 @@ package org.alfresco.repo.action;
|
||||
|
||||
import static org.alfresco.repo.action.ActionServiceImplTest.assertBefore;
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.transaction.UserTransaction;
|
||||
@@ -171,7 +172,12 @@ public class ActionTrackingServiceImplTest extends TestCase
|
||||
assertEquals(null, d.getPersistedActionRef());
|
||||
assertEquals(null, d.getStartedAt());
|
||||
|
||||
// TODO Check machine details
|
||||
// Check the machine details
|
||||
// Should be "IP : Name"
|
||||
InetAddress localhost = InetAddress.getLocalHost();
|
||||
String machineName = localhost.getHostAddress() + " : " +
|
||||
localhost.getHostName();
|
||||
assertEquals(machineName, d.getRunningOn());
|
||||
}
|
||||
|
||||
/** Running an action gives it an execution ID */
|
||||
|
Reference in New Issue
Block a user