@Override @DB public boolean processAnswers(long agentId, long seq, Answer[] answers) { if (answers != null) { for (Answer answer : answers) { String execIdStr = answer.getContextParam("execid"); if (execIdStr != null) { long execId = 0; try { execId = Long.parseLong(execIdStr); } catch (NumberFormatException e) { assert (false); } _cmdExecLogDao.expunge(execId); } String checkPointIdStr = answer.getContextParam("checkpoint"); if (checkPointIdStr != null) { _checkPointMgr.popCheckPoint(Long.parseLong(checkPointIdStr)); } } } return false; }
@Override public void popCleanupCheckpoint(long checkpoint) { _checkPointMgr.popCheckPoint(checkpoint); }
@Override public long pushCleanupCheckpoint(String hostGuid, String vmName) { return _checkPointMgr.pushCheckPoint(new VmwareCleanupMaid(hostGuid, vmName)); }