Examples of Watcher


Examples of com.taskadapter.redmineapi.bean.Watcher

        result.setDefault(JsonInput.getOptionalBool(content, "is_default"));
        return result;
    }

  public static Watcher parseWatcher(JSONObject content) throws JSONException {
    final Watcher result = WatcherFactory.create(JsonInput.getIntOrNull(content, "id"));
    result.setName(JsonInput.getStringOrNull(content, "name"));
    return result;
  }
View Full Code Here

Examples of com.xmultra.watcher.Watcher

            // Get the JcronMessages and put into list of JcronMessage objects.
            cronMessages = this.parseJcronMessagesNode(messagesNode,
                                                       cronMessages);

            // Get the watcher. If null, there was a config error so return.
            Watcher jcronWatcher = getWatcher(cronMessages, alarmsNode);
            if (jcronWatcher == null) {
                return false;
            }

            // Set the Watcher into the parent class.
View Full Code Here

Examples of io.s4.util.Watcher

            System.out.println("Intializing event clock time with seed time " + s4EventClock.getCurrentTime());
        }
       
        PEContainer peContainer = (PEContainer) context.getBean("peContainer");

        Watcher w = (Watcher) context.getBean("watcher");
        w.setConfigFilename(configPath);

       
        // load extension modules
        String[] configFileNames = getModuleConfigFiles(extsHome, prop);
        if (configFileNames.length > 0) {
View Full Code Here

Examples of mage.watchers.Watcher

  }

  @Override
  public boolean applies(GameEvent event, Ability source, Game game) {
    if (event.getType() == EventType.DECLARE_ATTACKER && source.getSourceId().equals(event.getSourceId())) {
      Watcher watcher = game.getState().getWatchers().get(source.getControllerId(), "OpponentDamaged");
      if (watcher != null)
        return !watcher.conditionMet();
    }
    return false;
  }
View Full Code Here

Examples of org.apache.s4.util.Watcher

            System.out.println("Intializing event clock time with seed time " + s4EventClock.getCurrentTime());
        }
       
        PEContainer peContainer = (PEContainer) context.getBean("peContainer");

        Watcher w = (Watcher) context.getBean("watcher");
        w.setConfigFilename(configPath);

       
        // load extension modules
        String[] configFileNames = getModuleConfigFiles(extsHome, prop);
        if (configFileNames.length > 0) {
View Full Code Here

Examples of org.apache.zookeeper.Watcher

        try
        {
            client.create().forPath("/sessionTest");

            final AtomicBoolean sessionDied = new AtomicBoolean(false);
            Watcher watcher = new Watcher()
            {
                @Override
                public void process(WatchedEvent event)
                {
                    if ( event.getState() == Event.KeeperState.Expired )
View Full Code Here

Examples of org.apache.zookeeper.Watcher

      throws IOException, KeeperException, InterruptedException, ServiceException {
    final RecoverableZooKeeper recoverableZk = Mockito
        .mock(RecoverableZooKeeper.class);
    AssignmentManagerWithExtrasForTesting am = setUpMockedAssignmentManager(
        this.server, this.serverManager);
    Watcher zkw = new ZooKeeperWatcher(HBaseConfiguration.create(), "unittest",
        null) {
      public RecoverableZooKeeper getRecoverableZooKeeper() {
        return recoverableZk;
      }
    };
View Full Code Here

Examples of org.apache.zookeeper.Watcher

        (
            localZookeeperFactory,
            builder.getEnsembleProvider(),
            builder.getSessionTimeoutMs(),
            builder.getConnectionTimeoutMs(),
            new Watcher()
            {
                @Override
                public void process(WatchedEvent watchedEvent)
                {
                    CuratorEvent event = new CuratorEventImpl
View Full Code Here

Examples of org.apache.zookeeper.Watcher

    {
        long            waitTimeMs = connectionTimeoutMs;
        while ( !state.isConnected() && (waitTimeMs > 0) )
        {
            final CountDownLatch            latch = new CountDownLatch(1);
            Watcher tempWatcher = new Watcher()
            {
                @Override
                public void process(WatchedEvent event)
                {
                    latch.countDown();
View Full Code Here

Examples of org.apache.zookeeper.Watcher

        CuratorFramework client = builder.connectString(server.getConnectString()).namespace("aisa").retryPolicy(new RetryOneTime(1)).build();
        client.start();
        try
        {
            final BlockingQueue<String>     queue = new LinkedBlockingQueue<String>();
            Watcher                         watcher = new Watcher()
            {
                @Override
                public void process(WatchedEvent event)
                {
                    try
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.