org.rhq.core.domain.resource.composite
Class ResourceFacets

java.lang.Object
  extended by org.rhq.core.domain.resource.composite.ResourceFacets
All Implemented Interfaces:
Serializable

public class ResourceFacets
extends Object
implements Serializable

The set of facets a Resource supports - used to determine which quicknav icons and tabs to display in the UI.

See Also:
Serialized Form

Field Summary
static ResourceFacets ALL
           
static ResourceFacets NONE
           
 
Constructor Summary
ResourceFacets(int resourceTypeId, boolean measurement, boolean event, boolean pluginConfiguration, boolean configuration, boolean operation, boolean content, boolean callTime)
           
ResourceFacets(int resourceTypeId, Number measurement, Number event, Number pluginConfiguration, Number configuration, Number operation, Number content, Number callTime)
           
 
Method Summary
 int getResourceTypeId()
           
 boolean isCallTime()
          Does this resource expose any call-time metrics?
 boolean isConfiguration()
          Does this resource expose its configuration?
 boolean isContent()
          Does this resource expose any content?
 boolean isEvent()
          Does this resource have any event definitions?
 boolean isMeasurement()
          Does this resource expose any metrics?
 boolean isOperation()
          Does this resource expose any operations?
 boolean isPluginConfiguration()
          Does this resource have a plugin configuration?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static ResourceFacets NONE

ALL

public static ResourceFacets ALL
Constructor Detail

ResourceFacets

public ResourceFacets(int resourceTypeId,
                      boolean measurement,
                      boolean event,
                      boolean pluginConfiguration,
                      boolean configuration,
                      boolean operation,
                      boolean content,
                      boolean callTime)

ResourceFacets

public ResourceFacets(int resourceTypeId,
                      Number measurement,
                      Number event,
                      Number pluginConfiguration,
                      Number configuration,
                      Number operation,
                      Number content,
                      Number callTime)
Method Detail

getResourceTypeId

public int getResourceTypeId()

isMeasurement

public boolean isMeasurement()
Does this resource expose any metrics? (currently not used for anything in the GUI, since the Monitor and Alert tabs are always displayed).

Returns:
true if the resource exposes any metrics, false otherwise

isEvent

public boolean isEvent()
Does this resource have any event definitions?

Returns:
true if the resource has any event definitions

isPluginConfiguration

public boolean isPluginConfiguration()
Does this resource have a plugin configuration? If so, the Inventory>Connection subtab will be displayed in the GUI.

Returns:
true if the resource has a plugin configuration, false otherwise

isConfiguration

public boolean isConfiguration()
Does this resource expose its configuration? If so, the Configure tab will be displayed in the GUI.

Returns:
true if the resource exposes its configuration, false otherwise

isOperation

public boolean isOperation()
Does this resource expose any operations? If so, the Operations tab will be displayed in the GUI.

Returns:
true if the resource exposes its operations, false otherwise

isContent

public boolean isContent()
Does this resource expose any content? If so, the Content tab will be displayed in the GUI.

Returns:
true if the resource exposes its content, false otherwise

isCallTime

public boolean isCallTime()
Does this resource expose any call-time metrics? If so, the Call Time sub-tab will be displayed in the GUI.

Returns:
true if the resource exposes any call-time metrics, false otherwise


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.