public class HdfsOciResourcesLocalizer extends Object implements OciResourcesLocalizerInterface
Constructor and Description |
---|
HdfsOciResourcesLocalizer() |
Modifier and Type | Method and Description |
---|---|
void |
init(Map<String,Object> conf)
Initialization.
|
String |
localize(OciResource ociResource)
Download the resources from HDFS to local dir.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
localize
public void init(Map<String,Object> conf) throws IOException
Initialization.
init
in interface OciResourcesLocalizerInterface
conf
- the storm conf.IOException
- on I/O exceptionpublic String localize(OciResource ociResource) throws IOException
Download the resources from HDFS to local dir.
localize
in interface OciResourcesLocalizerInterface
ociResource
- The oci resource to downloadIOException
- on I/O exceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.