org.rhq.core.domain.plugin
Class Plugin

java.lang.Object
  extended by org.rhq.core.domain.plugin.AbstractPlugin
      extended by org.rhq.core.domain.plugin.Plugin
All Implemented Interfaces:
Serializable

public class Plugin
extends AbstractPlugin

An agent plugin. This object contains information about the plugin jar itself (e.g. its name and MD5). It may also contain the jar contents (AbstractPlugin.getContent()).

See Also:
Serialized Form

Field Summary
static String PURGE_PLUGINS
           
static long PURGED
           
static String QUERY_FIND_ALL
           
static String QUERY_FIND_ALL_BY_IDS
           
static String QUERY_FIND_ALL_DELETED
           
static String QUERY_FIND_ALL_INSTALLED
           
static String QUERY_FIND_ALL_TO_PURGE
           
static String QUERY_FIND_ANY_BY_NAME
           
static String QUERY_FIND_BY_IDS
           
static String QUERY_FIND_BY_NAME
           
static String QUERY_FIND_BY_RESOURCE_TYPE_AND_CATEGORY
           
static String QUERY_GET_NAMES_BY_ENABLED
           
static String QUERY_GET_STATUS_BY_NAME
           
static String UPDATE_PLUGIN_ENABLED_BY_ID
           
static String UPDATE_PLUGINS_ENABLED_BY_IDS
           
 
Fields inherited from class org.rhq.core.domain.plugin.AbstractPlugin
TABLE_NAME
 
Constructor Summary
Plugin()
           
Plugin(int id, String name, String path, String displayName, boolean enabled, PluginStatusType status, String description, String help, String md5, String version, String ampsVersion, long ctime, long mtime)
           
Plugin(String name, String path)
           
Plugin(String name, String path, String md5)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 void setDeployment(PluginDeploymentType deployment)
           
 String toString()
           
 
Methods inherited from class org.rhq.core.domain.plugin.AbstractPlugin
getAmpsVersion, getContent, getCtime, getDeployment, getDescription, getDisplayName, getHelp, getId, getMd5, getMD5, getMtime, getName, getPath, getStatus, getVersion, isEnabled, setAmpsVersion, setContent, setCtime, setDescription, setDisplayName, setEnabled, setHelp, setId, setMd5, setMD5, setMtime, setName, setPath, setStatus, setVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_GET_STATUS_BY_NAME

public static final String QUERY_GET_STATUS_BY_NAME
See Also:
Constant Field Values

QUERY_GET_NAMES_BY_ENABLED

public static final String QUERY_GET_NAMES_BY_ENABLED
See Also:
Constant Field Values

QUERY_FIND_BY_IDS

public static final String QUERY_FIND_BY_IDS
See Also:
Constant Field Values

QUERY_FIND_ALL_BY_IDS

public static final String QUERY_FIND_ALL_BY_IDS
See Also:
Constant Field Values

QUERY_FIND_BY_NAME

public static final String QUERY_FIND_BY_NAME
See Also:
Constant Field Values

QUERY_FIND_ANY_BY_NAME

public static final String QUERY_FIND_ANY_BY_NAME
See Also:
Constant Field Values

QUERY_FIND_ALL

public static final String QUERY_FIND_ALL
See Also:
Constant Field Values

QUERY_FIND_ALL_INSTALLED

public static final String QUERY_FIND_ALL_INSTALLED
See Also:
Constant Field Values

QUERY_FIND_ALL_DELETED

public static final String QUERY_FIND_ALL_DELETED
See Also:
Constant Field Values

QUERY_FIND_ALL_TO_PURGE

public static final String QUERY_FIND_ALL_TO_PURGE
See Also:
Constant Field Values

UPDATE_PLUGINS_ENABLED_BY_IDS

public static final String UPDATE_PLUGINS_ENABLED_BY_IDS
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_TYPE_AND_CATEGORY

public static final String QUERY_FIND_BY_RESOURCE_TYPE_AND_CATEGORY
See Also:
Constant Field Values

UPDATE_PLUGIN_ENABLED_BY_ID

public static final String UPDATE_PLUGIN_ENABLED_BY_ID
See Also:
Constant Field Values

PURGE_PLUGINS

public static final String PURGE_PLUGINS
See Also:
Constant Field Values

PURGED

public static final long PURGED
See Also:
Constant Field Values
Constructor Detail

Plugin

public Plugin()

Plugin

public Plugin(String name,
              String path)

Plugin

public Plugin(String name,
              String path,
              String md5)

Plugin

public Plugin(int id,
              String name,
              String path,
              String displayName,
              boolean enabled,
              PluginStatusType status,
              String description,
              String help,
              String md5,
              String version,
              String ampsVersion,
              long ctime,
              long mtime)
Method Detail

setDeployment

public void setDeployment(PluginDeploymentType deployment)
Overrides:
setDeployment in class AbstractPlugin

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractPlugin

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractPlugin

toString

public String toString()
Overrides:
toString in class AbstractPlugin


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