private void updateHistory(HelixManager manager)
{
HelixDataAccessor accessor = manager.getHelixDataAccessor();
Builder keyBuilder = accessor.keyBuilder();
LeaderHistory history = accessor.getProperty(keyBuilder.controllerLeaderHistory());
if (history == null)
{
history = new LeaderHistory(PropertyType.HISTORY.toString());
}
history.updateHistory(manager.getClusterName(), manager.getInstanceName());
accessor.setProperty(keyBuilder.controllerLeaderHistory(), history);
}