Get JMX working again for subsystem monitor beans.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55331 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2013-09-16 11:28:41 +00:00
parent 47436a8477
commit 94e3d8c118
4 changed files with 148 additions and 10 deletions

View File

@@ -148,16 +148,18 @@ public class Monitor
return syncMonitor.getSynchronizationStatus(getZone(component.getId()));
}
public Date getSynchronizationLastUserUpdateTime()
{
return syncMonitor.getSynchronizationLastUserUpdateTime(getZone(component.getId()));
}
public Date getSynchronizationLastGroupUpdateTime()
{
return syncMonitor.getSynchronizationLastGroupUpdateTime(getZone(component.getId()));
}
// public Date getSynchronizationLastUserUpdateTime()
// {
// // TODO This method fails due to a unable to find transaction error - Comment out for now
// return syncMonitor.getSynchronizationLastUserUpdateTime(getZone(component.getId()));
// }
//
// public Date getSynchronizationLastGroupUpdateTime()
// {
// // TODO This method fails due to a unable to find transaction error - Comment out for now
// return syncMonitor.getSynchronizationLastGroupUpdateTime(getZone(component.getId()));
// }
//
public String getSynchronizationLastError()
{
return syncMonitor.getSynchronizationLastError(getZone(component.getId()));
@@ -168,6 +170,21 @@ public class Monitor
return syncMonitor.getSynchronizationSummary(getZone(component.getId()));
}
public String getLastRunOnServer()
{
return syncMonitor.getLastRunOnServer();
}
public Date getSyncStartTime()
{
return syncMonitor.getSyncStartTime();
}
public Date getSyncEndTime()
{
return syncMonitor.getSyncEndTime();
}
/**
* Get the zone for an ldap authentication component. e.g given [managed,ldap1] return ldap1
* @param id ths id of the subsystem