Tabnine Logo
OperationProcessor.getErrorCountStat
Code IndexAdd Tabnine to your IDE (free)

How to use
getErrorCountStat
method
in
com.nextdoor.bender.operation.OperationProcessor

Best Java code snippets using com.nextdoor.bender.operation.OperationProcessor.getErrorCountStat (Showing top 3 results out of 315)

origin: Nextdoor/bender

 return i;
} catch (OperationException e) {
 this.getErrorCountStat().increment();
 logger.warn(e);
 return null;
 return s;
} catch (OperationException e) {
 this.getErrorCountStat().increment();
 logger.warn(e);
 return Stream.empty();
 return ((FilterOperation) this.op).test(ievent);
} catch (OperationException e) {
 this.getErrorCountStat().increment();
 logger.warn(e);
 return false;
origin: Nextdoor/bender

 return i;
} catch (OperationException e) {
 this.getErrorCountStat().increment();
 logger.warn(e);
 return null;
 return s;
} catch (OperationException e) {
 this.getErrorCountStat().increment();
 logger.warn(e);
 return Stream.empty();
 return ((FilterOperation) this.op).test(ievent);
} catch (OperationException e) {
 this.getErrorCountStat().increment();
 logger.warn(e);
 return false;
origin: Nextdoor/bender

@Test
public void testOperationException() throws HandlerException {
 BaseHandler.CONFIG_FILE = "/config/handler_config.json";
 handler.skipWriteStats = true;
 List<DummyEvent> events = new ArrayList<DummyEvent>(1);
 events.add(new DummyEvent("foo", 0));
 TestContext context = new TestContext();
 context.setInvokedFunctionArn("arn:aws:lambda:us-east-1:123:function:test:tag");
 handler.init(context);
 List<OperationProcessor> operationProcessors = handler.sources.get(0).getOperationProcessors();
 for (OperationProcessor operationProcessor : operationProcessors) {
  EventOperation operation = (EventOperation) spy(operationProcessor.getOperation());
  doThrow(new OperationException("expected")).when(operation).perform(any());
  operationProcessor.setOperation(operation);
 }
 handler.handler(events, context);
 assertEquals(1, operationProcessors.get(0).getErrorCountStat().getValue());
}
com.nextdoor.bender.operationOperationProcessorgetErrorCountStat

Popular methods of OperationProcessor

  • <init>
  • perform
    This method sets up an operation to be performed on a stream. It is important to note that counting,
  • getOperation
  • getRuntimeStat
  • getSuccessCountStat
  • setErrorCountStat
  • setOperation
  • setRuntimeStat
  • setSuccessCountStat

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • String (java.lang)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now