Package org.apache.nifi.asset
Class StandardAssetManager
java.lang.Object
org.apache.nifi.asset.StandardAssetManager
- All Implemented Interfaces:
AssetManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringcomputeDigest(File file) createAsset(String parameterContextId, String assetName, InputStream contents) private StringcreateAssetId(String parameterContextId, String assetName) createMissingAsset(String parameterContextId, String assetName) deleteAsset(String id) private Fileprivate StringgetStorageLocation(AssetManagerInitializationContext initializationContext) voidprivate void
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
ASSET_STORAGE_LOCATION_PROPERTY
- See Also:
-
DEFAULT_ASSET_STORAGE_LOCATION
- See Also:
-
assetStorageLocation
-
assets
-
-
Constructor Details
-
StandardAssetManager
public StandardAssetManager()
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceAssetManager
-
createAsset
public Asset createAsset(String parameterContextId, String assetName, InputStream contents) throws IOException - Specified by:
createAssetin interfaceAssetManager- Throws:
IOException
-
getAsset
- Specified by:
getAssetin interfaceAssetManager
-
getAssets
- Specified by:
getAssetsin interfaceAssetManager
-
createMissingAsset
- Specified by:
createMissingAssetin interfaceAssetManager
-
deleteAsset
- Specified by:
deleteAssetin interfaceAssetManager
-
createAssetId
-
getFile
-
getStorageLocation
-
recoverLocalAssets
- Throws:
IOException
-
computeDigest
- Throws:
IOException
-