L - the type of the protocol specific location, typically a subclass of NodeLocationpublic interface Driver<L>
| Modifier and Type | Method and Description |
|---|---|
boolean |
attributeExists(AttributeLocation<L> attributeLocation)
|
Object |
fetchAttribute(AttributeLocation<L> attributeLocation)
Fetches the attribute value specified by the given
attributeLocation from a MonitoredEndpoint and
returns it. |
<N> Map<L,N> |
fetchNodes(L query)
Fetches nodes that match the given
query from a MonitoredEndpoint and returns them as an
immutable Map. |
<N> Map<L,N> fetchNodes(L query) throws ProtocolException
query from a MonitoredEndpoint and returns them as an
immutable Map. In a given entry in the returned map, the key is the location of the protocol specific
node object that is stored in the value of the entry.query - a pattern location to query for native resource nodesMap from locations to native resource nodesProtocolException - on any problems related to the retrievalObject fetchAttribute(AttributeLocation<L> attributeLocation) throws ProtocolException
attributeLocation from a MonitoredEndpoint and
returns it. If AttributeLocation.getLocation() is a path pattern containing wildcards, then this method
MAY return a List of objects that contains the attribute values of matching attributes.attributeLocation - the attribute to retrieveProtocolException - on any problems related to the retrievalboolean attributeExists(AttributeLocation<L> attributeLocation) throws ProtocolException
true if the given attributeLocation exists on a MonitoredEndpoint or
false otherwise. This method should return true for attributes that exist but are unset.attributeLocation - the AttributeLocation to checktrue or falseProtocolException - on any problems related to the retrievalCopyright © 2015 Red Hat, Inc.. All rights reserved.