org.rhq.plugins.samba
Class SambaServerComponent

java.lang.Object
  extended by org.rhq.plugins.augeas.AugeasConfigurationComponent
      extended by org.rhq.plugins.samba.SambaServerComponent
All Implemented Interfaces:
AvailabilityFacet, ConfigurationFacet, ConfigurationFacetSupport, CreateChildResourceFacet, DeleteResourceFacet, ResourceComponent, MeasurementFacet, OperationFacet

public class SambaServerComponent
extends AugeasConfigurationComponent
implements OperationFacet, MeasurementFacet

TODO


Field Summary
 
Fields inherited from class org.rhq.plugins.augeas.AugeasConfigurationComponent
AUGEAS_LOAD_PATH, 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
SambaServerComponent()
           
 
Method Summary
 CreateResourceReport createResource(CreateResourceReport reportIn)
           
 AvailabilityType getAvailability()
           
protected  String getChildResourceConfigurationRootLabel(ResourceType resourceType, Configuration resourceConfig)
           
protected  String getChildResourceConfigurationRootPath(ResourceType resourceType, Configuration resourceConfig)
           
 void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics)
           
 OperationResult invokeOperation(String name, Configuration params)
           
 Configuration loadResourceConfiguration()
           
protected  void setNodeFromPropertySimple(net.augeas.Augeas augeas, AugeasNode node, PropertyDefinitionSimple propDefSimple, PropertySimple propSimple)
           
 void start(ResourceContext resourceContext)
           
 void stop()
           
protected  Object toPropertyValue(PropertyDefinitionSimple propDefSimple, net.augeas.Augeas augeas, AugeasNode node)
           
 void updateResourceConfiguration(ConfigurationUpdateReport report)
           
 
Methods inherited from class org.rhq.plugins.augeas.AugeasConfigurationComponent
createAugeas, createPropertyList, createPropertyMap, createPropertySimple, deleteResource, getAugeas, getAugeasPathRelativeToParent, getAugeasRootPath, getConfigurationFiles, getExistingChildNodeForListMemberPropertyMap, getNewListMemberNode, getNodeInsertionPoint, getResourceConfigurationRootPath, getResourceContext, getResourceDescription, initAugeas, isAugeasAvailable, loadProperty, populatePropertyMap, setNode, setNodeFromPropertyList, setNodeFromPropertyMap, setupAugeasModules, summarizeAugeasError, toNodeValue, updateStructuredConfiguration, validateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SambaServerComponent

public SambaServerComponent()
Method Detail

start

public void start(ResourceContext resourceContext)
           throws Exception
Specified by:
start in interface ResourceComponent
Overrides:
start in class AugeasConfigurationComponent
Throws:
Exception

stop

public void stop()
Specified by:
stop in interface ResourceComponent
Overrides:
stop in class AugeasConfigurationComponent

getAvailability

public AvailabilityType getAvailability()
Specified by:
getAvailability in interface AvailabilityFacet
Overrides:
getAvailability in class AugeasConfigurationComponent

loadResourceConfiguration

public Configuration loadResourceConfiguration()
                                        throws Exception
Specified by:
loadResourceConfiguration in interface ConfigurationFacet
Overrides:
loadResourceConfiguration in class AugeasConfigurationComponent
Throws:
Exception

updateResourceConfiguration

public void updateResourceConfiguration(ConfigurationUpdateReport report)
Specified by:
updateResourceConfiguration in interface ConfigurationFacet
Overrides:
updateResourceConfiguration in class AugeasConfigurationComponent

createResource

public CreateResourceReport createResource(CreateResourceReport reportIn)
Specified by:
createResource in interface CreateChildResourceFacet
Overrides:
createResource in class AugeasConfigurationComponent

getChildResourceConfigurationRootPath

protected String getChildResourceConfigurationRootPath(ResourceType resourceType,
                                                       Configuration resourceConfig)
Overrides:
getChildResourceConfigurationRootPath in class AugeasConfigurationComponent

getChildResourceConfigurationRootLabel

protected String getChildResourceConfigurationRootLabel(ResourceType resourceType,
                                                        Configuration resourceConfig)
Overrides:
getChildResourceConfigurationRootLabel in class AugeasConfigurationComponent

setNodeFromPropertySimple

protected void setNodeFromPropertySimple(net.augeas.Augeas augeas,
                                         AugeasNode node,
                                         PropertyDefinitionSimple propDefSimple,
                                         PropertySimple propSimple)
Overrides:
setNodeFromPropertySimple in class AugeasConfigurationComponent

toPropertyValue

protected Object toPropertyValue(PropertyDefinitionSimple propDefSimple,
                                 net.augeas.Augeas augeas,
                                 AugeasNode node)
Overrides:
toPropertyValue in class AugeasConfigurationComponent

getValues

public void getValues(MeasurementReport report,
                      Set<MeasurementScheduleRequest> metrics)
               throws Exception
Specified by:
getValues in interface MeasurementFacet
Throws:
Exception

invokeOperation

public OperationResult invokeOperation(String name,
                                       Configuration params)
                                throws Exception
Specified by:
invokeOperation in interface OperationFacet
Throws:
Exception


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