Package eu.admire.gateway.common.errors

Examples of eu.admire.gateway.common.errors.ProcessingElementErrorType


            {
                Entry<ActivityInstanceName, ActivityProcessingStatus> entry =
                    (Entry<ActivityInstanceName, ActivityProcessingStatus>) iterator.next();
                if (entry.getValue().getStatus() == ActivityStatus.ERROR)
                {
                    ProcessingElementErrorType pe =
                        mObjectFactory.createProcessingElementErrorType();
                    // TODO activity name needs to be mapped to processing element
                    Activity activity = mActivities.get(entry.getKey());
                    if (activity != null)
                    {
                        pe.setType(activity.getActivityName().toString());
                    }
                    else
                    {
                        // if the activity instance can't be mapped then it was
                        // inserted automatically by OGSA-DAI
                        // only Tee is inserted automatically at the moment
                        pe.setType(UNKNOWN);
                    }
                    Throwable exception = entry.getValue().getError();
                    ErrorType errorType = ErrorHelper.createError(exception);
                    pe.getError().add(errorType);
                    runtime.getProcessingElement().add(pe);
                }
            }
        }
        else
View Full Code Here


  @Test
  public void runtime(){

    Errors mErrors = new ObjectFactory().createErrors();
    RuntimeErrorType mRuntimeErrorType = new ObjectFactory().createRuntimeErrorType();
    ProcessingElementErrorType mProcessingElementErrorType = new ProcessingElementErrorType();

    String expectedType = "run-type";
    String expectedInstance = "run-instance";
   
    mProcessingElementErrorType.setType(expectedType);
    mProcessingElementErrorType.setInstance(expectedInstance);
   
    mRuntimeErrorType.getProcessingElement().add(mProcessingElementErrorType);   
    mErrors.setRuntime(mRuntimeErrorType);

    String errorString = marshallErrors(mErrors);
View Full Code Here

TOP

Related Classes of eu.admire.gateway.common.errors.ProcessingElementErrorType

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.