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