public abstract class ActionEndpoint extends Endpoint implements Action
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashSet<Middleware> |
checkedMiddlewares |
protected io.datatree.Tree |
config |
protected Action |
current |
protected int |
hashCode |
protected boolean |
localOnly
Private Action; only the local Broker can access it and cannot be called
remotely.
|
protected static org.slf4j.Logger |
logger |
protected java.lang.String |
name |
protected java.lang.String |
service |
| Constructor and Description |
|---|
ActionEndpoint(java.lang.String nodeID,
java.lang.String service,
io.datatree.Tree config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Action |
getAction() |
io.datatree.Tree |
getConfig() |
java.lang.Object |
handler(Context ctx)
Action's main method.
|
int |
hashCode() |
boolean |
isLocalOnly() |
boolean |
use(Middleware middleware) |
protected static final org.slf4j.Logger logger
protected final io.datatree.Tree config
protected final int hashCode
protected final java.lang.String name
protected final java.lang.String service
protected final boolean localOnly
protected Action current
protected java.util.HashSet<Middleware> checkedMiddlewares
public ActionEndpoint(java.lang.String nodeID,
java.lang.String service,
io.datatree.Tree config)
public java.lang.Object handler(Context ctx) throws java.lang.Exception
Actionpublic boolean use(Middleware middleware)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic io.datatree.Tree getConfig()
public Action getAction()
public boolean isLocalOnly()