コード例 #1
0
 protected void RefreshAllVdssInPool(boolean connect) {
   java.util.ArrayList<Guid> vdsIdsToSetNonOperational = new java.util.ArrayList<Guid>();
   runSynchronizeOperation(
       new RefreshPoolSingleAsyncOperationFactory(), vdsIdsToSetNonOperational);
   for (Guid vdsId : vdsIdsToSetNonOperational) {
     SetNonOperationalVdsParameters tempVar =
         new SetNonOperationalVdsParameters(vdsId, STORAGE_DOMAIN_UNREACHABLE);
     tempVar.setSaveToDb(true);
     tempVar.setStorageDomainId(getStorageDomain().getId());
     tempVar.setTransactionScopeOption(TransactionScopeOption.RequiresNew);
     getBackend().runInternalAction(VdcActionType.SetNonOperationalVds, tempVar);
   }
 }
コード例 #2
0
 @Override
 public void vdsNonOperational(
     Guid vdsId,
     NonOperationalReason reason,
     boolean logCommand,
     Guid domainId,
     Map<String, String> customLogValues) {
   ExecutionHandler.updateSpecificActionJobCompleted(vdsId, VdcActionType.MaintenanceVds, false);
   SetNonOperationalVdsParameters tempVar =
       new SetNonOperationalVdsParameters(vdsId, reason, customLogValues);
   tempVar.setStorageDomainId(domainId);
   tempVar.setShouldBeLogged(logCommand);
   backend.runInternalAction(
       VdcActionType.SetNonOperationalVds, tempVar, ExecutionHandler.createInternalJobContext());
 }