org.rhq.plugins.cron
Class CronTabComponent

java.lang.Object
  extended by org.rhq.plugins.augeas.AugeasConfigurationComponent<CronComponent>
      extended by org.rhq.plugins.cron.CronTabComponent
All Implemented Interfaces:
AvailabilityFacet, ConfigurationFacet, CreateChildResourceFacet, DeleteResourceFacet, ResourceComponent<CronComponent>

public class CronTabComponent
extends AugeasConfigurationComponent<CronComponent>

A component representing a single crontab file.

Author:
Lukas Krejci

Field Summary
static String ENTRIES_NODE
           
static String ENTRIES_PROP
           
static String ENVIRONMENT_SETTINGS_NODE
           
static String ENVIRONMENT_SETTINGS_PROP
           
static String NAME_PROP
           
static String VALUE_PROP
           
static String VAR_PROP
           
 
Fields inherited from class org.rhq.plugins.augeas.AugeasConfigurationComponent
AUGEAS_MODULE_NAME_PROP, AUGEAS_ROOT_PATH_PROP, DEFAULT_AUGEAS_ROOT_PATH, EXCLUDE_GLOBS_PROP, INCLUDE_GLOBS_PROP, RESOURCE_CONFIGURATION_ROOT_NODE_PROP
 
Constructor Summary
CronTabComponent()
           
 
Method Summary
protected  org.rhq.core.domain.configuration.Property createPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList, net.augeas.Augeas augeas, AugeasNode node)
           
protected  String getAugeasPathRelativeToParent(org.rhq.core.domain.configuration.definition.PropertyDefinition propDef, AugeasNode parentNode, net.augeas.Augeas augeas)
           
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
           
protected  AugeasNode getExistingChildNodeForListMemberPropertyMap(AugeasNode parentNode, org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList, org.rhq.core.domain.configuration.PropertyMap propMap)
           
protected  String getResourceConfigurationRootPath()
           
protected  void setNodeFromPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList, org.rhq.core.domain.configuration.PropertyList propList, net.augeas.Augeas augeas, AugeasNode listNode)
           
 void start(ResourceContext<CronComponent> context)
           
 
Methods inherited from class org.rhq.plugins.augeas.AugeasConfigurationComponent
close, createAugeas, createPropertyMap, createPropertySimple, createResource, deleteResource, finalize, getAugeas, getAugeasLoadPath, getAugeasRootPath, getChildResourceConfigurationRootLabel, getChildResourceConfigurationRootPath, getConfigurationFiles, getNewListMemberNode, getNodeInsertionPoint, getResourceContext, getResourceDescription, initAugeas, isAugeasAvailable, loadProperty, loadResourceConfiguration, populatePropertyMap, setNode, setNodeFromPropertyMap, setNodeFromPropertySimple, setupAugeasModules, stop, summarizeAugeasError, toNodeValue, toPropertyValue, updateResourceConfiguration, updateStructuredConfiguration, validateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENVIRONMENT_SETTINGS_PROP

public static final String ENVIRONMENT_SETTINGS_PROP
See Also:
Constant Field Values

ENVIRONMENT_SETTINGS_NODE

public static final String ENVIRONMENT_SETTINGS_NODE
See Also:
Constant Field Values

VAR_PROP

public static final String VAR_PROP
See Also:
Constant Field Values

ENTRIES_PROP

public static final String ENTRIES_PROP
See Also:
Constant Field Values

ENTRIES_NODE

public static final String ENTRIES_NODE
See Also:
Constant Field Values

NAME_PROP

public static final String NAME_PROP
See Also:
Constant Field Values

VALUE_PROP

public static final String VALUE_PROP
See Also:
Constant Field Values
Constructor Detail

CronTabComponent

public CronTabComponent()
Method Detail

start

public void start(ResourceContext<CronComponent> context)
           throws InvalidPluginConfigurationException,
                  Exception
Specified by:
start in interface ResourceComponent<CronComponent>
Overrides:
start in class AugeasConfigurationComponent<CronComponent>
Throws:
InvalidPluginConfigurationException
Exception

getAvailability

public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
Specified by:
getAvailability in interface AvailabilityFacet
Overrides:
getAvailability in class AugeasConfigurationComponent<CronComponent>

getResourceConfigurationRootPath

protected String getResourceConfigurationRootPath()
Overrides:
getResourceConfigurationRootPath in class AugeasConfigurationComponent<CronComponent>

getAugeasPathRelativeToParent

protected String getAugeasPathRelativeToParent(org.rhq.core.domain.configuration.definition.PropertyDefinition propDef,
                                               AugeasNode parentNode,
                                               net.augeas.Augeas augeas)
Overrides:
getAugeasPathRelativeToParent in class AugeasConfigurationComponent<CronComponent>

createPropertyList

protected org.rhq.core.domain.configuration.Property createPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList,
                                                                        net.augeas.Augeas augeas,
                                                                        AugeasNode node)
Overrides:
createPropertyList in class AugeasConfigurationComponent<CronComponent>

setNodeFromPropertyList

protected void setNodeFromPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList,
                                       org.rhq.core.domain.configuration.PropertyList propList,
                                       net.augeas.Augeas augeas,
                                       AugeasNode listNode)
Overrides:
setNodeFromPropertyList in class AugeasConfigurationComponent<CronComponent>

getExistingChildNodeForListMemberPropertyMap

protected AugeasNode getExistingChildNodeForListMemberPropertyMap(AugeasNode parentNode,
                                                                  org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList,
                                                                  org.rhq.core.domain.configuration.PropertyMap propMap)
Overrides:
getExistingChildNodeForListMemberPropertyMap in class AugeasConfigurationComponent<CronComponent>


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.