Inheritance diagram for de::gsi::bel::names::NamesModel:
Public Member Functions | |
abstract String | toString () |
abstract void | addNamesListener (NamesListener l) |
abstract void | removeNamesListener (NamesListener l) |
abstract void | close () throws IOException |
abstract void | register (String host, int node, String proc, int tcpPort) throws IOException |
abstract Vector< Entry_t > | getServices () |
abstract Entry_t | getServiceByName (String proc) |
The registration information contains port number, tcp/ip address and host name of a specified process.
Changes will be signaled if you supply a NamesListener.
abstract void de::gsi::bel::names::NamesModel::addNamesListener | ( | NamesListener | l | ) | [pure virtual] |
Add a listener to model. The listeners namesChanged method is called when the list of registered processes has changed. The listeners namesClosed is called when the model is closed. The listeners method namesChanged is also called when the model is closed externally and it is called again when the model connection is reestablished.
l | The listener to add. |
Implemented in de::gsi::bel::names::NamesModelImpl.
abstract void de::gsi::bel::names::NamesModel::close | ( | ) | throws IOException [pure virtual] |
Close the Model. Here we close the connection to the registration server.
IOException |
Implemented in de::gsi::bel::names::NamesModelImpl.
abstract Entry_t de::gsi::bel::names::NamesModel::getServiceByName | ( | String | proc | ) | [pure virtual] |
Retrieves information of specified process
proc | Process name |
Implemented in de::gsi::bel::names::NamesModelImpl.
abstract Vector<Entry_t> de::gsi::bel::names::NamesModel::getServices | ( | ) | [pure virtual] |
Retrieves the actual list of registered processed
Implemented in de::gsi::bel::names::NamesModelImpl.
abstract void de::gsi::bel::names::NamesModel::register | ( | String | host, | |
int | node, | |||
String | proc, | |||
int | tcpPort | |||
) | throws IOException [pure virtual] |
Register information of your process to the registration server.
host | The host your process is running on | |
node | A integer node number (optional) | |
proc | Your process name, this is the key of information | |
tcpPort | The port number you want to register to your process |
IOException |
Implemented in de::gsi::bel::names::NamesModelImpl.
abstract void de::gsi::bel::names::NamesModel::removeNamesListener | ( | NamesListener | l | ) | [pure virtual] |
Remove a NamesListener.
l | The listener to remove. |
Implemented in de::gsi::bel::names::NamesModelImpl.
abstract String de::gsi::bel::names::NamesModel::toString | ( | ) | [pure virtual] |
Retrieves comprised information of the model
Implemented in de::gsi::bel::names::NamesModelImpl.