Package eu.admire.gateway.common

Examples of eu.admire.gateway.common.ProcessingStatus


     */
    public Color getBackground(Object obj) {
       
        Color ret = null;
        if (obj instanceof NamedProcess) {
            ProcessingStatus status =
                ((NamedProcess) obj).getGatewayProcess().getStatus();
            switch (status) {
               
                //Start with the error statuses
                case COMPILATION_ERROR:
View Full Code Here


     */
    private void startPolling() {
        Thread poller = new Thread(new Runnable() {
            public void run() {
               
                ProcessingStatus oldStat = mGatewayProcess.getStatus();
                ProcessingStatus newStat = oldStat;
               
                Map<String, Pair<Exception, DataSourceStatus>> oldSourceStates =
                    getSourceStates();
               
                Map<String, Pair<Exception, DataSourceStatus>> newSourceStates =
                    oldSourceStates;
               
                while (!oldStat.isDone() ||
                    !allResultsReadorDead(oldSourceStates)) {
                 
                  if (oldStat.isDone() && !mFinished) {
                    //stop timer
                    mFinishTime =
                        System.currentTimeMillis() - mDate.getTime();
                        mFinishTimeString = msToString(mFinishTime);
                        mFinished = true;
                  }
                    if (!newStat.equals(oldStat) ||
                        sourceStatesChanged(
                            newSourceStates, oldSourceStates)) {
                        NamedProcess.this.setChanged();
                        NamedProcess.this.notifyObservers();
                        oldStat = newStat;
View Full Code Here

 
  @Override
  public void run()
  {
   
    ProcessingStatus status = mGatewayProcess.getStatus();
    while (!status.isInitialised() && !status.isDone())
    {
      try
      {
        Thread.sleep(mGatewayProcess.getPollingInterval());
      }
View Full Code Here

            // get gateway and retrieve property data source

            LOG.debug("Creating dispel process client from uri...");
            DispelProcessClientREST gateway = new DispelProcessClientREST(new URI(gwURIString));
            LOG.debug("Done.");
            ProcessingStatus status = gateway.getStatus();
            LOG.debug("Waiting for root gateway to initialise.");
            while (!status.isInitialised())
            {
                if (status.isError()) {
                    throw new ActivityUserException(
                            new RequestInitialisationFailedException());
                }
                Thread.sleep(pollInterval);
                status = gateway.getStatus();
View Full Code Here

TOP

Related Classes of eu.admire.gateway.common.ProcessingStatus

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.