Examples of Duration


Examples of org.apache.spark.streaming.Duration

    }

    StreamingExamples.setStreamingLogLevels();

    // Create the context
    JavaStreamingContext ssc = new JavaStreamingContext(args[0], "QueueStream", new Duration(1000),
            System.getenv("SPARK_HOME"), JavaStreamingContext.jarOfClass(JavaQueueStream.class));

    // Create the queue through which RDDs can be pushed to
    // a QueueInputDStream
    Queue<JavaRDD<Integer>> rddQueue = new LinkedList<JavaRDD<Integer>>();
View Full Code Here

Examples of org.apache.wicket.util.time.Duration

    private static final long serialVersionUID = 1L;

    @Override
    protected PageAccessSynchronizer createInstance()
    {
      final Duration timeout;
      if (Application.exists())
      {
        timeout = Application.get().getRequestCycleSettings().getTimeout();
      }
      else
View Full Code Here

Examples of org.apache.wicket.util.time.Duration

      if (attributes.isAllowDefault())
      {
        attributesJson.put("ad", true);
      }

      Duration requestTimeout = attributes.getRequestTimeout();
      if (requestTimeout != null)
      {
        attributesJson.put("rt", requestTimeout.getMilliseconds());
      }

      boolean wicketAjaxResponse = attributes.isWicketAjaxResponse();
      if (wicketAjaxResponse == false)
      {
View Full Code Here

Examples of org.apache.wicket.util.time.Duration

    {
      resource.setContentDisposition(Strings.isEmpty(fileName) ? ContentDisposition.INLINE
          : ContentDisposition.ATTACHMENT);
    }

    final Duration cacheDuration = getCacheDuration();
    if (cacheDuration != null)
    {
      resource.setCacheDuration(cacheDuration);
    }
  }
View Full Code Here

Examples of org.apache.wicket.util.time.Duration

      if (attributes.isAllowDefault())
      {
        attributesJson.put("ad", true);
      }

      Duration requestTimeout = attributes.getRequestTimeout();
      if (requestTimeout != null)
      {
        attributesJson.put("rt", requestTimeout.getMilliseconds());
      }

      boolean wicketAjaxResponse = attributes.isWicketAjaxResponse();
      if (wicketAjaxResponse == false)
      {
View Full Code Here

Examples of org.apache.wicket.util.time.Duration

   * Tests timer behavior in a component added to an AjaxRequestTarget
   */
  @Test
  public void addToAjaxUpdate()
  {
    Duration dur = Duration.seconds(20);
    final MyAjaxSelfUpdatingTimerBehavior timer = new MyAjaxSelfUpdatingTimerBehavior(dur);
    final MockPageWithLinkAndComponent page = new MockPageWithLinkAndComponent();

    page.add(new WebComponent(MockPageWithLinkAndComponent.COMPONENT_ID).setOutputMarkupId(true));

View Full Code Here

Examples of org.apache.wicket.util.time.Duration

   * tests timer behavior in a WebPage.
   */
  @Test
  public void addToWebPage()
  {
    Duration dur = Duration.seconds(20);
    final MyAjaxSelfUpdatingTimerBehavior timer = new MyAjaxSelfUpdatingTimerBehavior(dur);
    final MockPageWithLinkAndComponent page = new MockPageWithLinkAndComponent();
    Label label = new Label(MockPageWithLinkAndComponent.COMPONENT_ID, "Hello");
    page.add(label);
    page.add(new Link<Void>(MockPageWithLinkAndComponent.LINK_ID)
View Full Code Here

Examples of org.apache.ws.jaxme.util.Duration

    cal.set(Calendar.MONTH, 11);
    cal.set(Calendar.YEAR, 2002);
    return cal;
  }
  public Duration getDuration() {
    Duration d = new Duration(1, 2, 3, 4, 5, 6.7);
    return d;
  }
View Full Code Here

Examples of org.cedj.geekseek.domain.conference.model.Duration

public class ConferenceValidationTestCase extends TimestampableSpecification<Conference> {

    @Override
    protected Conference createInstance() {
        return new Conference("", "", new Duration(new Date(), new Date()));
    }
View Full Code Here

Examples of org.clapper.util.text.Duration

        formatOne(864001001, "10 days, 1 second, 1 millisecond");
    }

    private void parseOne(String s, long expected) throws Exception
    {
        Duration d = new Duration(s);
        assertEquals("Parse of \"" + s + "\" did not produce correct result",
                     expected, d.getDuration());
    }
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.