Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (ns rhq.plugin
- (:require [rhq.config :as config])
- (:import [org.rhq.core.pluginapi.inventory
- ResourceDiscoveryComponent ResourceDiscoveryContext ClassLoaderFacet
- DiscoveredResourceDetails ResourceComponent ResourceContext]
- [org.rhq.core.domain.measurement AvailabilityType])
- (:gen-class
- :name rhq.plugin.PluginComponent
- :implements [org.rhq.core.pluginapi.inventory.ResourceDiscoveryComponent
- org.rhq.core.pluginapi.inventory.ResourceComponent]))
- (defn ^java.util.Set -discoverResources [this ^ResourceDiscveryContext context]
- (.println System/out "DISCOVER"))
- (defn ^AvailabilityType -getAvailability [this] nil)
- (defn -start [this ^ResourceContext context]
- (.println System/out "STARTING PLUGIN")
- (print "STARTING PLUGIN"))
- (defn -stop [this] nil)
Add Comment
Please, Sign In to add comment