Examples of Stop


Examples of org.jberet.job.model.Transition.Stop

                    setOuterContextStatus(batchContext.getOuterContexts(), BatchStatus.FAILED,
                            exitStatus, fail.getExitStatus(), partOfDecision);
                    return null;
                }
            } else //stop
                final Stop stop = (Stop) e;
                if (matches(exitStatus, stop.getOn())) {
                    setOuterContextStatus(batchContext.getOuterContexts(), BatchStatus.STOPPED,
                            exitStatus, stop.getExitStatus(), partOfDecision);
                    final String restartPoint = stop.getRestart()//job-level step, flow or split to restart
                    if (restartPoint != null) {
                        batchContext.getJobContext().getJobExecution().setRestartPosition(restartPoint);
                    }
                    return null;
                }
View Full Code Here

Examples of org.jberet.job.model.Transition.Stop

                    if (!oldVal.equals(newVal)) {
                        end.setExitStatus(newVal);
                    }
                }
            } else if (e instanceof Stop) {
                final Stop stop = (Stop) e;
                oldVal = stop.getOn();
                newVal = resolve(oldVal);
                if (!oldVal.equals(newVal)) {
                    stop.setOn(newVal);
                }
                oldVal = stop.getExitStatus();
                if (oldVal != null) {
                    newVal = resolve(oldVal);
                    if (!oldVal.equals(newVal)) {
                        stop.setExitStatus(newVal);
                    }
                }
                oldVal = stop.getRestart();
                if (oldVal != null) {
                    newVal = resolve(oldVal);
                    if (!oldVal.equals(newVal)) {
                        stop.setRestart(newVal);
                    }
                }
            }
        }
    }
View Full Code Here

Examples of org.jberet.job.model.Transition.Stop

                    if (!oldVal.equals(newVal)) {
                        end.setExitStatus(newVal);
                    }
                }
            } else if (e instanceof Stop) {
                final Stop stop = (Stop) e;
                oldVal = stop.getOn();
                newVal = resolve(oldVal);
                if (!oldVal.equals(newVal)) {
                    stop.setOn(newVal);
                }
                oldVal = stop.getExitStatus();
                if (oldVal != null) {
                    newVal = resolve(oldVal);
                    if (!oldVal.equals(newVal)) {
                        stop.setExitStatus(newVal);
                    }
                }
                oldVal = stop.getRestart();
                if (oldVal != null) {
                    newVal = resolve(oldVal);
                    if (!oldVal.equals(newVal)) {
                        stop.setRestart(newVal);
                    }
                }
            }
        }
    }
View Full Code Here

Examples of org.jboss.test.ws.jaxws.samples.dar.generated.Stop

      DarRequest request = new DarRequest();
      request.setMapId("map1234");
      for (int s=0; s<5; s++)
      {
         ServiceRequest serviceRequest = new ServiceRequest();
         Stop up = new Stop();
         up.setNode(new Double(Math.random()*1000).intValue());
         up.setTime(new XMLGregorianCalendarImpl(new GregorianCalendar()));
         Stop down = new Stop();
         down.setNode(new Double(Math.random()*1000).intValue());
         down.setTime(new XMLGregorianCalendarImpl(new GregorianCalendar()));
         serviceRequest.setFrom(up);
         serviceRequest.setTo(down);
         serviceRequest.setPeople(new Double(Math.random()*3).intValue()+1);
         serviceRequest.setId("Req" + s);
         request.getRequests().add(serviceRequest);
View Full Code Here

Examples of org.onebusaway.gtfs.model.Stop

      double lon = 0;
      for (Stop stop : stops) {
        lat += stop.getLat();
        lon += stop.getLon();
      }     
      Stop stop = stops.get(0);
      Stop station = new Stop();
      station.setId(id(stop.getParentStation()));
      station.setName(stop.getName());
      station.setLat(lat / stops.size());
      station.setLon(lon / stops.size());
      station.setLocationType(1);
      _dao.saveEntity(station);
    }
  }
View Full Code Here

Examples of org.rhq.server.control.command.Stop

    });

    public Commands() {
        registerCommand(new Install());
        registerCommand(new Start());
        registerCommand(new Stop());
        registerCommand(new Restart());
        registerCommand(new Status());
        registerCommand(new Console());
        // Add the service removal command only on windows
        if (File.separatorChar == '\\') {
View Full Code Here

Examples of trams.data.Stop

   
    private void createAndStoreStop(String name, Calendar time) {
        Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        session.beginTransaction();

        Stop theStop = new Stop();
        theStop.setStopName(name);
        theStop.setStopTime(time);
        session.save(theStop);

        session.getTransaction().commit();
    }
View Full Code Here

Examples of trams.data.Stop

    private void createAndStoreService() {
        Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        session.beginTransaction();

        Service theService = new Service();
        theService.addStop(new Stop("Rathaus Pankow", Calendar.getInstance()));
        theService.addStop(new Stop("Pankow Kirche", Calendar.getInstance()));
        theService.addStop(new Stop("S + U Pankow", Calendar.getInstance()));
        session.save(theService);

        session.getTransaction().commit();
    }
View Full Code Here

Examples of trams.data.Stop

    private RouteSchedule createAndStoreRouteSchedule(String routeNumber, int scheduleNumber, int delayInMins) {
        //Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        //session.beginTransaction();

        Service theService = new Service();
        theService.addStop(new Stop("Rathaus Pankow", Calendar.getInstance()));
        theService.addStop(new Stop("Pankow Kirche", Calendar.getInstance()));
        theService.addStop(new Stop("S + U Pankow", Calendar.getInstance()));
        RouteSchedule theRouteSchedule = new RouteSchedule();
        theRouteSchedule.addService(theService);
        theRouteSchedule.setRouteNumber(routeNumber);
        theRouteSchedule.setScheduleNumber(scheduleNumber);
        theRouteSchedule.setDelayInMins(delayInMins);
View Full Code Here

Examples of trams.data.Stop

    private Vehicle createAndStoreVehicle(String registrationNumber, Calendar deliveryDate, double depreciationFactor, String imagePath, String model, int seatingNum, int standingNum, double purchasePrice) {
        //Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        //session.beginTransaction();

        Service theService = new Service();
        theService.addStop(new Stop("Rathaus Pankow", Calendar.getInstance()));
        theService.addStop(new Stop("Pankow Kirche", Calendar.getInstance()));
        theService.addStop(new Stop("S + U Pankow", Calendar.getInstance()));
        RouteSchedule theRouteSchedule = new RouteSchedule();
        theRouteSchedule.addService(theService);
        theRouteSchedule.setRouteNumber("2A");
        theRouteSchedule.setScheduleNumber(1);
        theRouteSchedule.setDelayInMins(5);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.