Examples of publish()


Examples of io.fabric8.container.process.ZooKeeperPublishConfig.publish()

            if (exportConfig != null && !exportConfig.isEmpty() && curatorFramework != null) {
                JolokiaAgentHelper.substituteEnvironmentVariableExpressions(exportConfig, environmentVariables, getFabricService(), curatorFramework, true);
                ZooKeeperPublishConfig config = new ZooKeeperPublishConfig();
                try {
                    getConfigurer().configure(exportConfig, config);
                    config.publish(curatorFramework, null, null, null, environmentVariables);
                } catch (Exception e) {
                    LOG.warn("Failed to publish configuration " + configName + " of " + config + " due to: " + e, e);
                }
            }
        }
View Full Code Here

Examples of java.util.logging.ConsoleHandler.publish()

    ConsoleHandler h = new ConsoleHandler();
    assertSame(h.getLevel(), Level.INFO);
    assertTrue(h.getFormatter() instanceof SimpleFormatter);
    assertNull(h.getFilter());
    assertNull(h.getEncoding());
    h.publish(new LogRecord(Level.SEVERE, "test"));
    assertNull(h.getEncoding());
  }

  /*
   * Test close() when having sufficient privilege, and a record has been
View Full Code Here

Examples of java.util.logging.FileHandler.publish()

    public void testLock() throws Exception {
        FileOutputStream output = new FileOutputStream(TEMPPATH + SEP + "log"
                + SEP + "java1.test.0");
        FileHandler h = new FileHandler();
        h.publish(r);
        h.close();
        assertFileContent(TEMPPATH + SEP + "log", "java1.test.0", h
                .getFormatter(), "UTF-8");
        output.close();
    }
View Full Code Here

Examples of java.util.logging.Handler.publish()

        Handler handler = EasyMock.createNiceMock(Handler.class);
        LOG.addHandler(handler);
        // handler called *before* localization of message
        LogRecord record = new LogRecord(Level.WARNING, "FOOBAR_MSG");
        EasyMock.reportMatcher(new LogRecordMatcher(record));
        handler.publish(record);
        EasyMock.replay(handler);
        LOG.log(Level.WARNING, "FOOBAR_MSG");
        EasyMock.verify(handler);
    }

View Full Code Here

Examples of java.util.logging.SocketHandler.publish()

    try
      {
        capturer = new SocketCapturer(0);
        handler = new SocketHandler("0.0.0.0", capturer.getLocalPort());
        handler.setLevel(Level.FINE);
        handler.publish(new LogRecord(Level.CONFIG, "hello, world"));
        handler.publish(new LogRecord(Level.FINER, "how are you?"));
        handler.close();
        captured = new String(capturer.getCaptured());
        th.check(true);
      }
View Full Code Here

Examples of java.util.logging.StreamHandler.publish()

    StreamHandler h = new StreamHandler();
    assertSame(Level.INFO, h.getLevel());
    assertTrue(h.getFormatter() instanceof SimpleFormatter);
    assertNull(h.getFilter());
    assertNull(h.getEncoding());
    h.publish(new LogRecord(Level.SEVERE, "test"));
    assertTrue(CallVerificationStack.getInstance().empty());
    assertNull(h.getEncoding());
  }

  /*
 
View Full Code Here

Examples of javax.jms.TopicPublisher.publish()

            sender.setTimeToLive(ttl);
            sender.send((Queue)targetDestination, message, deliveryMode, priority, ttl);
        } else {
            TopicPublisher publisher = (TopicPublisher)pooledSession.producer();
            publisher.setTimeToLive(ttl);
            publisher.publish((Topic)targetDestination, message, deliveryMode, priority, ttl);
        }
    }


    /**
 
View Full Code Here

Examples of javax.xml.ws.Endpoint.publish()

    }

    @Override
    public Endpoint createAndPublishEndpoint(String url, Object implementor) {
        Endpoint ep = createEndpoint(null, implementor);
        ep.publish(url);
        return ep;
    }

}
View Full Code Here

Examples of jenkins.plugins.hipchat.StandardHipChatService.publish()

     */
    @Test
    public void publishWithBadHostShouldNotRethrowExceptions() {
        StandardHipChatService service = new StandardHipChatService("token", "room", "from");
        service.setHost("hostvaluethatwillcausepublishtofail");
        service.publish("message");
    }
}
View Full Code Here

Examples of maqetta.core.server.user.ReviewManager.publish()

      version.openVersion();
      version.setHasRestarted(false);
      reviewManager.saveVersionFile(du);
    } else if ("publish".equalsIgnoreCase(type)) {
      version.setDraft(false);
      reviewManager.publish(du, version);
    } else if ("delete".equalsIgnoreCase(type)) {
      du.deleteVersion(vTime);
      reviewManager.saveVersionFile(du);
      IDavinciProject project = new DavinciProject();
      project.setOwnerId(du.getName());
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.