Package com.sun.sgs.kernel

Examples of com.sun.sgs.kernel.TaskScheduler


    DATA_STORE_CLASS_PROPERTY);
      optimisticWriteLocks = wrappedProps.getBooleanProperty(
    OPTIMISTIC_WRITE_LOCKS, Boolean.FALSE);
      trackStaleObjects = wrappedProps.getBooleanProperty(
    TRACK_STALE_OBJECTS_PROPERTY, Boolean.FALSE);
      TaskScheduler taskScheduler =
    systemRegistry.getComponent(TaskScheduler.class);
      Identity taskOwner = txnProxy.getCurrentOwner();
      scheduler = new DelegatingScheduler(taskScheduler, taskOwner);
            NodeType nodeType =
                wrappedProps.getEnumProperty(StandardProperties.NODE_TYPE,
View Full Code Here


    Level.SEVERE, e, "JeEnvironment initialization failed");
      throw e;
  }
  if (stats >= 0) {
      statsTask = new StatsRunnable();
      TaskScheduler taskScheduler =
    systemRegistry.getComponent(TaskScheduler.class);
      statsTaskHandle = taskScheduler.scheduleRecurringTask(
    statsTask, txnProxy.getCurrentOwner(),
    System.currentTimeMillis() + stats, stats);
  }

        logger.log(Level.CONFIG,
View Full Code Here

    "DataStore directory does not exist: " + directory);
  } catch (DatabaseException e) {
      throw convertException(e, false);
  }
  checkpointTask = new CheckpointRunnable(checkpointSize);
  TaskScheduler taskScheduler =
      systemRegistry.getComponent(TaskScheduler.class);
  checkpointTaskHandle = taskScheduler.scheduleRecurringTask(
      checkpointTask, txnProxy.getCurrentOwner(),
      System.currentTimeMillis() + checkpointInterval,
      checkpointInterval);

        logger.log(Level.CONFIG,
View Full Code Here

TOP

Related Classes of com.sun.sgs.kernel.TaskScheduler

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.