Examples of PingRequest


Examples of org.ardverk.dht.message.PingRequest

    }
   
    @Override
    public void ping() throws IOException {
      MessageFactory factory = getMessageFactory();
      PingRequest request = factory.createPingRequest(contact);
     
      long timeout = config.getPingTimeoutInMillis();
      long adaptiveTimeout = config.getAdaptiveTimeout(
          contact, timeout, TimeUnit.MILLISECONDS);
      send(contact, request, adaptiveTimeout, TimeUnit.MILLISECONDS);
View Full Code Here

Examples of org.ardverk.dht.message.PingRequest

    Contact contact = new DefaultContact(Type.SOLICITED,
        contactId, 0, false,
        new InetSocketAddress("localhost", 6666));
   
    SocketAddress address = new InetSocketAddress("localhost", 6666);
    PingRequest request = new DefaultPingRequest(messageId, contact, address);
   
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Encoder encoder = codec.createEncoder(baos);
    encoder.write(request);
    encoder.close();
View Full Code Here

Examples of org.graylog2.rest.resources.system.radio.requests.PingRequest

    @ApiOperation(value = "Ping - Accepts pings of graylog2-radio nodes.",
            notes = "Every graylog2-radio node is regularly pinging to announce that it is active.")
    @Path("/{radioId}/ping")
    public Response ping(@ApiParam(name = "JSON body", required = true) String body,
                         @ApiParam(name = "radioId", required = true) @PathParam("radioId") String radioId) {
        PingRequest pr;

        try {
            pr = objectMapper.readValue(body, PingRequest.class);
        } catch(IOException e) {
            LOG.error("Error while parsing JSON", e);
View Full Code Here

Examples of org.objectweb.joram.shared.client.PingRequest

    public void run() {
      try {
        long date = System.currentTimeMillis();       
        if ((date - lastRequestDate) > heartBeat) {
          sendRequest(new PingRequest());
        }
      } catch (Exception exc) {
        if (logger.isLoggable(BasicLevel.DEBUG))
          logger.log(BasicLevel.DEBUG, "", exc);
      }
View Full Code Here

Examples of org.rhq.core.clientapi.server.core.PingRequest

                    LOG.info(AgentI18NResourceKeys.PING_EXECUTOR_STOPPING_POLLING_RESUME_PING);
                    m_clientSender.stopServerPolling();
                }

                boolean updateAvail = PluginContainer.getInstance().isStarted();
                PingRequest request = new PingRequest(getConfiguration().getAgentName(), updateAvail, true);

                ClientRemotePojoFactory factory = m_clientSender.getClientRemotePojoFactory();
                CoreServerService server = factory.getRemotePojo(CoreServerService.class);
                request = server.ping(request);

                // take this opportunity to check the agent-server clock sync
                serverClockNotification(request.getReplyServerTimestamp());

                // If the server thinks we are down, we need to do some things to get this agent in sync
                // with the server. Anything we do in here should be very fast.
                boolean serverThinksWeAreDown = request.isReplyAgentIsBackfilled();
                if (serverThinksWeAreDown) {
                    LOG.warn(AgentI18NResourceKeys.SERVER_THINKS_AGENT_IS_DOWN);
                    PluginContainer pluginContainer = PluginContainer.getInstance();
                    if (pluginContainer.isStarted()) {
                        // tell the plugin container to send a full avail report up so the server knows we are UP
View Full Code Here

Examples of wssec.wssc.PingRequest

            if (portPrefix.charAt(0) == '_') {
                //MS would like the _ versions to send a cancel
                ((BindingProvider)port).getRequestContext()
                    .put(SecurityConstants.STS_TOKEN_DO_CANCEL, Boolean.TRUE);
            }
            PingRequest params = new PingRequest();
            Ping ping = new Ping();
            ping.setOrigin("CXF");
            ping.setScenario("Scenario5");
            ping.setText("ping");
            params.setPing(ping);
            try {
                PingResponse output = port.ping(params);
                assertEquals(OUT, output.getPingResponse().getText());
            } catch (Exception ex) {
                throw new Exception("Error doing " + portPrefix, ex);
View Full Code Here

Examples of wssec.wssc.PingRequest

            if (portPrefix.charAt(0) == '_') {
                //MS would like the _ versions to send a cancel
                ((BindingProvider)port).getRequestContext()
                    .put(SecurityConstants.STS_TOKEN_DO_CANCEL, Boolean.TRUE);
            }
            PingRequest params = new PingRequest();
            Ping ping = new Ping();
            ping.setOrigin("CXF");
            ping.setScenario("Scenario5");
            ping.setText("ping");
            params.setPing(ping);
            try {
                PingResponse output = port.ping(params);
                assertEquals(OUT, output.getPingResponse().getText());
            } catch (Exception ex) {
                throw new Exception("Error doing " + portPrefix, ex);
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.