public final class ApplicationInitialization
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLAZZ
Class name.
|
static int |
INIT_DELAY_ERROR_DEFAULT
Is the default delay time after initializing the application in
seconds.
|
static int |
initDelayError
Is the delay time after initializing the application.
|
Constructor and Description |
---|
ApplicationInitialization() |
Modifier and Type | Method and Description |
---|---|
static void |
initialize()
Initialize the whole application and analyzed all provoked command line
arguments from the static class
AppArguments . |
static void |
initialize(java.lang.String... args_)
Initialize the whole application and analyzed all command line arguments
from the delivered pass-through array.
|
static void |
initializeCDI(ICDIDevice.EApplicationModel model_,
int waitBeforeServerStarts_,
int waitAfterError_,
int readBackRetries_,
java.lang.String[] cdiServers_,
ICDIDevice cdiDevice_,
boolean initAllDevices_,
RFDialog.IVersion... version_)
Shows the CDI dialog box of initializing all CDI servers and if an
error occurs reports the error messages for the
waitAfterError_
time in seconds. |
static void |
initializeCDI(ICDIDevice.EApplicationModel model_,
int waitBeforeServerStarts_,
int waitAfterError_,
int readBackRetries_,
java.lang.String[] cdiServers_,
ICDIDevice cdiDevice_,
RFDialog.IVersion... version_)
Shows the CDI dialog box of initializing all CDI servers and if an
error occurs reports the error messages for the
waitAfterError_
time in seconds. |
static void |
initializeCDI(ICDIDevice.EApplicationModel model_,
int waitAfterError_,
int readBackRetries_,
java.lang.String[] cdiServers_,
ICDIDevice cdiDevice_,
RFDialog.IVersion... version_)
Shows the CDI dialog box of initializing all CDI servers and if an
error occurs reports the error messages for the
waitAfterError_
time in seconds. |
static void |
initializeCDI(ICDIDevice.EApplicationModel model_,
int waitAfterError_,
java.lang.String[] cdiServers_,
ICDIDevice cdiDevice_,
RFDialog.IVersion... version_)
Shows the CDI dialog box of initializing all CDI servers and if an
error occurs reports the error messages for the
waitAfterError_
time in seconds. |
static void |
initializeCDI(int waitBeforeServerStarts_,
int waitAfterError_,
int readBackRetries_,
java.lang.String[] cdiServers_,
ICDIDevice cdiDevice_,
RFDialog.IVersion... version_)
Deprecated.
|
static void |
initializeCDI(int waitAfterError_,
int readBackRetries_,
java.lang.String[] cdiServers_,
ICDIDevice cdiDevice_,
RFDialog.IVersion... version_)
Deprecated.
|
static void |
initializeCDI(int waitAfterError_,
java.lang.String[] cdiServers_,
ICDIDevice cdiDevice_,
RFDialog.IVersion... version_)
Deprecated.
|
static void |
initializeCDI(java.lang.String[] cdiServers_,
ICDIDevice cdiDevice_,
RFDialog.IVersion... version_)
Deprecated.
|
public static final java.lang.String CLAZZ
public static final int INIT_DELAY_ERROR_DEFAULT
public static int initDelayError
public static void initialize(java.lang.String... args_)
args_
- All command line arguments.public static void initialize()
AppArguments
.@Deprecated public static final void initializeCDI(java.lang.String[] cdiServers_, ICDIDevice cdiDevice_, RFDialog.IVersion... version_)
#initializeCDI(EApplicationModel, int, String[], ICDIDevice, IVersion...)
instead. This method initializes the application model server.cdiServers_
- A string array which contains all possible TINE
pre-addresses.cdiDevice_
- CDI device singleton.version_
- All version instances.#initializeCDI(int, String[], ICDIDevice, IVersion...)
,
#initializeCDI(int, int, String[], ICDIDevice, IVersion...)
,
#initializeCDI(int, int, int, String[], ICDIDevice, IVersion...)
@Deprecated public static final void initializeCDI(int waitAfterError_, java.lang.String[] cdiServers_, ICDIDevice cdiDevice_, RFDialog.IVersion... version_)
#initializeCDI(EApplicationModel, int, String[], ICDIDevice, IVersion...)
instead. This method initializes the application model server.waitAfterError_
- The delay time of errors after doing the
initialization stuff of all CDI servers. This is declared in
milliseconds if this value is greater then 60 or in seconds if it
is lower or equal to 60.cdiServers_
- A string array which contains all possible TINE
pre-addresses.cdiDevice_
- CDI device singleton.version_
- All version instances.#initializeCDI(EApplicationModel, int, String[], ICDIDevice, IVersion...)
public static final void initializeCDI(ICDIDevice.EApplicationModel model_, int waitAfterError_, java.lang.String[] cdiServers_, ICDIDevice cdiDevice_, RFDialog.IVersion... version_)
Shows the CDI dialog box of initializing all CDI servers and if an
error occurs reports the error messages for the waitAfterError_
time in seconds. The delay time before the server starts is set to null,
which means that their is no delay time.
The default time for retrying if the connection to the CDI server fails is 2 times. After this time the error is pronounced in a separate dialog box which the user must accept.
This will method will load all meta device information on each property.
model_
- Devides the two possible application model for initializing
the application. Internally this method will call the refresh method
which reflects via a synchronous TINE call the meta information
from the server, which depends on the application model (for example
the client would be interested in the unit of a value where the
server would be interested in the range of a value).waitAfterError_
- The delay time of errors after doing the
initialization stuff of all CDI servers. This is declared in
milliseconds if this value is greater then 60 or in seconds if it
is lower or equal to 60.cdiServers_
- A string array which contains all possible TINE
pre-addresses.cdiDevice_
- CDI device singleton.version_
- All version instances.#initializeCDI(EApplicationModel, int, int, String[], ICDIDevice, IVersion...)
@Deprecated public static final void initializeCDI(int waitAfterError_, int readBackRetries_, java.lang.String[] cdiServers_, ICDIDevice cdiDevice_, RFDialog.IVersion... version_)
This method is deprecated. You should use the method #initializeCDI(EApplicationModel, int, int, String[], ICDIDevice, IVersion...)
instead. This method initializes the application model server.
This will method will load all meta device information on each property.
waitAfterError_
- The delay time of errors after doing the
initialization stuff of all CDI servers. This is declared in
milliseconds if this value is greater then 60 or in seconds if it
is lower or equal to 60.readBackRetries_
- Number of retries if reading the CDI meta value
fails.cdiServers_
- A string array which contains all possible TINE
pre-addresses.cdiDevice_
- CDI device singleton.version_
- All version instances.#initializeCDI(EApplicationModel, int, int, int, String[], ICDIDevice, IVersion...)
public static final void initializeCDI(ICDIDevice.EApplicationModel model_, int waitAfterError_, int readBackRetries_, java.lang.String[] cdiServers_, ICDIDevice cdiDevice_, RFDialog.IVersion... version_)
Shows the CDI dialog box of initializing all CDI servers and if an
error occurs reports the error messages for the waitAfterError_
time in seconds. The delay time before the server starts is set to null,
which means that their is no delay time.
The default time for retrying if the connection to the CDI server fails is 30 times. After this time the error is pronounced in a separate dialog box which the user must accept.
This will method will load all meta device information on each property.
model_
- Devides the two possible application model for initializing
the application. Internally this method will call the refresh method
which reflects via a synchronous TINE call the meta information
from the server, which depends on the application model (for example
the client would be interested in the unit of a value where the
server would be interested in the range of a value).waitAfterError_
- The delay time of errors after doing the
initialization stuff of all CDI servers. This is declared in
milliseconds if this value is greater then 60 or in seconds if it
is lower or equal to 60.readBackRetries_
- Number of retries if reading the CDI meta value
fails.cdiServers_
- A string array which contains all possible TINE
pre-addresses.cdiDevice_
- CDI device singleton.version_
- All version instances.#initializeCDI(EApplicationModel, int, int, int, String[], ICDIDevice, IVersion...)
@Deprecated public static final void initializeCDI(int waitBeforeServerStarts_, int waitAfterError_, int readBackRetries_, java.lang.String[] cdiServers_, ICDIDevice cdiDevice_, RFDialog.IVersion... version_)
This method is deprecated. You should use the method #initializeCDI(EApplicationModel, int, int, int, String[], ICDIDevice, IVersion...)
instead. This method initializes the application model server.
This will method will load all meta device information on each property.
waitBeforeServerStarts_
- Is the delay time which is executed
before the server starts its initialization. It is declared in
milliseconds. Should be greater then 1000 milliseconds. By a wait time
of 0 the delay time is ignored.waitAfterError_
- The delay time of errors after doing the
initialization stuff of all CDI servers. This is declared in
milliseconds if this value is greater then 60 or in seconds if it
is lower or equal to 60.readBackRetries_
- Number of retries if reading the CDI meta value
fails.cdiServers_
- A string array which contains all possible TINE
pre-addresses.cdiDevice_
- CDI device singleton.version_
- All version instances.#initializeCDI(EApplicationModel, int, int, int, String[], ICDIDevice, IVersion...)
public static final void initializeCDI(ICDIDevice.EApplicationModel model_, int waitBeforeServerStarts_, int waitAfterError_, int readBackRetries_, java.lang.String[] cdiServers_, ICDIDevice cdiDevice_, RFDialog.IVersion... version_)
Shows the CDI dialog box of initializing all CDI servers and if an
error occurs reports the error messages for the waitAfterError_
time in seconds.
This will method will load all meta device information on each property.
model_
- Devides the two possible application model for initializing
the application. Internally this method will call the refresh method
which reflects via a synchronous TINE call the meta information
from the server, which depends on the application model (for example
the client would be interested in the unit of a value where the
server would be interested in the range of a value).waitBeforeServerStarts_
- Is the delay time which is executed
before the server starts its initialization. It is declared in
milliseconds. Should be greater then 1000 milliseconds. By a wait time
of 0 the delay time is ignored.waitAfterError_
- The delay time of errors after doing the
initialization stuff of all CDI servers. This is declared in
milliseconds if this value is greater then 60 or in seconds if it
is lower or equal to 60.readBackRetries_
- Number of retries if reading the CDI meta value
fails.cdiServers_
- A string array which contains all possible TINE
pre-addresses.cdiDevice_
- CDI device singleton.version_
- All version instances.#initializeCDI(EApplicationModel, int, int, int, String[], ICDIDevice, boolean, IVersion...)
public static final void initializeCDI(ICDIDevice.EApplicationModel model_, int waitBeforeServerStarts_, int waitAfterError_, int readBackRetries_, java.lang.String[] cdiServers_, ICDIDevice cdiDevice_, boolean initAllDevices_, RFDialog.IVersion... version_)
waitAfterError_
time in seconds.model_
- Devides the two possible application model for initializing
the application. Internally this method will call the refresh method
which reflects via a synchronous TINE call the meta information
from the server, which depends on the application model (for example
the client would be interested in the unit of a value where the
server would be interested in the range of a value).waitBeforeServerStarts_
- Is the delay time which is executed
before the server starts its initialization. It is declared in
milliseconds. Should be greater then 1000 milliseconds. By a wait time
of 0 the delay time is ignored.waitAfterError_
- The delay time of errors after doing the
initialization stuff of all CDI servers. This is declared in
milliseconds if this value is greater then 60 or in seconds if it
is lower or equal to 60.readBackRetries_
- Number of retries if reading the CDI meta value
fails.cdiServers_
- A string array which contains all possible TINE
pre-addresses.cdiDevice_
- CDI device singleton.initAllDevices_
- Checks if all device elements should be initialized
(true) or not (false). Is this boolean value is
false
then only the device names and numbers are initialize. When
it is true
it will initialize all device elements by getting the device
names, device numbers, units, precision, minimum and max values (range),
the addresses (crate and sub-address), and the description.version_
- All version instances.14-September-2016 18:23 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft