Package | Description |
---|---|
org.apache.edgent.analytics.math3.json |
JSON analytics using Apache Commons Math.
|
org.apache.edgent.analytics.math3.stat |
Statistical algorithms using Apache Commons Math.
|
org.apache.edgent.connectors.command |
Command / OS Process connector.
|
org.apache.edgent.connectors.file |
File stream connector.
|
org.apache.edgent.connectors.http |
HTTP stream connector.
|
org.apache.edgent.connectors.jdbc |
JDBC based database stream connector.
|
org.apache.edgent.connectors.kafka |
Apache Kafka enterprise messing hub stream connector.
|
org.apache.edgent.connectors.mqtt |
MQTT (lightweight messaging protocol for small sensors and mobile devices) stream connector.
|
org.apache.edgent.connectors.serial |
Serial port connector API.
|
org.apache.edgent.connectors.wsclient.javax.websocket |
WebSocket Client Connector for sending and receiving messages to a WebSocket Server.
|
org.apache.edgent.function |
Functional interfaces for lambda expressions.
|
org.apache.edgent.graph |
Low-level graph building API.
|
org.apache.edgent.graph.spi | |
org.apache.edgent.oplet.functional |
Oplets that process tuples using functions.
|
org.apache.edgent.providers.direct |
Direct execution of a streaming topology.
|
org.apache.edgent.samples.apps |
Support for some more complex Edgent application samples.
|
org.apache.edgent.samples.connectors |
General support for connector samples.
|
org.apache.edgent.samples.utils.sensor | |
org.apache.edgent.topology |
Functional api to build a streaming topology.
|
org.apache.edgent.topology.spi | |
org.apache.edgent.topology.spi.functions | |
org.apache.edgent.topology.spi.graph | |
org.apache.edgent.window |
Window API.
|
Modifier and Type | Interface and Description |
---|---|
interface |
JsonUnivariateAggregate
Univariate aggregate for a JSON tuple.
|
Modifier and Type | Class and Description |
---|---|
class |
Regression
Univariate regression aggregates.
|
class |
Statistic
Statistic implementations.
|
Modifier and Type | Method and Description |
---|---|
static Supplier<java.util.List<java.lang.String>> |
CommandStreams.commandReaderList(java.lang.ProcessBuilder cmd)
Create a
Supplier<List<String>> to ingest a command's output. |
static Supplier<java.lang.String> |
CommandStreams.endlessCommandReader(java.lang.ProcessBuilder cmd)
Create an endless
Supplier<String> for ingesting a long running command's output. |
Modifier and Type | Method and Description |
---|---|
static TStream<java.lang.String> |
FileStreams.directoryWatcher(TopologyElement te,
Supplier<java.lang.String> directory)
Declare a stream containing the absolute pathname of
newly created file names from watching
directory . |
static TStream<java.lang.String> |
FileStreams.directoryWatcher(TopologyElement te,
Supplier<java.lang.String> directory,
java.util.Comparator<java.io.File> comparator)
Declare a stream containing the absolute pathname of
newly created file names from watching
directory . |
static TSink<java.lang.String> |
FileStreams.textFileWriter(TStream<java.lang.String> contents,
Supplier<java.lang.String> basePathname)
Write the contents of a stream to files.
|
static TSink<java.lang.String> |
FileStreams.textFileWriter(TStream<java.lang.String> contents,
Supplier<java.lang.String> basePathname,
Supplier<org.apache.edgent.connectors.file.runtime.IFileWriterPolicy<java.lang.String>> policy)
Write the contents of a stream to files subject to the control
of a file writer policy.
|
static TSink<java.lang.String> |
FileStreams.textFileWriter(TStream<java.lang.String> contents,
Supplier<java.lang.String> basePathname,
Supplier<org.apache.edgent.connectors.file.runtime.IFileWriterPolicy<java.lang.String>> policy)
Write the contents of a stream to files subject to the control
of a file writer policy.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.http.impl.client.CloseableHttpClient |
HttpClients.basic(Supplier<java.lang.String> user,
Supplier<java.lang.String> password)
Method to create a basic authentication HTTP client.
|
static org.apache.http.impl.client.CloseableHttpClient |
HttpClients.basic(Supplier<java.lang.String> user,
Supplier<java.lang.String> password)
Method to create a basic authentication HTTP client.
|
static TStream<com.google.gson.JsonObject> |
HttpStreams.deleteJson(TStream<com.google.gson.JsonObject> stream,
Supplier<org.apache.http.impl.client.CloseableHttpClient> clientCreator,
Function<com.google.gson.JsonObject,java.lang.String> uri)
Make an HTTP DELETE request with JsonObject.
|
static TStream<com.google.gson.JsonObject> |
HttpStreams.getJson(TStream<com.google.gson.JsonObject> stream,
Supplier<org.apache.http.impl.client.CloseableHttpClient> clientCreator,
Function<com.google.gson.JsonObject,java.lang.String> uri)
Make an HTTP GET request with JsonObject.
|
static TStream<com.google.gson.JsonObject> |
HttpStreams.postJson(TStream<com.google.gson.JsonObject> stream,
Supplier<org.apache.http.impl.client.CloseableHttpClient> clientCreator,
Function<com.google.gson.JsonObject,java.lang.String> uri,
UnaryOperator<com.google.gson.JsonObject> body)
Make an HTTP POST request with JsonObject.
|
static TStream<com.google.gson.JsonObject> |
HttpStreams.putJson(TStream<com.google.gson.JsonObject> stream,
Supplier<org.apache.http.impl.client.CloseableHttpClient> clientCreator,
Function<com.google.gson.JsonObject,java.lang.String> uri,
UnaryOperator<com.google.gson.JsonObject> body)
Make an HTTP PUT request with JsonObject.
|
static <T,R> TStream<R> |
HttpStreams.requests(TStream<T> stream,
Supplier<org.apache.http.impl.client.CloseableHttpClient> clientCreator,
Function<T,java.lang.String> method,
Function<T,java.lang.String> uri,
BiFunction<T,org.apache.http.client.methods.CloseableHttpResponse,R> response)
Make an HTTP request for each tuple on a stream.
|
static <T,R> TStream<R> |
HttpStreams.requestsWithBody(TStream<T> stream,
Supplier<org.apache.http.impl.client.CloseableHttpClient> clientCreator,
Function<T,java.lang.String> method,
Function<T,java.lang.String> uri,
Function<T,org.apache.http.HttpEntity> body,
BiFunction<T,org.apache.http.client.methods.CloseableHttpResponse,R> response)
Make an HTTP request with body for each tuple.
|
Modifier and Type | Method and Description |
---|---|
<T> TSink<T> |
JdbcStreams.executeStatement(TStream<T> stream,
Supplier<java.lang.String> stmtSupplier,
ParameterSetter<T> paramSetter)
For each tuple on
stream execute an SQL statement. |
<T,R> TStream<R> |
JdbcStreams.executeStatement(TStream<T> stream,
Supplier<java.lang.String> stmtSupplier,
ParameterSetter<T> paramSetter,
ResultsHandler<T,R> resultsHandler)
For each tuple on
stream execute an SQL statement and
add 0 or more resulting tuples to a result stream. |
Constructor and Description |
---|
KafkaConsumer(Topology t,
Supplier<java.util.Map<java.lang.String,java.lang.Object>> config)
Create a consumer connector for subscribing to Kafka topics
and creating tuples from the received messages.
|
KafkaProducer(Topology t,
Supplier<java.util.Map<java.lang.String,java.lang.Object>> config)
Create a producer connector for publishing tuples to Kafka topics.s
|
Constructor and Description |
---|
MqttStreams(Topology topology,
Supplier<MqttConfig> config)
Create a connector with the specified configuration.
|
Modifier and Type | Method and Description |
---|---|
<T> Supplier<T> |
SerialDevice.getSource(Function<SerialPort,T> driver)
Create a function that can be used to source a
stream from a serial port device.
|
Constructor and Description |
---|
Jsr356WebSocketClient(Topology t,
java.util.Properties config,
Supplier<javax.websocket.WebSocketContainer> containerFn)
Create a new Web Socket Client connector.
|
Modifier and Type | Method and Description |
---|---|
static <T> Supplier<T> |
Functions.synchronizedSupplier(Supplier<T> function)
Return a thread-safe version of a
Supplier function. |
Modifier and Type | Method and Description |
---|---|
static <T> Supplier<T> |
Functions.synchronizedSupplier(Supplier<T> function)
Return a thread-safe version of a
Supplier function. |
Modifier and Type | Method and Description |
---|---|
void |
Graph.peekAll(Supplier<? extends Peek<?>> supplier,
Predicate<Vertex<?,?,?>> select)
Insert Peek oplets returned by the specified
Supplier into
the outputs of all of the oplets which satisfy the specified
Predicate and where the output's Connector.isConnected()
is true. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractGraph.peekAll(Supplier<? extends Peek<?>> supplier,
Predicate<Vertex<?,?,?>> select) |
Constructor and Description |
---|
SupplierPeriodicSource(long period,
java.util.concurrent.TimeUnit unit,
Supplier<T> data) |
SupplierSource(Supplier<java.lang.Iterable<T>> data) |
Modifier and Type | Method and Description |
---|---|
Supplier<RuntimeServices> |
DirectTopology.getRuntimeServiceSupplier() |
Modifier and Type | Method and Description |
---|---|
<T> TStream<T> |
ApplicationUtilities.traceStream(TStream<T> stream,
java.lang.String sensorId,
Supplier<java.lang.String> label)
Trace a stream to System.out if the sensor id's "label" has been configured
to enable tracing.
|
<T> TStream<T> |
ApplicationUtilities.traceStream(TStream<T> stream,
Supplier<java.lang.String> label)
Trace a stream to System.out if the "label" has been configured
to enable tracing.
|
Modifier and Type | Class and Description |
---|---|
class |
MsgSupplier
A Supplier<String> for creating sample messages to publish.
|
Modifier and Type | Class and Description |
---|---|
class |
HeartMonitorSensor
Streams of simulated heart monitor sensors.
|
class |
SimpleSimulatedSensor
A simple simulated sensor.
|
class |
SimulatedTemperatureSensor
A Simulated temperature sensor.
|
Modifier and Type | Method and Description |
---|---|
Supplier<RuntimeServices> |
Topology.getRuntimeServiceSupplier()
Return a function that at execution time
will return a
RuntimeServices instance
a stream function can use. |
Modifier and Type | Method and Description |
---|---|
<T> TStream<T> |
Topology.generate(Supplier<T> data)
Declare an endless source stream.
|
<T> TStream<T> |
Topology.poll(Supplier<T> data,
long period,
java.util.concurrent.TimeUnit unit)
Declare a new source stream that calls
data.get() periodically. |
<T> TStream<T> |
Topology.source(Supplier<java.lang.Iterable<T>> data)
Declare a new source stream that iterates over the return of
Iterable<T> get() from data . |
Modifier and Type | Method and Description |
---|---|
<T> TStream<T> |
AbstractTopology.generate(Supplier<T> data) |
Modifier and Type | Class and Description |
---|---|
class |
EndlessSupplier<T> |
Constructor and Description |
---|
EndlessSupplier(Supplier<T> data) |
Modifier and Type | Method and Description |
---|---|
<T> TStream<T> |
GraphTopology.poll(Supplier<T> data,
long period,
java.util.concurrent.TimeUnit unit) |
<T> TStream<T> |
GraphTopology.source(Supplier<java.lang.Iterable<T>> data) |
Modifier and Type | Method and Description |
---|---|
static <T> Supplier<InsertionTimeList<T>> |
Policies.insertionTimeList() |
Modifier and Type | Method and Description |
---|---|
static <T,K,L extends java.util.List<T>> |
Windows.window(BiFunction<Partition<T,K,L>,T,java.lang.Boolean> insertionPolicy,
BiConsumer<Partition<T,K,L>,T> contentsPolicy,
Consumer<Partition<T,K,L>> evictDeterminer,
BiConsumer<Partition<T,K,L>,T> triggerPolicy,
Function<T,K> keyFunction,
Supplier<L> listSupplier)
Create a window using the passed in policies.
|
Constructor and Description |
---|
PartitionedState(Supplier<S> initialState)
Construct with an initial state function.
|
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641