public class BatchConnectionTest
extends java.lang.Object
Ported from XAL on Jul 15, 2014.
· Jonathan M. Freed
| Modifier and Type | Class and Description |
|---|---|
class |
BatchConnectionTest.ConnectionMonitor
This class is used is a Channel Access connection
monitor.
|
| Constructor and Description |
|---|
BatchConnectionTest(AcceleratorNode smfDev)
Creates a new
BatchConnectionTest object
for the given accelerator device. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<Channel> |
getConnectedChannels()
Returns a copy of the current set of channels that passed the connectivity
test (even if some channels in the original batch failed).
|
void |
setChecking(boolean bolChecking)
Force the connection checking on or off.
|
boolean |
testConnection(java.lang.Class<?> clsScada,
double dblTmOut)
Test the given (implied) SCADA class for channel connectivity of .
|
boolean |
testConnection(java.util.Collection<ScadaFieldDescriptor> setFds,
double dblTmOut)
Test the given set of PV field descriptors for channel
connectivity.
|
public BatchConnectionTest(AcceleratorNode smfDev)
BatchConnectionTest object
for the given accelerator device.smfDev - accelerator hardware under testpublic void setChecking(boolean bolChecking)
testConnection(Class, double)
and testConnection(Collection, double)) perform
no operation and return a value of true.bolChecking - if true then connection checking continues as normal
if false then connection checking is turned off regardlesspublic boolean testConnection(java.lang.Class<?> clsScada,
double dblTmOut)
throws BadStructException,
BadChannelException
clsScada - class type of the SCADA data structure under testdblTmOut - timeout before connectivity test fails (in seconds)true if all connections are available,
false otherwiseBadStructException - the given class has no SCADA field annotationsBadChannelException - bad channel handle, no channel bound to ittestConnection(Collection, double)public boolean testConnection(java.util.Collection<ScadaFieldDescriptor> setFds, double dblTmOut) throws BadChannelException, java.lang.IllegalArgumentException
setFds - set of field descriptorsdblTmOut - timeout before connectivity test fails (in seconds)true if all channels described in the list are connected,
false otherwiseBadChannelException - bad channel handle, no channel bound to itjava.lang.IllegalArgumentException - the given collection of descriptors is emptypublic java.util.Set<Channel> getConnectedChannels()