Public Member Functions

ACS::PingableResource Interface Reference

import "acscommon.idl";

Inheritance diagram for ACS::PingableResource:
Inheritance graph
[legend]

List of all members.

Public Member Functions

boolean ping (in boolean fast, in boolean recursive, in long id)

Detailed Description

This interface may be implemented by any remote object (component, offshoot, other resources...) that you want to monitor in the master component (or of course also possible to monitor it "by hand").

Note that the resource monitoring framework in module 'mastercomp' supports monitoring of ACSComponents for which it checks the 'componentState' attribute. However, this componentState only tells us something about the Alma component itself, but not about any resources it controls or uses. While resource monitoring via 'componentState' does not require specific changes in the component, the check call cannot be intercepted by the component, which means that the value of the returned information is limited.

On the other hand, this 'PingableResource' interface shows up in the component definition, but allows for "deeper" outreach of the status check. Of course your components and resources can use any other method to get their status checked by your master component, but in that case you must implement a custom "ResourceChecker" class; with "PingableResource" you can use the convenience methods provided by ACS.


Member Function Documentation

boolean ACS::PingableResource::ping ( in boolean  fast,
in boolean  recursive,
in long  id 
)
Parameters:
fast If true, skip performing fancier checks, so that the returned result only tells us whether the resources can communicate, but not if they are otherwise healthy. This could be used for performance measurements.
recursive If true, the call should recursively ping other PingableResources managed by this PingableResource.
id The caller may pass a (random) number that can be used by the resources to identify this call and avoid endless recursion if "recursive" is true and if it is not clear whether the resource topology is free of cycles.
Returns:
true means the resource is OK

The documentation for this interface was generated from the following file: