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
init
in interface OciResourcesLocalizerInterface
conf
- the storm conf.IOException
- on I/O exceptionpublic String localize(OciResource ociResource) throws IOException
localize
in interface OciResourcesLocalizerInterface
ociResource
- The oci resource to downloadIOException
- on I/O exceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.