Package xal.plugin.epics7
Class Epics7ChannelSystem
java.lang.Object
xal.plugin.epics7.Epics7ChannelSystem
- All Implemented Interfaces:
ChannelSystem
- Direct Known Subclasses:
Epics7ServerChannelSystem
- Author:
- Juan F. Esteban Müller <JuanF.EstebanMuller@ess.eu>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
flushIO()
flush requests to the serverprotected org.epics.pvaccess.client.ChannelProvider
protected org.epics.pvaccess.client.ChannelProvider
protected void
boolean
static final void
loadConfig
(boolean isServer) This method preloads the JCA and PVA configuration.protected static Epics7ChannelSystem
void
pendEvent
(double timeout) Schedule the queued requests with the specified timeoutboolean
pendIO
(double timeout) Schedule an IO request with the specified timeoutvoid
Print information about this systemvoid
setDebugMode
(boolean debugFlag) Set the debug mode of the channel system.
-
Field Details
-
initialized
protected volatile boolean initialized
-
-
Constructor Details
-
Epics7ChannelSystem
protected Epics7ChannelSystem()
-
-
Method Details
-
getCaChannelProvider
protected org.epics.pvaccess.client.ChannelProvider getCaChannelProvider() -
getPvaChannelProvider
protected org.epics.pvaccess.client.ChannelProvider getPvaChannelProvider() -
newEpics7ChannelSystem
-
initialize
protected void initialize() -
loadConfig
public static final void loadConfig(boolean isServer) This method preloads the JCA and PVA configuration. It takes the configuration from Preferences or from environment variables, in that precedence order. It ignores the jca.use_env property and the JCALibrary file.- Parameters:
isServer
- if server configuration has to be loaded.
-
setDebugMode
public void setDebugMode(boolean debugFlag) Description copied from interface:ChannelSystem
Set the debug mode of the channel system.- Specified by:
setDebugMode
in interfaceChannelSystem
- Parameters:
debugFlag
- True to enable debug mode and false to disable debug mode.
-
flushIO
public void flushIO()Description copied from interface:ChannelSystem
flush requests to the server- Specified by:
flushIO
in interfaceChannelSystem
-
pendIO
public boolean pendIO(double timeout) Description copied from interface:ChannelSystem
Schedule an IO request with the specified timeout- Specified by:
pendIO
in interfaceChannelSystem
- Parameters:
timeout
- the maximum time to wait for a successful pend IO- Returns:
- true upon success and false upon failure
-
pendEvent
public void pendEvent(double timeout) Description copied from interface:ChannelSystem
Schedule the queued requests with the specified timeout- Specified by:
pendEvent
in interfaceChannelSystem
- Parameters:
timeout
- the maximum time to wait for successful handling of the request
-
printInfo
public void printInfo()Description copied from interface:ChannelSystem
Print information about this system- Specified by:
printInfo
in interfaceChannelSystem
-
isInitialized
public boolean isInitialized() -
dispose
public void dispose()
-