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 TypeMethodDescriptionvoiddispose()voidflushIO()flush requests to the serverprotected org.epics.pvaccess.client.ChannelProviderprotected org.epics.pvaccess.client.ChannelProviderprotected voidbooleanstatic final voidloadConfig(boolean isServer) This method preloads the JCA and PVA configuration.protected static Epics7ChannelSystemvoidpendEvent(double timeout) Schedule the queued requests with the specified timeoutbooleanpendIO(double timeout) Schedule an IO request with the specified timeoutvoidPrint information about this systemvoidsetDebugMode(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:ChannelSystemSet the debug mode of the channel system.- Specified by:
setDebugModein interfaceChannelSystem- Parameters:
debugFlag- True to enable debug mode and false to disable debug mode.
-
flushIO
public void flushIO()Description copied from interface:ChannelSystemflush requests to the server- Specified by:
flushIOin interfaceChannelSystem
-
pendIO
public boolean pendIO(double timeout) Description copied from interface:ChannelSystemSchedule an IO request with the specified timeout- Specified by:
pendIOin 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:ChannelSystemSchedule the queued requests with the specified timeout- Specified by:
pendEventin interfaceChannelSystem- Parameters:
timeout- the maximum time to wait for successful handling of the request
-
printInfo
public void printInfo()Description copied from interface:ChannelSystemPrint information about this system- Specified by:
printInfoin interfaceChannelSystem
-
isInitialized
public boolean isInitialized() -
dispose
public void dispose()
-