Inheritance diagram for de::gsi::bel::valueserver::ValueServerImpl:
Public Member Functions | |
synchronized void | setOnline (boolean enableFlag) |
synchronized boolean | getOnline () |
XferServer | getXferServer () |
Override void | exitHandler (Xfer xfer) |
Override void | handleMessage (Object obj, Xfer xfer) |
Queue_t | findQueue (String filePath) |
Folder_t | findFolder (String filePath) |
Mount_t | findMount (String filePath) |
Folder_t | getRoot () |
File_t | getRootFile () |
File_t | newFile (File_t parentFile, String fileName, String description, int fileMode, Object value, ValueSetListener listener) throws ValueException |
void | setListener (File_t file, ValueSetListener listener) |
File_t | newFolder (File_t parentFile, String folderName, String description, int fileMode, String mive, int major, int minor, ValueSetListener listener) throws ValueException |
File_t | newEventQueue (File_t parentFile, String queueName, String description, int fileMode, String mive, int major, int minor, ValueSetListener listener) throws ValueException |
void | queuePush (File_t queueFile, File_t file) throws ValueException |
File_t | newMount (File_t parentFile, String mountName, String description, int fileMode, String service) throws ValueException |
File_t | newMount (File_t parentFile, String mountName, String description, int fileMode, String host, int port) throws ValueException |
synchronized void | addFile (File_t parentFile, File_t file) throws ValueException |
synchronized void | addFile (String filePath, File_t file) throws ValueException |
synchronized void | rmFile (File_t parentFile, String fileName) throws ValueException |
synchronized void | rmFile (String filePath) throws ValueException |
void | setFileValue (File_t file, Object value) throws ValueException |
void | setFileValue (String filePath, Object value) throws ValueException |
Protected Member Functions | |
ValueServerImpl (int port, String mive, String description, int major, int minor) throws ValueException | |
ValueServerImpl (XferServer xs, String mive, String description, int major, int minor) throws ValueException | |
ValueTree | getValueTree () |
de::gsi::bel::valueserver::ValueServerImpl::ValueServerImpl | ( | int | port, | |
String | mive, | |||
String | description, | |||
int | major, | |||
int | minor | |||
) | throws ValueException [inline, protected] |
Creates a UV root node and listens on a TCP/IP port for UV client connection requests.
port | The port the server is listening to | |
mive | The UV Multi-purpose Internet Value Extension type of this server | |
description | A short description of this servers service | |
major | The major version number | |
minor | The minor version number |
ValueException |
de::gsi::bel::valueserver::ValueServerImpl::ValueServerImpl | ( | XferServer | xs, | |
String | mive, | |||
String | description, | |||
int | major, | |||
int | minor | |||
) | throws ValueException [inline, protected] |
Creates a UV root node and uses a given Xferserver for UV client connection requests.
xs | Xferserver object which will be used for UV-client connections | |
mive | The UV Multi-purpose Internet Value Extension type of this server | |
description | A short description of this servers service | |
major | The major version number | |
minor | The minor version number |
ValueException |
synchronized void de::gsi::bel::valueserver::ValueServerImpl::addFile | ( | String | filePath, | |
File_t | file | |||
) | throws ValueException [inline, virtual] |
Add a file to a parent (must be folder node), a structure change notification will be sent to all subscribers of the parent node
filePath | The path of the parent node the file is added | |
file | The file to add to the parent |
ValueException |
Implements de::gsi::bel::valueserver::ValueServer.
synchronized void de::gsi::bel::valueserver::ValueServerImpl::addFile | ( | File_t | parentFile, | |
File_t | file | |||
) | throws ValueException [inline, virtual] |
Add a file to a parent file (must be folder node), a structure change notification will be sent to all subscribers of the parent node
parentFile | The parent node the file is added | |
file | The file to add to the parent |
ValueException |
Implements de::gsi::bel::valueserver::ValueServer.
Folder_t de::gsi::bel::valueserver::ValueServerImpl::findFolder | ( | String | filePath | ) | [inline, virtual] |
Find a Folder object by its absolute path
filePath | Path of the folder |
Implements de::gsi::bel::valueserver::ValueServer.
Mount_t de::gsi::bel::valueserver::ValueServerImpl::findMount | ( | String | filePath | ) | [inline, virtual] |
Find a Mount object by its absolute path
filePath | Path of the mount object |
Implements de::gsi::bel::valueserver::ValueServer.
Queue_t de::gsi::bel::valueserver::ValueServerImpl::findQueue | ( | String | filePath | ) | [inline, virtual] |
Find a Queue file by its absolute path
filePath | The path of the queue |
Implements de::gsi::bel::valueserver::ValueServer.
synchronized boolean de::gsi::bel::valueserver::ValueServerImpl::getOnline | ( | ) | [inline, virtual] |
Returns Online status of this server
Implements de::gsi::bel::valueserver::ValueServer.
Folder_t de::gsi::bel::valueserver::ValueServerImpl::getRoot | ( | ) | [inline, virtual] |
Get the root folder of value server
Implements de::gsi::bel::valueserver::ValueServer.
File_t de::gsi::bel::valueserver::ValueServerImpl::getRootFile | ( | ) | [inline, virtual] |
Get the root file of the value server
Implements de::gsi::bel::valueserver::ValueServer.
XferServer de::gsi::bel::valueserver::ValueServerImpl::getXferServer | ( | ) | [inline, virtual] |
Retrieves the Xferserver object of the underlying TCP/IP listener
Implements de::gsi::bel::valueserver::ValueServer.
File_t de::gsi::bel::valueserver::ValueServerImpl::newEventQueue | ( | File_t | parentFile, | |
String | queueName, | |||
String | description, | |||
int | fileMode, | |||
String | mive, | |||
int | major, | |||
int | minor, | |||
ValueSetListener | listener | |||
) | throws ValueException [inline, virtual] |
Create a new event-queue node
parentFile | Parent file node of the new event-queue node | |
queueName | Name of the event-queue node | |
description | Description of the new event-queue file node | |
fileMode | Mode of the new event-queue node | |
mive | The UV Multi-purpose Internet Value Extension type of this event-queue | |
major | The major version number | |
minor | The minor version number | |
listener | The listener for this new event-queue node |
ValueException |
Implements de::gsi::bel::valueserver::ValueServer.
File_t de::gsi::bel::valueserver::ValueServerImpl::newFile | ( | File_t | parentFile, | |
String | fileName, | |||
String | description, | |||
int | fileMode, | |||
Object | value, | |||
ValueSetListener | listener | |||
) | throws ValueException [inline, virtual] |
Create a new file node in the value tree. To create folder, event-queue or mount node please use the corresponding creation methods.
parentFile | Parent file node of the new file node | |
fileName | Name of the new file node | |
description | Description of the new file node | |
fileMode | Mode of the new file node | |
value | Value of the new file node. The values type may be primitive value or arrays of primitive value (see xvalue.jar) | |
listener | The listeners object valueOnSet method is called when the value is changed externally by UV-clients |
ValueException |
Implements de::gsi::bel::valueserver::ValueServer.
File_t de::gsi::bel::valueserver::ValueServerImpl::newFolder | ( | File_t | parentFile, | |
String | folderName, | |||
String | description, | |||
int | fileMode, | |||
String | mive, | |||
int | major, | |||
int | minor, | |||
ValueSetListener | listener | |||
) | throws ValueException [inline, virtual] |
Create a folder node.
parentFile | Parent file node of the new folder node | |
folderName | The name of the new folder node | |
description | Description of the new folder node | |
fileMode | Mode of the new folder node | |
mive | The UV Multi-purpose Internet Value Extension type of this folder | |
major | The major version number | |
minor | The minor version number | |
listener | The listener for this new folder node |
ValueException |
Implements de::gsi::bel::valueserver::ValueServer.
File_t de::gsi::bel::valueserver::ValueServerImpl::newMount | ( | File_t | parentFile, | |
String | mountName, | |||
String | description, | |||
int | fileMode, | |||
String | host, | |||
int | port | |||
) | throws ValueException [inline, virtual] |
Create a new node with mount info of another UV server given as IP adress and port.
parentFile | Parent file of the new mount node | |
mountName | Name of the mount node. | |
description | Description of the mount node | |
fileMode | Mode of the mount node | |
host | TCP/IP host info of the UV-server as IP-adress (or host name) | |
port | TCP/IP port info of UV-server |
ValueException |
Implements de::gsi::bel::valueserver::ValueServer.
File_t de::gsi::bel::valueserver::ValueServerImpl::newMount | ( | File_t | parentFile, | |
String | mountName, | |||
String | description, | |||
int | fileMode, | |||
String | service | |||
) | throws ValueException [inline, virtual] |
Create a new node with mount info of another UV server given as name.
parentFile | Parent file of the new mount node | |
mountName | Name of the mount node. | |
description | Description of the mount node | |
fileMode | Mode of the mount node | |
service | The UV server as name. |
ValueException |
Implements de::gsi::bel::valueserver::ValueServer.
void de::gsi::bel::valueserver::ValueServerImpl::queuePush | ( | File_t | queueFile, | |
File_t | file | |||
) | throws ValueException [inline, virtual] |
Push an event (i.e. a file which may be a subtree) to an event-queue, the event (file-structure) will be sent to all subscribers of the event-queue
queueFile | The event-queue node to push an event to. | |
file | The event to push. |
ValueException |
Implements de::gsi::bel::valueserver::ValueServer.
synchronized void de::gsi::bel::valueserver::ValueServerImpl::rmFile | ( | String | filePath | ) | throws ValueException [inline, virtual] |
Remove a file node from the tree
filePath | The absolute path of the node to be removed |
ValueException |
Implements de::gsi::bel::valueserver::ValueServer.
synchronized void de::gsi::bel::valueserver::ValueServerImpl::rmFile | ( | File_t | parentFile, | |
String | fileName | |||
) | throws ValueException [inline, virtual] |
Remove a file from a parent (must be folder node), a structure change notification will be sent to all subscribers of the parent node
parentFile | The parent node of the file which should be removed | |
fileName | The name of the file which should be removed from the parent |
ValueException |
Implements de::gsi::bel::valueserver::ValueServer.
void de::gsi::bel::valueserver::ValueServerImpl::setFileValue | ( | String | filePath, | |
Object | value | |||
) | throws ValueException [inline, virtual] |
Set a new value of a file node given by name, value changes will be sent to all subscribers of this node
filePath | Absolute path to file node | |
value | The value to be set |
ValueException |
Implements de::gsi::bel::valueserver::ValueServer.
void de::gsi::bel::valueserver::ValueServerImpl::setFileValue | ( | File_t | file, | |
Object | value | |||
) | throws ValueException [inline, virtual] |
Set a new value of a file node, value changes will be sent to all subscribers of this node
file | Set a new value on file | |
value | The value to be set |
ValueException |
Implements de::gsi::bel::valueserver::ValueServer.
void de::gsi::bel::valueserver::ValueServerImpl::setListener | ( | File_t | file, | |
ValueSetListener | listener | |||
) | [inline, virtual] |
Set a value listener for a file, only one listener is possible. The listener method valueOnSet is called when the file's value is set by a client request
file | Set listener to file | |
listener | The listener of a file's value |
Implements de::gsi::bel::valueserver::ValueServer.
synchronized void de::gsi::bel::valueserver::ValueServerImpl::setOnline | ( | boolean | enableFlag | ) | [inline, virtual] |
Enable/Disable processing of Client request: if disabled client requests are queued but not processed. This may cause losing requests.
enableFlag | true: enable, false: disable processing of requests |
Implements de::gsi::bel::valueserver::ValueServer.