Package gri.tasks.managers

Examples of gri.tasks.managers.UnknownJobException


  if (serviceUtil.isFault(doc)) {
      Element root = doc.getRootElement();
      FaultMessage fault = serializers.getFaultSerializer().readFault(root);
 
      if (fault.getType().equals("UnknownJobException"))
    throw new UnknownJobException(null);
      if (fault.getType().equals("UnknownWorkflowException"))
    throw new UnknownWorkflowException(null);
     
      throw new RemoteFaultException(fault);
  }
View Full Code Here


            String xml = service.killJob(jobKey);
            Document doc = buildXML(xml);
            throwExceptions(doc);
        }
        catch(UnknownJobException e) {
            throw new UnknownJobException(jobKey);
        }
        catch(Exception e) {
            throw new RemoteRuntimeException(e);
        }
    }
View Full Code Here

            BasicResponseMessage msg = parseBasicResponse(doc);          
            String status = msg.getResult().toLowerCase();
            return Util.parseJobStatus(status);
        }
        catch(UnknownJobException e) {
            throw new UnknownJobException(jobKey);
        }
        catch(Exception e) {
            throw new RemoteRuntimeException(e);
        }
       
View Full Code Here

            Element rootElem = doc.getRootElement();
            JobInfo info = serializers.getJobInfoSerializer().readJobInfo(rootElem);
            return info;
        }
        catch(UnknownJobException e) {
            throw new UnknownJobException(jobKey);
        }
        catch(Exception e) {
            throw new RemoteRuntimeException(e);
        }
    }
View Full Code Here

              ).getOutputParameterSerializer(config);
          
            return (Map)serializer.read(rootElem);
        }
        catch(UnknownJobException e) {
            throw new UnknownJobException(jobId);
        }
        catch(Exception e) {
            throw new RemoteRuntimeException(e);
        }
       
View Full Code Here

  if (serviceUtil.isFault(doc)) {
      Element root = doc.getRootElement();
      FaultMessage fault = serializers.getFaultSerializer().readFault(root);
 
      if (fault.getType().equals("UnknownJobException"))
    throw new UnknownJobException(null);
     
      throw new RemoteFaultException(fault);
  }
    }
View Full Code Here

TOP

Related Classes of gri.tasks.managers.UnknownJobException

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.