@Test(expected = ClientException.class) public void saveDefinitionNodeWithoutNodeAndObjectType() { NodeCacheManager.saveDefinitionNode("domain", null, null); }
public static void saveDefinitionNode(String graphId, String objectType, Object node) { validateRequired(graphId, objectType, node, GraphCacheErrorCodes.ERR_CACHE_SAVE_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, objectType, RedisKeysEnum.DEF_NODE.name()); definitionNodeCache.put(key, node); TelemetryManager.log("Saved definition node into cache having objectType: " + objectType + " into graph: "+ graphId); }
NodeCacheManager { public static void saveDefinitionNode(String graphId, String objectType, Object node) { validateRequired(graphId, objectType, node, GraphCacheErrorCodes.ERR_CACHE_SAVE_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, objectType, RedisKeysEnum.DEF_NODE.name()); definitionNodeCache.put(key, node); TelemetryManager.log("Saved definition node into cache having objectType: " + objectType + " into graph: "+ graphId); } }
NodeCacheManager { public static void saveDefinitionNode(String graphId, String objectType, Object node) { validateRequired(graphId, objectType, node, GraphCacheErrorCodes.ERR_CACHE_SAVE_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, objectType, RedisKeysEnum.DEF_NODE.name()); definitionNodeCache.put(key, node); TelemetryManager.log("Saved definition node into cache having objectType: " + objectType + " into graph: "+ graphId); }  }
NodeCacheManager { public static void saveDefinitionNode(String graphId, String objectType, Object node) { validateRequired(graphId, objectType, node, GraphCacheErrorCodes.ERR_CACHE_SAVE_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, objectType, RedisKeysEnum.DEF_NODE.name()); definitionNodeCache.put(key, node); TelemetryManager.log("Saved definition node into cache having objectType: " + objectType + " into graph: "+ graphId); }  static void saveDefinitionNode(String graphId, String objectType, Object node); static Object getDefinitionNode(String graphId, String objectType); static Object deleteDefinitionNode(String graphId, String objectType); static void saveDataNode(String graphId, String id, Object node); static Object getDataNode(String graphId, String id); static Object deleteDataNode(String graphId, String id); }
NodeCacheManager { public static void saveDefinitionNode(String graphId, String objectType, Object node) { validateRequired(graphId, objectType, node, GraphCacheErrorCodes.ERR_CACHE_SAVE_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, objectType, RedisKeysEnum.DEF_NODE.name()); definitionNodeCache.put(key, node); TelemetryManager.log("Saved definition node into cache having objectType: " + objectType + " into graph: "+ graphId); }  static void saveDefinitionNode(String graphId, String objectType, Object node); static Object getDefinitionNode(String graphId, String objectType); static Object deleteDefinitionNode(String graphId, String objectType); static void saveDataNode(String graphId, String id, Object node); static Object getDataNode(String graphId, String id); static Object deleteDataNode(String graphId, String id);  }