Package org.apache.airavata

Examples of org.apache.airavata.ComputingActivity


    public JobState parseMessage(String message)throws AiravataMonitorException {
        /*todo write a json message parser here*/
        logger.debug(message);
        ObjectMapper objectMapper = new ObjectMapper();
        try {
            ComputingActivity computingActivity = objectMapper.readValue(message.getBytes(), ComputingActivity.class);
            logger.info(computingActivity.getIDFromEndpoint());
            List<String> stateList = computingActivity.getState();
            JobState jobState = null;
            for (String aState : stateList) {
                jobState = getStatusFromString(aState);
            }
            // we get the last value of the state array
View Full Code Here

TOP

Related Classes of org.apache.airavata.ComputingActivity

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.