public abstract class BusModBase extends Verticle
Modifier and Type | Field and Description |
---|---|
protected JsonObject |
config |
protected EventBus |
eb |
protected Logger |
logger |
Constructor and Description |
---|
BusModBase() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
getMandatoryBooleanConfig(java.lang.String fieldName) |
protected int |
getMandatoryIntConfig(java.lang.String fieldName) |
protected long |
getMandatoryLongConfig(java.lang.String fieldName) |
protected JsonObject |
getMandatoryObject(java.lang.String field,
Message<JsonObject> message) |
protected java.lang.String |
getMandatoryString(java.lang.String field,
Message<JsonObject> message) |
protected java.lang.String |
getMandatoryStringConfig(java.lang.String fieldName) |
protected JsonArray |
getOptionalArrayConfig(java.lang.String fieldName,
JsonArray defaultValue) |
protected boolean |
getOptionalBooleanConfig(java.lang.String fieldName,
boolean defaultValue) |
protected int |
getOptionalIntConfig(java.lang.String fieldName,
int defaultValue) |
protected long |
getOptionalLongConfig(java.lang.String fieldName,
long defaultValue) |
protected JsonObject |
getOptionalObjectConfig(java.lang.String fieldName,
JsonObject defaultValue) |
protected java.lang.String |
getOptionalStringConfig(java.lang.String fieldName,
java.lang.String defaultValue) |
protected void |
sendError(Message<JsonObject> message,
java.lang.String error) |
protected void |
sendError(Message<JsonObject> message,
java.lang.String error,
java.lang.Exception e) |
protected void |
sendOK(Message<JsonObject> message) |
protected void |
sendOK(Message<JsonObject> message,
JsonObject json) |
protected void |
sendStatus(java.lang.String status,
Message<JsonObject> message) |
protected void |
sendStatus(java.lang.String status,
Message<JsonObject> message,
JsonObject json) |
void |
start()
Start the busmod
|
getContainer, getVertx, setContainer, setVertx, stop
protected EventBus eb
protected JsonObject config
protected Logger logger
protected void sendOK(Message<JsonObject> message)
protected void sendStatus(java.lang.String status, Message<JsonObject> message)
protected void sendStatus(java.lang.String status, Message<JsonObject> message, JsonObject json)
protected void sendOK(Message<JsonObject> message, JsonObject json)
protected void sendError(Message<JsonObject> message, java.lang.String error)
protected void sendError(Message<JsonObject> message, java.lang.String error, java.lang.Exception e)
protected java.lang.String getMandatoryString(java.lang.String field, Message<JsonObject> message)
protected JsonObject getMandatoryObject(java.lang.String field, Message<JsonObject> message)
protected boolean getOptionalBooleanConfig(java.lang.String fieldName, boolean defaultValue)
protected java.lang.String getOptionalStringConfig(java.lang.String fieldName, java.lang.String defaultValue)
protected int getOptionalIntConfig(java.lang.String fieldName, int defaultValue)
protected long getOptionalLongConfig(java.lang.String fieldName, long defaultValue)
protected JsonObject getOptionalObjectConfig(java.lang.String fieldName, JsonObject defaultValue)
protected JsonArray getOptionalArrayConfig(java.lang.String fieldName, JsonArray defaultValue)
protected boolean getMandatoryBooleanConfig(java.lang.String fieldName)
protected java.lang.String getMandatoryStringConfig(java.lang.String fieldName)
protected int getMandatoryIntConfig(java.lang.String fieldName)
protected long getMandatoryLongConfig(java.lang.String fieldName)