/** * Does the location exist? * * @param location * @return whether the contents of the location are non null */ public synchronized boolean containsLocation(int[] location) { return (get(location) != null); }
prefix[i] = newJob.getIndex()[i]; Job j = caches[0].get(prefix); if (j != null) { Map<String, T2Reference> newDataMap = new HashMap<String, T2Reference>();
/** * Does the location exist? * * @param location * @return whether the contents of the location are non null */ public synchronized boolean containsLocation(int[] location) { return (get(location) != null); }
prefix[i] = newJob.getIndex()[i]; Job j = caches[0].get(prefix); if (j != null) { Map<String, T2Reference> newDataMap = new HashMap<String, T2Reference>();
/** * Does the location exist? * * @param location * @return whether the contents of the location are non null */ public synchronized boolean containsLocation(int[] location) { return (get(location) != null); }
prefix[i] = newJob.getIndex()[i]; Job j = caches[0].get(prefix); if (j != null) { Map<String, EntityIdentifier> newDataMap = new HashMap<String, EntityIdentifier>();
public void testStoreWithGap() { TreeCache tc = new TreeCache(); Job j1 = new Job("process", new int[]{0,1}, new HashMap<String, EntityIdentifier>(), context); Job j2 = new Job("process", new int[]{0,0}, new HashMap<String, EntityIdentifier>(), context); tc.insertJob(j1); tc.insertJob(j2); System.out.println(tc); assertTrue(tc.get(new int[]{0,1}).equals(j1)); assertTrue(tc.get(new int[]{0,0}).equals(j2)); }
public void testStoreLoad() { TreeCache tc = new TreeCache(); Job j = new Job("process", new int[0], new HashMap<String, EntityIdentifier>(), context); tc.insertJob(j); assertTrue(tc.get(new int[0]).equals(j)); }
public void testStoreLoadWithDepth() { TreeCache tc = new TreeCache(); Job j = new Job("process", new int[]{0}, new HashMap<String, EntityIdentifier>(), context); tc.insertJob(j); assertTrue(tc.get(new int[]{0}).equals(j)); }
newDataMap.putAll(cache.get(indexArray).getData()); } else { foundMatch = false;
newDataMap.putAll(cache.get(indexArray).getData()); } else { foundMatch = false;
newDataMap.putAll(cache.get(indexArray).getData()); } else { foundMatch = false;