Package org.xnap.commons.io

Examples of org.xnap.commons.io.Job


public class JobHelper {
 
  private final static Log logger = LogFactory.getLog(JobHelper.class);
 
  static void retryJob(final int jobID) {
    Job<?> ioJob = new Job() {
      public Object run(ProgressMonitor monitor) throws Exception
      {
        monitor.setTotalSteps(3);
       
        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
View Full Code Here


      JHylaFAX.getInstance().showError(i18n.tr("Could not retry job"), e);
    }
  }

  static void resumeJob(final int jobID) {
    Job<?> ioJob = new Job() {
      public Object run(ProgressMonitor monitor) throws Exception
      {
        monitor.setTotalSteps(2);
       
        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
View Full Code Here

    }
    return null;
  }

  static boolean delete(final String filename) {
    Job<?> ioJob = new Job() {
      public Object run(ProgressMonitor monitor) throws Exception
      {
        monitor.setTotalSteps(2);
        monitor.setText(i18n.tr("Deleting file"));
        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
View Full Code Here

    }
    return true;
  }

  static boolean save(final File file, final String filename, final long size) {
    Job<?> ioJob = new Job() {
      public Object run(ProgressMonitor monitor) throws Exception
      {
        monitor.setTotalSteps(12);
       
        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
View Full Code Here

    }
    return true;
  }

  static void removeJob(final int jobID) {
    Job<?> ioJob = new Job() {
      public Object run(ProgressMonitor monitor) throws Exception
      {
        monitor.setTotalSteps(2);
       
        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
View Full Code Here

      JHylaFAX.getInstance().showError(i18n.tr("Could not remove job"), e);
    }
  }

  static void suspendJob(final int jobID) {
    Job<?> ioJob = new Job() {
      public Object run(ProgressMonitor monitor) throws Exception
      {
        monitor.setTotalSteps(2);
       
        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
View Full Code Here

  public boolean apply() {
    if (!super.apply()) {
      return false;
    }

    Job<?> ioJob = new Job() {
      public Object run(ProgressMonitor monitor) throws Exception
      {
        monitor.setTotalSteps(4);
       
        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
View Full Code Here

   
    return true;
  }
 
  private boolean send(final Fax fax) { 
    Job<?> ioJob = new Job() {
      public Object run(ProgressMonitor monitor) throws Exception
      {
        monitor.setTotalSteps(13 + fax.documents.size() * 10);
       
        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
View Full Code Here

  public boolean apply() {
    if (!super.apply()) {
      return false;
    }
 
    Job<?> ioJob = new Job() {
      public Object run(ProgressMonitor monitor) throws Exception
      {
        monitor.setTotalSteps(4);
       
        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
View Full Code Here

TOP

Related Classes of org.xnap.commons.io.Job

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.