| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SubscribableCrudModel(String path,
ModelType type,
PathfinderServices services)
Constructs a subscribable CRUD model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Reads the model specified by the path from the server.
|
protected void |
create(JsonObject value,
boolean checkConnected)
Creates the model at the path specified on the server.
|
void |
delete()
Deletes the model specified by the path on the server.
|
protected void |
update(JsonObject value)
Updates the model specified by the path on the server.
|
getMessageHeader, routeSubscribe, routeUnsubscribe, subscribe, unsubscribecreateValueJson, getChildPath, getModelType, getName, getParentCluster, getParentPath, getPath, getPathName, getServices, isConnected, notifyUpdate, route, setConnected, updateFieldsaddListener, getListeners, removeListenerpublic SubscribableCrudModel(String path, ModelType type, PathfinderServices services)
path - of the model.type - of the model.services - a pathfinder services object.public void connect()
protected void create(JsonObject value, boolean checkConnected)
value - JsonObject that represents the model to createcheckConnected - check if the model is connected.public void delete()
protected void update(JsonObject value)
value - of the update request.