Exemplo n.º 1
0
  @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;
  }
Exemplo n.º 2
0
 @Override
 public void popCleanupCheckpoint(long checkpoint) {
   _checkPointMgr.popCheckPoint(checkpoint);
 }
Exemplo n.º 3
0
 @Override
 public long pushCleanupCheckpoint(String hostGuid, String vmName) {
   return _checkPointMgr.pushCheckPoint(new VmwareCleanupMaid(hostGuid, vmName));
 }