public class IPFSProducer
extends org.apache.camel.support.DefaultProducer
| Constructor and Description |
|---|
IPFSProducer(IPFSEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
IPFSConfiguration.IPFSCommand |
getCommand() |
IPFSEndpoint |
getEndpoint() |
List<String> |
ipfsAdd(Path path) |
InputStream |
ipfsCat(String cid) |
Path |
ipfsGet(String cid,
Path outdir) |
String |
ipfsVersion() |
void |
process(org.apache.camel.Exchange exchange) |
createExchange, isSingleton, toStringbuild, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic IPFSProducer(IPFSEndpoint endpoint)
public IPFSEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.support.DefaultProducerprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultProducerExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultProducerExceptionpublic IPFSConfiguration.IPFSCommand getCommand()
public String ipfsVersion() throws IOException
IOExceptionpublic List<String> ipfsAdd(Path path) throws IOException
IOExceptionpublic InputStream ipfsCat(String cid) throws IOException, TimeoutException
IOExceptionTimeoutExceptionpublic Path ipfsGet(String cid, Path outdir) throws IOException, TimeoutException
IOExceptionTimeoutExceptionApache Camel