@Test(expected = ClientException.class) public void deleteDefinitionNodeWithoutAllParams() { NodeCacheManager.deleteDefinitionNode(null, null); }
public static Object deleteDefinitionNode(String graphId, String objectType) { validateRequired(graphId, objectType, GraphCacheErrorCodes.ERR_CACHE_GET_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, objectType, RedisKeysEnum.DEF_NODE.name()); TelemetryManager.log("Deleting definition node from cache having objectType: " + objectType + " in graph: "+ graphId); return definitionNodeCache.remove(key); }
NodeCacheManager { public static Object deleteDefinitionNode(String graphId, String objectType) { validateRequired(graphId, objectType, GraphCacheErrorCodes.ERR_CACHE_GET_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, objectType, RedisKeysEnum.DEF_NODE.name()); TelemetryManager.log("Deleting definition node from cache having objectType: " + objectType + " in graph: "+ graphId); return definitionNodeCache.remove(key); } }
NodeCacheManager { public static Object deleteDefinitionNode(String graphId, String objectType) { validateRequired(graphId, objectType, GraphCacheErrorCodes.ERR_CACHE_GET_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, objectType, RedisKeysEnum.DEF_NODE.name()); TelemetryManager.log("Deleting definition node from cache having objectType: " + objectType + " in graph: "+ graphId); return definitionNodeCache.remove(key); }  }
NodeCacheManager { public static Object deleteDefinitionNode(String graphId, String objectType) { validateRequired(graphId, objectType, GraphCacheErrorCodes.ERR_CACHE_GET_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, objectType, RedisKeysEnum.DEF_NODE.name()); TelemetryManager.log("Deleting definition node from cache having objectType: " + objectType + " in graph: "+ graphId); return definitionNodeCache.remove(key); }  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 Object deleteDefinitionNode(String graphId, String objectType) { validateRequired(graphId, objectType, GraphCacheErrorCodes.ERR_CACHE_GET_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, objectType, RedisKeysEnum.DEF_NODE.name()); TelemetryManager.log("Deleting definition node from cache having objectType: " + objectType + " in graph: "+ graphId); return definitionNodeCache.remove(key); }  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);  }