Guest User

Untitled

a guest
Oct 19th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. (ns rhq.plugin
  2. (:require [rhq.config :as config])
  3. (:import [org.rhq.core.pluginapi.inventory
  4. ResourceDiscoveryComponent ResourceDiscoveryContext ClassLoaderFacet
  5. DiscoveredResourceDetails ResourceComponent ResourceContext]
  6. [org.rhq.core.domain.measurement AvailabilityType])
  7. (:gen-class
  8. :name rhq.plugin.PluginComponent
  9. :implements [org.rhq.core.pluginapi.inventory.ResourceDiscoveryComponent
  10. org.rhq.core.pluginapi.inventory.ResourceComponent]))
  11.  
  12. (defn ^java.util.Set -discoverResources [this ^ResourceDiscveryContext context]
  13. (.println System/out "DISCOVER"))
  14.  
  15. (defn ^AvailabilityType -getAvailability [this] nil)
  16.  
  17. (defn -start [this ^ResourceContext context]
  18. (.println System/out "STARTING PLUGIN")
  19. (print "STARTING PLUGIN"))
  20.  
  21. (defn -stop [this] nil)
Add Comment
Please, Sign In to add comment