Examples of ping()


Examples of org.apache.continuum.distributed.transport.master.MasterBuildAgentTransportClient.ping()

                    "Build agent is not configured properly. Missing continuumServerUrl in the configuration file" );
            }

            MasterBuildAgentTransportClient client = new MasterBuildAgentTransportClient( new URL(
                continuumServerUrl ) );
            return client.ping();
        }
        catch ( MalformedURLException e )
        {
            log.error( "Invalid continuum server URL '" + continuumServerUrl + "'", e );
            throw new ContinuumException( "Invalid continuum server URL '" + continuumServerUrl + "'", e );
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient.ping()

                {
                    try
                    {
                        SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( agent.getUrl() ) );
                       
                        if ( client.ping() )
                        {
                            log.info( "agent is enabled, add TaskQueueExecutor for build agent '" + agent.getUrl() + "'" );
                            addTaskQueueExecutor( agent.getUrl() );
                        }
                        else
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService.ping()

                    {
                        try
                        {
                            SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection( agent.getUrl() );

                            if ( client.ping() )
                            {
                                log.info(
                                    "agent is enabled, create distributed build queue for build agent '" + agent.getUrl() + "'" );
                                createDistributedBuildQueueForAgent( agent.getUrl() );
                            }
View Full Code Here

Examples of org.apache.derby.drda.NetworkServerControl.ping()

            int retries = 10;         // Max retries = max seconds to wait
            while (!started && retries > 0) {
                try {
                    // Sleep 1 second and then ping the network server
          Thread.sleep(1000);
                    networkServer.ping();

                    // If ping does not throw an exception the server has started
                    started = true;
                } catch(Exception e) {
                    System.out.println("INFO: ping returned: " + e);
View Full Code Here

Examples of org.apache.derby.drda.NetworkServerControl.ping()

    boolean          isUp = false;
   
    for ( int i = 0; i < PING_COUNT; i++ )
    {
      try {
        controller.ping();
        isUp = true;
        println( "Network server came up!" );
       
        break;
      }
View Full Code Here

Examples of org.apache.derby.drda.NetworkServerControl.ping()

   
   

        while (waitTime < timeToWait) {
            try {
                derbyServer.ping();
                return;
            } catch (Exception e) {
        Thread currentThread = Thread.currentThread();
        synchronized (currentThread) {
                    try {
View Full Code Here

Examples of org.apache.hadoop.hdfs.test.system.NNClient.ping()

    // Trivial @Test
    public void testNamenodePing() throws IOException {
        LOG.info("testing filesystem ping");
        NNClient namenode = dfsCluster.getNNClient();
        namenode.ping();
        LOG.info("done.");
    }

    // Trivial @Test
    public void testNamenodeConnectDisconnect() throws IOException {
View Full Code Here

Examples of org.apache.hadoop.ipc.TestRPC.TestProtocol.ping()

    // Make a client connection and test the audit log
    TestProtocol proxy = (TestProtocol)RPC.getProxy(TestProtocol.class,
                           TestProtocol.versionID, addr, conf);
    // Start the testcase
    proxy.ping();

    server.stop();
  }
}
View Full Code Here

Examples of org.apache.hadoop.mapred.TaskUmbilicalProtocol.ping()

        TaskUmbilicalProtocol proxy = null;
        try {
          proxy = (TaskUmbilicalProtocol) RPC.getProxy(
              TaskUmbilicalProtocol.class, TaskUmbilicalProtocol.versionID,
              addr, conf);
          proxy.ping(null);
        } finally {
          server.stop();
          if (proxy != null) {
            RPC.stopProxy(proxy);
          }
View Full Code Here

Examples of org.apache.hadoop.test.system.AbstractDaemonClient.ping()

    // Give the cluster time to stop the whole cluster.
    AbstractDaemonClient cli = cluster.getJTClient();
    int i = 1;
    while (i < 40) {
      try {
        cli.ping();
        Thread.sleep(1000);
        i++;
      } catch (Exception e) {
        break;
      }
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.