public class GridFSMediaStorageCleaner extends java.lang.Object implements MediaStorageInitializer
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
tenantPrefix |
| Constructor and Description |
|---|
GridFSMediaStorageCleaner() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkStorageConnection()
checks if communication with external media storage is possible.
|
void |
onInitialize()
Prepares media storage on initialization.
|
void |
onUpdate()
Prepares media storage on update.
|
void |
setCleanOnInit(boolean cleanOnInit) |
void |
setDbFactory(MongoDbFactory dbFactory) |
void |
setStorageConfigService(MediaStorageConfigService storageConfigService) |
void |
setTenantPrefix() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfailOnInitUpdateErrorpublic void setTenantPrefix()
public void onInitialize()
MediaStorageInitializeronInitialize in interface MediaStorageInitializerpublic void checkStorageConnection()
throws ExternalStorageServiceException
MediaStorageInitializercheckStorageConnection in interface MediaStorageInitializerExternalStorageServiceException - when communication with storage doesn't workpublic void setCleanOnInit(boolean cleanOnInit)
public void setDbFactory(MongoDbFactory dbFactory)
public void setStorageConfigService(MediaStorageConfigService storageConfigService)
public void onUpdate()
MediaStorageInitializeronUpdate in interface MediaStorageInitializerCopyright © 2017 SAP SE. All Rights Reserved.