Package org.openbp.core

Examples of org.openbp.core.OpenBPException


      }
      return desc;
    }
    catch (SchedulerException e)
    {
      throw new OpenBPException("scheduler.getTriggersOfJob", "Error scheduling process.", e);
    }
  }
View Full Code Here


        }
        catch (Exception e)
        {
          String msg = LogUtil.error(getClass(), "Cannot find the scheduled token context (id $0) for job $1.", tokenId,
            jobDetail.getGroup() + "." + jobDetail.getName());
          OpenBPException ex = new OpenBPException("scheduler.missingTokenContext", msg);
          throw ex;
        }
      }
    }
    desc.setPositionRef(dataMap.getString(ScheduledProcessJob.KEY_POSITION_REF));
View Full Code Here

          unregisterClient(id);
        }
        else
        {
          if (client.getTimeout() != 0)
            throw new OpenBPException("Engine.Debugger", "Debugger with id '" + id + "' already registered, timeout is in "
              + (timeout / 60) + " min.");
          throw new OpenBPException("Engine.Debugger", "Debugger with id '" + id + "' already registered");
        }
      }
    }

    // Create a new client and add it to the clients
View Full Code Here

      client.setTimestamp(timestamp);

      return client;
    }

    throw new OpenBPException("Engine.Debugger", "Debugger: Client '" + clientId + "' is not a registered debugger client");
  }
View Full Code Here

      start();
    }
    catch (SchedulerException e)
    {
      throw new OpenBPException("scheduler.start", "Error starting scheduler.", e);
    }
    catch (IOException e)
    {
      throw new OpenBPException("scheduler.start", "Error reading scheduler configuration.", e);
    }
    finally
    {
      try
      {
View Full Code Here

      // shutdown() does not return until executing Jobs complete execution
      quartzInstance.shutdown(true);
    }
    catch (SchedulerException e)
    {
      throw new OpenBPException("scheduler.shutdown", "Error shutting down scheduler.", e);
    }
  }
View Full Code Here

    {
      quartzInstance.start();
    }
    catch (SchedulerException e)
    {
      throw new OpenBPException("scheduler.start", "Error starting scheduler.", e);
    }
  }
View Full Code Here

    {
      quartzInstance.standby();
    }
    catch (SchedulerException e)
    {
      throw new OpenBPException("scheduler.suspend", "Error suspending scheduler.", e);
    }
  }
View Full Code Here

    int lifecycleState = context.getLifecycleState();
    if (lifecycleState != LifecycleState.CREATED)
    {
      String msg = LogUtil.error(getClass(), "Token has invalid lifecycle state for operation startToken. [{0}]", context);
      throw new OpenBPException("InvalidLifecycleState", msg);
    }

    beginToken(context);
    context.setLifecycleRequest(LifecycleRequest.RESUME);
    tokenContextService.addContext(context);
View Full Code Here

    int lifecycleState = context.getLifecycleState();
    if (lifecycleState != LifecycleState.SUSPENDED && lifecycleState != LifecycleState.IDLING)
    {
      String msg = LogUtil.error(getClass(), "Token has invalid lifecycle state for operation resumeToken. [{0}]", context);
      throw new OpenBPException("InvalidLifecycleState", msg);
    }

    context.setLifecycleRequest(LifecycleRequest.RESUME);

    if (lifecycleState != LifecycleState.IDLING)
View Full Code Here

TOP

Related Classes of org.openbp.core.OpenBPException

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.