Package org.apache.airavata.registry.cpi

Examples of org.apache.airavata.registry.cpi.Registry


      throw new GFacException("Error persisting job status" + e.getLocalizedMessage(),e);
    }
  }
    public static void saveErrorDetails(JobExecutionContext jobExecutionContext, String errorMessage, CorrectiveAction action, ErrorCategory errorCatogory) throws GFacException {
      try {
      Registry registry = RegistryFactory.getDefaultRegistry();
    ErrorDetails details = new ErrorDetails();
      details.setActualErrorMessage(errorMessage);
      details.setCorrectiveAction(action);
      details.setActionableGroup(ActionableGroup.GATEWAYS_ADMINS);
      details.setCreationTime(Calendar.getInstance().getTimeInMillis());
      details.setErrorCategory(errorCatogory);
      registry.add(ChildDataType.ERROR_DETAIL, details, jobExecutionContext.getTaskData().getTaskID());
      } catch (Exception e) {
      throw new GFacException("Error persisting job status" + e.getLocalizedMessage(),e);
    }
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.registry.cpi.Registry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.