|
|
FeaIo (EventLoop& eventloop)
| FeaIo |
Constructor.
Parameters:
eventloop | the event loop to use. |
~FeaIo ()
| ~FeaIo |
[virtual]
int startup ()
| startup |
Startup the service operation.
Returns: XORP_OK on success, otherwise XORP_ERROR.
int shutdown ()
| shutdown |
Shutdown the service operation.
Returns: XORP_OK on success, otherwise XORP_ERROR.
bool is_running ()
| is_running |
[const]
Test whether the service is running.
Returns: true if the service is still running, otherwise false.
EventLoop& eventloop ()
| eventloop |
Get the event loop this service is added to.
Returns: the event loop this service is added to.
int add_instance_watch (const string& instance_name,
InstanceWatcher* instance_watcher,
string& error_msg)
| add_instance_watch |
[virtual]
Add a watcher for the status of a component instance.
Parameters:
instance_name | the name of the instance to watch. |
instance_watcher | the watcher that tracks the status of the instance. |
error_msg | the error message (if error). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
int delete_instance_watch (const string& instance_name,
InstanceWatcher* instance_watcher,
string& error_msg)
| delete_instance_watch |
[virtual]
Delete a watcher for the status of a component instance.
Parameters:
instance_name | the name of the instance to stop watching. |
instance_watcher | the watcher that tracks the status of the instance. |
error_msg | the error message (if error). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
void instance_birth (const string& instance_name)
| instance_birth |
[virtual]
A component instance has been born.
Parameters:
instance_name | the name of the instance that is born. |
void instance_death (const string& instance_name)
| instance_death |
[virtual]
A component instance has died.
Parameters:
instance_name | the name of the instance that has died. |
int register_instance_event_interest (const string& instance_name,
string& error_msg)
| register_instance_event_interest |
[protected pure virtual]
Register interest in events relating to a particular instance.
Parameters:
instance_name | name of target instance to receive event notifications for. |
error_msg | the error message (if error). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
int deregister_instance_event_interest (const string& instance_name,
string& error_msg)
| deregister_instance_event_interest |
[protected pure virtual]
Deregister interest in events relating to a particular instance.
Parameters:
instance_name | name of target instance to stop event notifications for. |
error_msg | the error message (if error). |
Returns: XORP_OK on success, otherwise XORP_ERROR.