Examples of stop()


Examples of com.codahale.metrics.Slf4jReporter.stop()

          synchronized (REGISTRIES) {
            Map<String, Slf4jReporter> reporters = REGISTRIES.get(getContext().getMetricRegistry());
            if (reporters != null) {
              Slf4jReporter reporter = reporters.remove(logger);
              if (reporter != null) {
                reporter.stop();
              }
            }
          }
        }
      }
View Full Code Here

Examples of com.codahale.metrics.Timer.Context.stop()

            // Stop a timer
            case "stop" :
                Context c = timers.remove( name ) ;
                if( c != null ) {
                    c.stop() ;
                }
                sendOK( message ) ;
                break ;

            // Remove a metric if it exists
View Full Code Here

Examples of com.consol.citrus.server.Server.stop()

    public void testSingleServer() {
        Server server = EasyMock.createMock(Server.class);
       
        reset(server);
       
        server.stop();
        expectLastCall().once();
       
        expect(server.getName()).andReturn("MyServer");
       
        replay(server);
View Full Code Here

Examples of com.corundumstudio.socketio.SocketIOServer.stop()

        server.start();

        Thread.sleep(Integer.MAX_VALUE);

        server.stop();
    }

}
View Full Code Here

Examples of com.custardsource.parfait.spring.SelfStartingMonitoringView.stop()

            selfStartingMonitoringView.start();
        }

        List<CounterIncrementer> counterIncrementers = executeBenchmark(numThreads, iterations, counters);
        if (startPcp) {
            selfStartingMonitoringView.stop();
        }

        long timeTaken = System.currentTimeMillis() - begin;

        report(startPcp, counters, timeTaken, counterIncrementers);
View Full Code Here

Examples of com.dbxml.util.Stopwatch.stop()

               if ( info instanceof HasDocWrapper ) {
                  e.consume();
                  setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                  Stopwatch sw = new Stopwatch("Document Retrieval", true);
                  DocWrapper dw = ((HasDocWrapper)info).getDocWrapper();
                  sw.stop();
                  admin.setStatus(sw.toString());
                  admin.editDocument(dw);
                  setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
               }
               break;
View Full Code Here

Examples of com.discoverydns.dnsapiclient.internal.util.Stopwatch.stop()

    try {
      response = commandInterceptorChain.proceed();
    } catch (final Throwable t) {
      exception = t;
    }
    stopwatch.stop();
    commandMetaData.put(COMMAND_TIME_MS,
        new Double(stopwatch.elapsedTimeMsDecimal()));
    if (exception != null) {
      throw exception;
    }
View Full Code Here

Examples of com.dumbster.smtp.SimpleSmtpServer.stop()

      action.setPasswordConfirm("poploop");
      action.setEmail("johnp@example.com");
      String op = action.execute();
      assertEquals(ActionSupport.SUCCESS, op);
    } finally {
      mailServer.stop();
    }
    assertTrue(mailServer.getReceivedEmailSize() == 1);
    Iterator<SmtpMessage> emailIter = mailServer.getReceivedEmail();
    SmtpMessage email = (SmtpMessage) emailIter.next();
    assertTrue(email.getHeaderValue("Subject").equals("Email Verification"));
View Full Code Here

Examples of com.eclipsesource.jaxrs.provider.gson.internal.Activator.stop()

    ServiceRegistration registration = mock( ServiceRegistration.class );
    when( context.registerService( any( String.class ), anyObject(), any( Dictionary.class ) ) )
      .thenReturn( registration );
   
    activator.start( context );
    activator.stop( context );
   
    verify( registration ).unregister();
  }
}
View Full Code Here

Examples of com.ecyrd.speed4j.StopWatch.stop()

            // store message
            messageDAO.put(mailbox, messageId, message, env.getMessageInputStream());

            // successfully delivered
            stopWatch.stop("DELIVERY.success", logMsg);
            reply = DeliveryReturnCode.OK;
          } catch (OverQuotaException e) {
            // account is over quota, reject
            stopWatch.stop("DELIVERY.reject_overQuota", logMsg + " over quota");
            reply = DeliveryReturnCode.OVER_QUOTA;
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.