![]() |
Accelerator Independent Data Access / PVAccess 2.0
AIDA-PVA is the latest version of the AIDA framework. Built on top of EPICS 7 it enables client applications to programmatically access and manage any device or database on the SLAC Network using simple channel names.
|
Reference Server implementation. More...
Go to the source code of this file.
Functions | |
int | aidaRequestBoolean (JNIEnv *env, const char *uri, Arguments arguments) |
Get a boolean. More... | |
Array | aidaRequestBooleanArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a boolean array. More... | |
char | aidaRequestByte (JNIEnv *env, const char *uri, Arguments arguments) |
Get a byte. More... | |
Array | aidaRequestByteArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a byte array. More... | |
double | aidaRequestDouble (JNIEnv *env, const char *uri, Arguments arguments) |
Get a double. More... | |
Array | aidaRequestDoubleArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a double array. More... | |
float | aidaRequestFloat (JNIEnv *env, const char *uri, Arguments arguments) |
Get a float. More... | |
Array | aidaRequestFloatArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a float array. More... | |
int | aidaRequestInteger (JNIEnv *env, const char *uri, Arguments arguments) |
Get a integer. More... | |
Array | aidaRequestIntegerArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a integer array. More... | |
long | aidaRequestLong (JNIEnv *env, const char *uri, Arguments arguments) |
Get a long. More... | |
Array | aidaRequestLongArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a long array. More... | |
short | aidaRequestShort (JNIEnv *env, const char *uri, Arguments arguments) |
Get a short. More... | |
Array | aidaRequestShortArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a short array. More... | |
char * | aidaRequestString (JNIEnv *env, const char *uri, Arguments arguments) |
Get a string. More... | |
StringArray | aidaRequestStringArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a string array. More... | |
Table | aidaRequestTable (JNIEnv *env, const char *uri, Arguments arguments) |
Get a table of data. More... | |
void | aidaServiceInit (JNIEnv *env) |
Initialise the service. More... | |
void | aidaSetValue (JNIEnv *env, const char *uri, Arguments arguments, Value value) |
Set a value. More... | |
Table | aidaSetValueWithResponse (JNIEnv *env, const char *uri, Arguments arguments, Value value) |
Set a value and return a table as a response. More... | |
Reference Server implementation.
MEMBER=SLCLIBS:AIDA_PVALIB ATTRIBUTES=JNI,LIBR_NOGLOBAL
Definition in file AIDASLCREF_SERVER.c.
int aidaRequestBoolean | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a boolean.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 29 of file AIDASLCREF_SERVER.c.
References aidaThrowNonOsException(), ascanf(), endsWith(), and UNSUPPORTED_CHANNEL_EXCEPTION.
Get a boolean array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 249 of file AIDASLCREF_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), Array::items, TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
char aidaRequestByte | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a byte.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 56 of file AIDASLCREF_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ascanf(), endsWith(), TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Get a byte array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 282 of file AIDASLCREF_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), Array::items, TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
double aidaRequestDouble | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a double.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 186 of file AIDASLCREF_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ascanf(), endsWith(), TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Get a double array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 462 of file AIDASLCREF_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), FREE_MEMORY, FREE_TRACKED_MEMORY, Array::items, TO_SLC_NAME, TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
float aidaRequestFloat | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a float.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 160 of file AIDASLCREF_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ascanf(), endsWith(), TO_SLC_NAME, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
Get a float array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 426 of file AIDASLCREF_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_COPY_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), FREE_MEMORY, FREE_TRACKED_MEMORY, Array::items, TO_SLC_NAME, TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
int aidaRequestInteger | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a integer.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 108 of file AIDASLCREF_SERVER.c.
References aidaThrowNonOsException(), ascanf(), endsWith(), and UNSUPPORTED_CHANNEL_EXCEPTION.
Get a integer array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 354 of file AIDASLCREF_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_COPY_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), FREE_MEMORY, FREE_TRACKED_MEMORY, Array::items, TO_SLC_NAME, TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
long aidaRequestLong | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a long.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 134 of file AIDASLCREF_SERVER.c.
References aidaThrowNonOsException(), ascanf(), endsWith(), and UNSUPPORTED_CHANNEL_EXCEPTION.
Get a long array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 390 of file AIDASLCREF_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), FREE_MEMORY, FREE_TRACKED_MEMORY, Array::items, TO_SLC_NAME, TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
short aidaRequestShort | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a short.
uri | the uri |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
arguments | the arguments |
Definition at line 82 of file AIDASLCREF_SERVER.c.
References aidaThrowNonOsException(), ascanf(), endsWith(), and UNSUPPORTED_CHANNEL_EXCEPTION.
Get a short array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 318 of file AIDASLCREF_SERVER.c.
References aidaThrow(), aidaThrowNonOsException(), ALLOCATE_COPY_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), Array::count, endsWith(), FREE_MEMORY, FREE_TRACKED_MEMORY, Array::items, TO_SLC_NAME, TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNABLE_TO_GET_DATA_EXCEPTION, and UNSUPPORTED_CHANNEL_EXCEPTION.
char * aidaRequestString | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a string.
Allocate memory for string and it will be freed for you by framework
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 212 of file AIDASLCREF_SERVER.c.
References aidaThrowNonOsException(), ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ascanf(), endsWith(), and UNSUPPORTED_CHANNEL_EXCEPTION.
StringArray aidaRequestStringArray | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a string array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 498 of file AIDASLCREF_SERVER.c.
References aidaRequestString(), aidaThrowNonOsException(), ALLOCATE_AND_TRACK_FIXED_LENGTH_STRING_AND_ON_ERROR_RETURN_, ALLOCATE_AND_TRACK_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_MEMORY_AND_ON_ERROR_RETURN_, ALLOCATE_STRING_AND_ON_ERROR_RETURN_, ascanf(), StringArray::count, endsWith(), FREE_TRACKED_MEMORY, StringArray::items, ON_EXCEPTION_RETURN_, secondaryFromUri(), startsWith(), TRACK_ALLOCATED_MEMORY, TRACK_MEMORY, UNSUPPORTED_CHANNEL_EXCEPTION, and UNSUPPORTED_STRING_ARRAY_REQUEST.
Get a table of data.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 531 of file AIDASLCREF_SERVER.c.
References aidaThrowNonOsException(), ascanf(), endsWith(), ON_EXCEPTION_RETURN_, RETURN_NULL_TABLE, tableAddSingleRowBooleanColumn(), tableAddSingleRowByteColumn(), tableAddSingleRowDoubleColumn(), tableAddSingleRowFloatColumn(), tableAddSingleRowIntegerColumn(), tableAddSingleRowLongColumn(), tableAddSingleRowShortColumn(), tableAddSingleRowStringColumn(), tableCreate(), and UNSUPPORTED_CHANNEL_EXCEPTION.
void aidaServiceInit | ( | JNIEnv * | env | ) |
Initialise the service.
Initialise the aida service.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
ServerInitialisationException | if the service fails to initialise |
Definition at line 16 of file AIDASLCREF_SERVER.c.
Set a value.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
Definition at line 589 of file AIDASLCREF_SERVER.c.
Set a value and return a table as a response.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
Definition at line 602 of file AIDASLCREF_SERVER.c.
References avscanf(), ON_EXCEPTION_RETURN_, tableAddSingleRowBooleanColumn(), and tableCreate().