@Beta public interface RuntimeMetrics
Modifier and Type | Method and Description |
---|---|
long |
getException() |
long |
getInput() |
long |
getProcessed() |
void |
waitFor(String name,
long count,
long timeout,
TimeUnit timeoutUnit)
Waits until the metric value of the given metric name reached or exceeded the given count.
|
void |
waitForException(long count,
long timeout,
TimeUnit timeoutUnit)
Waits until at least the given number of exceptions has been raised.
|
void |
waitForinput(long count,
long timeout,
TimeUnit timeoutUnit)
Waits until at least the given number of inputs has been read.
|
void |
waitForProcessed(long count,
long timeout,
TimeUnit timeoutUnit)
Waits until at least the given number of inputs has been processed.
|
long getInput()
long getProcessed()
long getException()
void waitForinput(long count, long timeout, TimeUnit timeoutUnit) throws TimeoutException, InterruptedException
count
- Number of inputs to wait fortimeout
- Maximum time to wait fortimeoutUnit
- TimeUnit
for the timeout time.TimeoutException
- If the timeout time passed and still not
seeing that many count.InterruptedException
void waitForProcessed(long count, long timeout, TimeUnit timeoutUnit) throws TimeoutException, InterruptedException
count
- Number of processed to wait fortimeout
- Maximum time to wait fortimeoutUnit
- TimeUnit
for the timeout time.TimeoutException
- If the timeout time passed and still not
seeing that many count.InterruptedException
void waitForException(long count, long timeout, TimeUnit timeoutUnit) throws TimeoutException, InterruptedException
count
- Number of exceptions to wait fortimeout
- Maximum time to wait fortimeoutUnit
- TimeUnit
for the timeout time.TimeoutException
- If the timeout time passed and still not
seeing that many count.InterruptedException
void waitFor(String name, long count, long timeout, TimeUnit timeoutUnit) throws TimeoutException, InterruptedException
name
- Name of the metriccount
- Minimum value to wait fortimeout
- Maximum time to wait fortimeoutUnit
- TimeUnit
for the timeout time.TimeoutException
- If the timeout time passed and still not seeing that many count.InterruptedException
Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.