Class RPCChannelProvider
- java.lang.Object
-
- org.epics.pvaccess.server.rpc.impl.RPCChannelProvider
-
- All Implemented Interfaces:
ChannelProvider
public class RPCChannelProvider extends Object implements ChannelProvider
- Author:
- msekoranja
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROVIDER_NAME
-
Fields inherited from interface org.epics.pvaccess.client.ChannelProvider
PRIORITY_ARCHIVE, PRIORITY_DEFAULT, PRIORITY_LINKS_DB, PRIORITY_MAX, PRIORITY_MIN, PRIORITY_OPI
-
-
Constructor Summary
Constructors Constructor Description RPCChannelProvider(ThreadPoolExecutor threadPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelFind
channelFind(String channelName, ChannelFindRequester channelFindRequester)
Find a channel.ChannelFind
channelList(ChannelListRequester channelListRequester)
Find a channel.Channel
createChannel(String channelName, ChannelRequester channelRequester, short priority)
Create a channel.Channel
createChannel(String channelName, ChannelRequester channelRequester, short priority, String address)
Create a channel.void
destroy()
Terminate.String
getProviderName()
Get the provider name.void
registerService(String serviceName, Service service)
void
unregisterService(String serviceName)
-
-
-
Field Detail
-
PROVIDER_NAME
public static final String PROVIDER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RPCChannelProvider
public RPCChannelProvider(ThreadPoolExecutor threadPool)
-
-
Method Detail
-
getProviderName
public String getProviderName()
Description copied from interface:ChannelProvider
Get the provider name.- Specified by:
getProviderName
in interfaceChannelProvider
- Returns:
- The name.
-
channelFind
public ChannelFind channelFind(String channelName, ChannelFindRequester channelFindRequester)
Description copied from interface:ChannelProvider
Find a channel.- Specified by:
channelFind
in interfaceChannelProvider
- Parameters:
channelName
- The channel name.channelFindRequester
- The requester.- Returns:
- An interface for the find.
-
channelList
public ChannelFind channelList(ChannelListRequester channelListRequester)
Description copied from interface:ChannelProvider
Find a channel.- Specified by:
channelList
in interfaceChannelProvider
- Parameters:
channelListRequester
- The requester.- Returns:
- An interface for the find.
-
createChannel
public Channel createChannel(String channelName, ChannelRequester channelRequester, short priority)
Description copied from interface:ChannelProvider
Create a channel.- Specified by:
createChannel
in interfaceChannelProvider
- Parameters:
channelName
- The name of the channel.channelRequester
- The requester.priority
- channel priority, must bePRIORITY_MIN
≤ priority ≤PRIORITY_MAX
.- Returns:
Channel
instance. If channel does not existnull
is returned andchannelRequester
notified.
-
createChannel
public Channel createChannel(String channelName, ChannelRequester channelRequester, short priority, String address)
Description copied from interface:ChannelProvider
Create a channel.- Specified by:
createChannel
in interfaceChannelProvider
- Parameters:
channelName
- The name of the channel.channelRequester
- The requester.priority
- channel priority, must bePRIORITY_MIN
≤ priority ≤PRIORITY_MAX
.address
- address (or list of addresses) where to look for a channel. Implementation independent string.- Returns:
Channel
instance. If channel does not existnull
is returned andchannelRequester
notified.
-
unregisterService
public void unregisterService(String serviceName)
-
destroy
public void destroy()
Description copied from interface:ChannelProvider
Terminate.- Specified by:
destroy
in interfaceChannelProvider
-
-