Package org.epics.pvaccess.client
Interface ChannelProvider
-
- All Known Implementing Classes:
RPCChannelProvider
public interface ChannelProvider
Interface implemented by code that can provide access to the record to which a channel connects.- Author:
- mrk
-
-
Field Summary
Fields Modifier and Type Field Description static short
PRIORITY_ARCHIVE
Archive priority.static short
PRIORITY_DEFAULT
Default priority.static short
PRIORITY_LINKS_DB
DB links priority.static short
PRIORITY_MAX
Maximal priority.static short
PRIORITY_MIN
Minimal priority.static short
PRIORITY_OPI
OPI priority.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Field Detail
-
PRIORITY_MIN
static final short PRIORITY_MIN
Minimal priority.- See Also:
- Constant Field Values
-
PRIORITY_MAX
static final short PRIORITY_MAX
Maximal priority.- See Also:
- Constant Field Values
-
PRIORITY_DEFAULT
static final short PRIORITY_DEFAULT
Default priority.- See Also:
- Constant Field Values
-
PRIORITY_LINKS_DB
static final short PRIORITY_LINKS_DB
DB links priority.- See Also:
- Constant Field Values
-
PRIORITY_ARCHIVE
static final short PRIORITY_ARCHIVE
Archive priority.- See Also:
- Constant Field Values
-
PRIORITY_OPI
static final short PRIORITY_OPI
OPI priority.- See Also:
- Constant Field Values
-
-
Method Detail
-
destroy
void destroy()
Terminate.
-
getProviderName
String getProviderName()
Get the provider name.- Returns:
- The name.
-
channelFind
ChannelFind channelFind(String channelName, ChannelFindRequester channelFindRequester)
Find a channel.- Parameters:
channelName
- The channel name.channelFindRequester
- The requester.- Returns:
- An interface for the find.
-
channelList
ChannelFind channelList(ChannelListRequester channelListRequester)
Find a channel.- Parameters:
channelListRequester
- The requester.- Returns:
- An interface for the find.
-
createChannel
Channel createChannel(String channelName, ChannelRequester channelRequester, short priority)
Create a channel.- 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
Channel createChannel(String channelName, ChannelRequester channelRequester, short priority, String address)
Create a channel.- 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.
-
-