@Test public void testJCloudsBinaryManager() throws Exception { Binary binary = binaryManager.getBinary(CONTENT_MD5); Assert.assertTrue(binary instanceof LazyBinary); if (binary.getStream() != null) { binaryManager.removeBinary(CONTENT_MD5); binaryManager.fileCache.clear(); } CONTENT.getBytes("UTF-8"); binary = binaryManager.getBinary(Blobs.createBlob(CONTENT)); Assert.assertNotNull(binary); binary = binaryManager.getBinary(CONTENT_MD5); Assert.assertNotNull(binary); Assert.assertEquals(CONTENT, IOUtils.toString(binary.getStream(), "UTF-8")); binaryManager.fileCache.clear(); binary = binaryManager.getBinary(CONTENT_MD5); Assert.assertNotNull(binary); Assert.assertEquals(CONTENT, IOUtils.toString(binary.getStream(), "UTF-8")); }
protected void removeBinary(String digest) { blobStore.removeBlob(container, digest); }
JCloudsBinaryManager extends CachingBinaryManager { protected void removeBinary(String digest) { blobStore.removeBlob(container, digest); } }
JCloudsBinaryManager extends CachingBinaryManager { protected void removeBinary(String digest) { blobStore.removeBlob(container, digest); }  }
JCloudsBinaryManager extends CachingBinaryManager { protected void removeBinary(String digest) { blobStore.removeBlob(container, digest); }  @Override void initialize(String blobProviderId, Map<String, String> properties); static boolean isMD5(String digest); }
JCloudsBinaryManager extends CachingBinaryManager { protected void removeBinary(String digest) { blobStore.removeBlob(container, digest); }  @Override void initialize(String blobProviderId, Map<String, String> properties); static boolean isMD5(String digest); static final String BLOBSTORE_PROVIDER_KEY; static final String BLOBSTORE_MAP_NAME_KEY; static final String BLOBSTORE_LOCATION_KEY; static final String BLOBSTORE_ENDPOINT_KEY; static final String DEFAULT_LOCATION; static final String BLOBSTORE_IDENTITY_KEY; static final String BLOBSTORE_SECRET_KEY; static final String CACHE_SIZE_KEY; static final String DEFAULT_CACHE_SIZE; }