public class NdnChannelProvider extends Object implements ChannelProvider
Constructor and Description |
---|
NdnChannelProvider()
Default constructor used for SPI loading; the loading class must call the
start(ScheduledExecutorService,
Configuration) method |
NdnChannelProvider(String identityPrefix,
net.named_data.jndn.Face prefixFace,
net.named_data.jndn.Face interestFace,
ScheduledExecutorService eventLoop)
Specific constructor with default channel type; equivalent to calling
start(ScheduledExecutorService,
Configuration) |
NdnChannelProvider(String identityPrefix,
net.named_data.jndn.Face prefixFace,
net.named_data.jndn.Face interestFace,
ScheduledExecutorService eventLoop,
String channelType)
Specific constructor; equivalent to calling
start(ScheduledExecutorService, Configuration) |
NdnChannelProvider(String identityPrefix,
String hostName,
ScheduledExecutorService pool) |
Modifier and Type | Method and Description |
---|---|
<T extends Message> |
build(URI uri,
Pipeline pipeline,
Persistence persistence,
Metadata... metadata)
TODO fix unchecked warnings in this method
|
String |
scheme() |
void |
start(ScheduledExecutorService pool,
Configuration configuration) |
void |
stop() |
public static final String SCHEME
public NdnChannelProvider()
start(ScheduledExecutorService,
Configuration)
methodpublic NdnChannelProvider(String identityPrefix, net.named_data.jndn.Face prefixFace, net.named_data.jndn.Face interestFace, ScheduledExecutorService eventLoop)
start(ScheduledExecutorService,
Configuration)
identityPrefix
- the name used for signature creation (e.g. /intel/node/...)prefixFace
- a face used for registering prefixes for consumers to retrieve data oninterestFace
- a face used for sending interests; this is different from the prefixFace so that a channel
can retrieve its own published messageseventLoop
- the thread pool used for event processingpublic NdnChannelProvider(String identityPrefix, net.named_data.jndn.Face prefixFace, net.named_data.jndn.Face interestFace, ScheduledExecutorService eventLoop, String channelType)
start(ScheduledExecutorService, Configuration)
identityPrefix
- the name used for signature creation (e.g. /intel/node/...)prefixFace
- a face used for registering prefixes for consumers to retrieve data oninterestFace
- a face used for sending interests; this is different from the prefixFace so that a channel
can retrieve its own published messageseventLoop
- the thread pool used for event processingchannelType
- since NDN channels are actively developed, this allows users to choose between different
implementationpublic NdnChannelProvider(String identityPrefix, String hostName, ScheduledExecutorService pool)
identityPrefix
- the name used for signature creation (e.g. /intel/node/...)hostName
- the host name used for the facespool
- the thread pool used for event processingpublic void start(ScheduledExecutorService pool, Configuration configuration)
start
in interface ChannelProvider
public String scheme()
scheme
in interface ChannelProvider
public void stop()
stop
in interface ChannelProvider
public <T extends Message> Channel<T> build(URI uri, Pipeline pipeline, Persistence persistence, Metadata... metadata) throws ChannelLifetimeException
build
in interface ChannelProvider
ChannelLifetimeException
Copyright © 2017. All rights reserved.