diff options
| author | John Mazzitelli <mazz@redhat.com> | 2009-10-02 12:50:19 -0400 |
|---|---|---|
| committer | John Mazzitelli <mazz@redhat.com> | 2009-10-02 12:50:19 -0400 |
| commit | 01a829341049dcfc655ffa7e6d5c67a841cdca4d (patch) | |
| tree | 7d1ecfbe1e9eb7a908b9f4bce9f2c4709969105e /src | |
| parent | 984319b0c130692acf70e8c0b02ece8540648aa0 (diff) | |
| download | puppet-plugin-01a829341049dcfc655ffa7e6d5c67a841cdca4d.tar.gz puppet-plugin-01a829341049dcfc655ffa7e6d5c67a841cdca4d.tar.xz puppet-plugin-01a829341049dcfc655ffa7e6d5c67a841cdca4d.zip | |
test cleanup of CRLF->LF using git core.autocrlf=input
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/java/org/rhq/plugins/puppet/PuppetComponent.java | 4 | ||||
| -rw-r--r-- | src/main/java/org/rhq/plugins/puppet/PuppetDiscovery.java | 90 |
2 files changed, 47 insertions, 47 deletions
diff --git a/src/main/java/org/rhq/plugins/puppet/PuppetComponent.java b/src/main/java/org/rhq/plugins/puppet/PuppetComponent.java index 71f1bb8..5dcd657 100644 --- a/src/main/java/org/rhq/plugins/puppet/PuppetComponent.java +++ b/src/main/java/org/rhq/plugins/puppet/PuppetComponent.java @@ -31,7 +31,7 @@ public class PuppetComponent implements ResourceComponent /** * Return availability of this resource - * @see org.rhq.core.pluginapi.inventory.ResourceComponent#getAvailability() + * @see ResourceComponent#getAvailability() */ public AvailabilityType getAvailability() { // TODO supply real implementation @@ -109,4 +109,4 @@ public class PuppetComponent implements ResourceComponent // TODO supply code to delete a child resource } -}
\ No newline at end of file +} diff --git a/src/main/java/org/rhq/plugins/puppet/PuppetDiscovery.java b/src/main/java/org/rhq/plugins/puppet/PuppetDiscovery.java index 064987b..4a10f66 100644 --- a/src/main/java/org/rhq/plugins/puppet/PuppetDiscovery.java +++ b/src/main/java/org/rhq/plugins/puppet/PuppetDiscovery.java @@ -1,46 +1,46 @@ -package org.rhq.plugins.puppet;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import org.rhq.core.pluginapi.inventory.DiscoveredResourceDetails;
-import org.rhq.core.pluginapi.inventory.ResourceDiscoveryComponent;
-import org.rhq.core.pluginapi.inventory.ResourceDiscoveryContext;
-
-
-/**
- * Discovery class
- */
-public class PuppetDiscovery implements ResourceDiscoveryComponent {
-
-
- private final Log log = LogFactory.getLog(this.getClass());
-
-
- /**
- * Run the discovery
- */
- public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext discoveryContext) throws Exception {
-
- Set<DiscoveredResourceDetails> discoveredResources = new HashSet<DiscoveredResourceDetails>();
-
- /**
- * TODO : do your discovery here
- * A discovered resource must have a unique key, that must
- * stay the same when the resource is discovered the next
- * time
- */
- DiscoveredResourceDetails detail = null; // new DiscoveredResourceDetails( );
-
-
- // Add to return values
- discoveredResources.add(detail);
- log.info("Discovered new ... TODO "); // TODO change
-
- return discoveredResources;
-
- }
+package org.rhq.plugins.puppet; + +import java.util.HashSet; +import java.util.Set; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +import org.rhq.core.pluginapi.inventory.DiscoveredResourceDetails; +import org.rhq.core.pluginapi.inventory.ResourceDiscoveryComponent; +import org.rhq.core.pluginapi.inventory.ResourceDiscoveryContext; + + +/** + * Discovery class + */ +public class PuppetDiscovery implements ResourceDiscoveryComponent { + + + private final Log log = LogFactory.getLog(this.getClass()); + + + /** + * Run the discovery + */ + public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext discoveryContext) throws Exception { + + Set<DiscoveredResourceDetails> discoveredResources = new HashSet<DiscoveredResourceDetails>(); + + /** + * TODO: do your discovery here + * A discovered resource must have a unique key, that must + * stay the same when the resource is discovered the next + * time + */ + DiscoveredResourceDetails detail = null; // new DiscoveredResourceDetails( ); + + + // Add to return values + discoveredResources.add(detail); + log.info("Discovered new ... TODO "); // TODO change + + return discoveredResources; + + } }
\ No newline at end of file |
