Package | Description |
---|---|
org.thales.punch.libraries.punchlang.api |
Punch package documentation.
|
org.thales.punch.libraries.punchlang.impl |
Modifier and Type | Class and Description |
---|---|
class |
PunchletDag
A punchlet dag is a lightweight topology like engine that runs a directed graph of several
layers of punchlets, each in its own thread.
|
class |
Punchlets
Most often several punchlets are grouped as one executable unit.
|
class |
PunchletSequence
The PunchletSequence class chains several punchlets.
|
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<Punchlet> |
Punchlet._threadLocal
this thread local stores the punchlet itself
|
protected List<Punchlet> |
Punchlets.punchletList
The list of individual punchlets
|
Modifier and Type | Method and Description |
---|---|
Punchlet |
Punchlets.addEventCallback(PunchletEventCallback callback) |
Punchlet |
Punchlet.addEventCallback(PunchletEventCallback callback)
This method is not meant to be executed from within a punchlet.
|
Punchlet |
Punchlets.setMetricContext(org.thales.punch.libraries.metrics.api.IMetricContext metricsContext) |
Punchlet |
Punchlet.setMetricContext(org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
Associate a metric context with this punchlet.
|
Modifier and Type | Method and Description |
---|---|
PunchletSequence |
PunchletSequence.add(Punchlet punchlet)
Add a punchlet to the list
|
void |
PunchletSequence.execute(Punchlet fromPunchlet,
Tuple root,
org.thales.punch.api.IReceiver<Tuple> receiver)
Execute a chain of punchlet starting from a specific one.
|
void |
PunchletEventCallback.onReceive(Punchlet punchlet,
Tuple event)
The upcall to receive events generated by a punchlet
|
Modifier and Type | Method and Description |
---|---|
void |
PunchletDag.add(List<Punchlet> punchlets,
String affinity)
Add a punchlet to the list
|
Modifier and Type | Class and Description |
---|---|
class |
TestPunchlet |
Modifier and Type | Method and Description |
---|---|
void |
RuntimeContext.fireEvents(Punchlet punchlet)
Notify the caller from the firing of some events.
|
Constructor and Description |
---|
PunchletDagExecutor(LinkedBlockingQueue<Tuple> inputQueue,
Map<String,LinkedBlockingQueue<Tuple>> affinityMap,
int layer,
int number,
Punchlet punchlet,
Tuple world)
Ctor.
|
Copyright © 2022. All rights reserved.