Examples of TimeSpec


Examples of org.jboss.as.threads.TimeSpec

            newControllers.add(factoryBuilder.install());
        } else {
            factoryBuilder.install();
        }

        final UnboundedQueueThreadPoolService service = new UnboundedQueueThreadPoolService(maxThreads,  new TimeSpec(TimeUnit.MILLISECONDS, keepAlive));
        ServiceBuilder<ManagedJBossThreadPoolExecutorService> builder = serviceTarget.addService(BASE_SERVICE_NAME.append(name), service)
                .addDependency(threadFactoryServiceName, ThreadFactory.class, service.getThreadFactoryInjector())
                .setInitialMode(ServiceController.Mode.ACTIVE);
        if (verificationHandler != null) {
            builder.addListener(verificationHandler);
View Full Code Here

Examples of org.jrobin.core.timespec.TimeSpec

   *                        allowed see RRDTool's <code>rrdfetch</code> man page.<p>
   * @return timestamp in seconds since epoch.
   * @throws RrdException Thrown if invalid time specification is supplied.
   */
  public static long getTimestamp(final String atStyleTimeSpec) throws RrdException {
      final TimeSpec timeSpec = new TimeParser(atStyleTimeSpec).parse();
    return timeSpec.getTimestamp();
  }
View Full Code Here

Examples of org.jrobin.core.timespec.TimeSpec

   *                         allowed see RRDTool's <code>rrdfetch</code> man page.<p>
   * @return An array of two longs representing starting and ending timestamp in seconds since epoch.
   * @throws RrdException Thrown if any input time specification is invalid.
   */
  public static long[] getTimestamps(final String atStyleTimeSpec1, final String atStyleTimeSpec2) throws RrdException {
      final TimeSpec timeSpec1 = new TimeParser(atStyleTimeSpec1).parse();
    final TimeSpec timeSpec2 = new TimeParser(atStyleTimeSpec2).parse();
    return TimeSpec.getTimestamps(timeSpec1, timeSpec2);
  }
View Full Code Here

Examples of org.jrobin.core.timespec.TimeSpec

   *                         allowed see RRDTool's <code>rrdfetch</code> man page.<p>
   * @return An array of two longs representing starting and ending timestamp in seconds since epoch.
   * @throws RrdException Thrown if any input time specification is invalid.
   */
  public static long[] getTimestamps(String atStyleTimeSpec1, String atStyleTimeSpec2) throws RrdException {
    TimeSpec timeSpec1 = new TimeParser(atStyleTimeSpec1).parse();
    TimeSpec timeSpec2 = new TimeParser(atStyleTimeSpec2).parse();
    return TimeSpec.getTimestamps(timeSpec1, timeSpec2);
  }
View Full Code Here

Examples of org.jrobin.core.timespec.TimeSpec

   *                        allowed see RRDTool's <code>rrdfetch</code> man page.<p>
   * @return timestamp in seconds since epoch.
   * @throws RrdException Thrown if invalid time specification is supplied.
   */
  public static long getTimestamp(String atStyleTimeSpec) throws RrdException {
    TimeSpec timeSpec = new TimeParser(atStyleTimeSpec).parse();
    return timeSpec.getTimestamp();
  }
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.