public class BeaconDetectorConfiguration
extends java.lang.Object
BeaconDetector
.Constructor and Description |
---|
BeaconDetectorConfiguration()
Creates a configuration for a beacon detector using the
EPICS_CA_REPEATER_PORT and EPICS_CA_SERVER_PORT
environment variables. |
BeaconDetectorConfiguration(ErrorHandler errorHandler,
java.lang.Integer defaultServerPort,
java.lang.Integer repeaterPort)
Creates a beacon detector configuration using the specified options.
|
Modifier and Type | Method and Description |
---|---|
int |
getDefaultServerPort()
Returns the TCP and UDP port that should be used when connecting to a
server for name resolution and no port has been specified for this server
explicitly.
|
ErrorHandler |
getErrorHandler()
Returns the error handler that should be used by the beacon detector.
|
int |
getRepeaterPort()
Returns the UDP port number that should be used when connecting to the
Channel Access repeater.
|
public BeaconDetectorConfiguration()
EPICS_CA_REPEATER_PORT
and EPICS_CA_SERVER_PORT
environment variables. These variables have exactly the same meaning and
default values as specified by the Channel Access Reference Manual.public BeaconDetectorConfiguration(ErrorHandler errorHandler, java.lang.Integer defaultServerPort, java.lang.Integer repeaterPort)
null
is initialized from its corresponding
environment variable.errorHandler
- error handler which is used to log errors that are encountered
by the beacon detector or null
if a
JavaUtilLoggingErrorHandler
shall be used.defaultServerPort
- default port to assume for servers if no port is specified
explicitly or null
to use
EPICS_CA_SERVER_PORT
.repeaterPort
- port on which the repeater is listening or null
to use EPICS_CA_REPEATER_PORT
.java.lang.IllegalArgumentException
- if repeaterPort
is specified and zero or an
invalid port number.public ErrorHandler getErrorHandler()
ExceptionSafeErrorHandler
.public int getDefaultServerPort()
public int getRepeaterPort()
Copyright © 2014–2019 aquenos GmbH. All rights reserved.