Package | Description |
---|---|
org.apache.edgent.execution.services |
Execution services.
|
org.apache.edgent.providers.iot |
Iot provider that allows multiple applications to
share an
IotDevice . |
org.apache.edgent.runtime.appservice | |
org.apache.edgent.runtime.etiao |
A runtime for executing an Edgent streaming topology, designed as an embeddable library
so that it can be executed in a simple Java application.
|
org.apache.edgent.runtime.jobregistry | |
org.apache.edgent.topology.services |
Services for topologies.
|
org.apache.edgent.window |
Window API.
|
Modifier and Type | Method and Description |
---|---|
void |
ServiceContainer.addCleaner(BiConsumer<java.lang.String,java.lang.String> cleaner)
Registers a new cleaner.
|
void |
JobRegistryService.addListener(BiConsumer<JobRegistryService.EventType,Job> listener)
Adds a handler to a collection of listeners that will be notified
on job registration and state changes.
|
boolean |
JobRegistryService.removeListener(BiConsumer<JobRegistryService.EventType,Job> listener)
Removes a handler from this registry's collection of listeners.
|
Modifier and Type | Method and Description |
---|---|
void |
IotProvider.registerTopology(java.lang.String applicationName,
BiConsumer<IotDevice,com.google.gson.JsonObject> builder)
Register an application that uses an
IotDevice . |
Modifier and Type | Method and Description |
---|---|
void |
AppService.registerTopology(java.lang.String applicationName,
BiConsumer<Topology,com.google.gson.JsonObject> builder) |
Modifier and Type | Method and Description |
---|---|
static TrackingScheduledExecutor |
TrackingScheduledExecutor.newScheduler(java.util.concurrent.ThreadFactory threadFactory,
BiConsumer<java.lang.Object,java.lang.Throwable> completionHandler)
Creates an
TrackingScheduledExecutor using the supplied thread
factory and a completion handler. |
Modifier and Type | Method and Description |
---|---|
void |
JobRegistry.addListener(BiConsumer<JobRegistryService.EventType,Job> listener) |
boolean |
JobRegistry.removeListener(BiConsumer<JobRegistryService.EventType,Job> listener) |
Modifier and Type | Method and Description |
---|---|
BiConsumer<Topology,com.google.gson.JsonObject> |
TopologyBuilder.getBuilder()
How the application is built.
|
Modifier and Type | Method and Description |
---|---|
void |
ApplicationService.registerTopology(java.lang.String applicationName,
BiConsumer<Topology,com.google.gson.JsonObject> builder)
Add a topology that can be started though a control mbean.
|
Modifier and Type | Method and Description |
---|---|
static <T,K,L extends java.util.List<T>> |
Policies.countContentsPolicy(int count)
Returns a count-based contents policy.
|
static <T,K,L extends java.util.List<T>> |
Policies.doNothing()
A
BiConsumer policy which does nothing. |
BiConsumer<Partition<T,K,L>,T> |
Window.getContentsPolicy()
Returns the contents policy of the window.
|
BiConsumer<java.util.List<T>,K> |
Window.getPartitionProcessor()
Returns the partition processor associated with the window.
|
BiConsumer<Partition<T,K,L>,T> |
Window.getTriggerPolicy()
Returns the window's trigger policy.
|
static <T,K,L extends java.util.List<T>> |
Policies.processOnInsert()
Returns a trigger policy that triggers
processing on every insert.
|
static <T,K,L extends java.util.List<T>> |
Policies.processWhenFullAndEvict(int size)
Returns a trigger policy that triggers when the size of a partition
equals or exceeds a value, and then evicts its contents.
|
static <T,K,L extends java.util.List<T>> |
Policies.scheduleEvictIfEmpty(long time,
java.util.concurrent.TimeUnit unit)
A policy which schedules a future partition eviction if the partition is empty.
|
static <T,K,L extends java.util.List<T>> |
Policies.scheduleEvictOnFirstInsert(long time,
java.util.concurrent.TimeUnit unit)
A policy which schedules a future partition eviction on the first insert.
|
Modifier and Type | Method and Description |
---|---|
void |
Window.registerPartitionProcessor(BiConsumer<java.util.List<T>,K> windowProcessor)
Register a WindowProcessor.
|
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.
|
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.
|
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641