Examples of ping()


Examples of org.openhab.binding.xbmc.rpc.XbmcConnector.ping()

  protected void execute() {
    for (Map.Entry<String, XbmcConnector> entry : connectors.entrySet()) {
      XbmcConnector connector = entry.getValue();
      if (connector.isConnected()) {
        // we are still connected but send a ping to make sure
        connector.ping();
        // refresh all players
        connector.updatePlayerStatus(true);
      } else {
        // broken connection so attempt to reconnect
        logger.debug("Broken connection found for '{}', attempting to reconnect...", entry.getKey());
View Full Code Here

Examples of org.openrdf.http.client.ConnectionClient.ping()

    executor.scheduleAtFixedRate(new Runnable() {

      public void run() {
        try {
          if (con.isOpen()) {
            connection.ping();
          }
          else {
            throw new RuntimeException("connection already closed");
          }
        }
View Full Code Here

Examples of org.red5.server.api.IConnection.ping()

                    log.debug("*** sendClientBroadcastNotifications Any Client is Recording - stop that");
                    //StreamService.stopRecordingShowForClient(conn, currentClient, rcl.getRoomRecordingName(), false);
                    this.flvRecorderService.stopRecordingShowForClient(conn, currentClient);
                  }
                  // Don't notify current client
                  current.ping();
                }
                continue;
              } else {
                RoomClient rcl = this.clientListManager.getClientByStreamId(conn.getClient().getId());
                if (rcl != null){
View Full Code Here

Examples of org.rhq.core.clientapi.agent.ping.PingAgentService.ping()

        try {
            // create our own factory so we can customize the timeout
            ClientRemotePojoFactory factory = sender.getClientRemotePojoFactory();
            factory.setTimeout(timeoutMillis);
            PingAgentService pinger = factory.getRemotePojo(PingAgentService.class);
            long agentTime = pinger.ping();
            long skew = Math.abs(System.currentTimeMillis() - agentTime);
            if (skew > 5 * 60 * 1000L) {
                LogFactory.getLog(this.getClass()).debug(
                    "Agent [" + agent.getName() + "] either took a long time to process a ping (" + skew
                        + "ms) or its clock is not synced: " + new Date(agentTime));
View Full Code Here

Examples of org.rhq.core.clientapi.server.core.CoreServerService.ping()

                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
View Full Code Here

Examples of org.rhq.enterprise.communications.Ping.ping()

        try {
            // create our own factory so we can customize the timeout
            ClientRemotePojoFactory factory = sender.getClientRemotePojoFactory();
            factory.setTimeout(timeoutMillis);
            Ping pinger = factory.getRemotePojo(Ping.class);
            pinger.ping("", null);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
View Full Code Here

Examples of org.rhq.enterprise.server.agentclient.AgentClient.ping()

            if (agent == null) {
                throw new IllegalStateException("No agent is associated with the resource with id " + resourceId + ".");
            }

            AgentClient client = agentManager.getAgentClient(agent);
            pingResults = client.ping(5000L);
        } catch (Throwable t) {
            pingResults = Boolean.FALSE;
        }
    }
}
View Full Code Here

Examples of org.rhq.plugins.www.snmp.SNMPSession.ping()

        boolean configured = false;

        try {

            SNMPSession snmpSession = getSNMPSession();
            if (!snmpSession.ping()) {
                LOG.warn("Failed to connect to SNMP agent at "
                    + snmpSession
                    + "\n"
                    + ". Make sure\n1) the managed Apache server has been instrumented with the JON SNMP module,\n"
                    + "2) the Apache server is running, and\n"
View Full Code Here

Examples of org.rioproject.admin.MonitorableService.ping()

                /*
                 * Invoke the service. If the service isnt active we'll get a
                 * RemoteException
                 */
                MonitorableService service = (MonitorableService)proxy;
                service.ping();
                verified = true;
            } catch(RemoteException e) {
                if(logger.isTraceEnabled())
                    logger.trace("RemoteException reaching service, "+
                                  "service cannot be reached");
View Full Code Here

Examples of org.springframework.data.redis.connection.RedisConnection.ping()

  @Test
  public void testConnect() {
    SrpConnectionFactory factory = new SrpConnectionFactory(SettingsUtils.getHost(), SettingsUtils.getPort());
    factory.afterPropertiesSet();
    RedisConnection connection = factory.getConnection();
    connection.ping();
  }

  @Test
  public void testConnectInvalidHost() {
    SrpConnectionFactory factory = new SrpConnectionFactory();
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.