@Override public void initializeFromJson(JsonNode node) { // init from super (gets hook configuration parsers and anything else that's common) super.initializeFromJson(node); if (node != null) { JsonNode x = node.get("dataSource"); if (x != null) { datasource = x.asText(); } x = node.get("collection"); if (x != null) { collection = x.asText(); } x=node.get("cachePeekIntervalMsec"); if(x!=null) cachePeekInterval=x.asLong(); x=node.get("cacheTTLMsec"); if(x!=null) cacheTTL=x.asLong(); } } }
@Override public void initializeFromJson(JsonNode node) { // init from super (gets hook configuration parsers and anything else that's common) super.initializeFromJson(node); if (node != null) { JsonNode x = node.get("dataSource"); if (x != null) { datasource = x.asText(); } x = node.get("collection"); if (x != null) { collection = x.asText(); } x = node.get("cachePeekIntervalMsec"); if (x != null) { cachePeekInterval = x.asLong(); } x = node.get("cacheTTLMsec"); if (x != null) { cacheTTL = x.asLong(); } } } }