org.rhq.core.clientapi.descriptor.plugin
Class ServerDescriptor

java.lang.Object
  extended by org.rhq.core.clientapi.descriptor.plugin.ResourceDescriptor
      extended by org.rhq.core.clientapi.descriptor.plugin.ServerDescriptor

public class ServerDescriptor
extends ResourceDescriptor

Java class for server complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="server">
   <complexContent>
     <extension base="{urn:xmlns:rhq-plugin}resource">
       <sequence>
         <element ref="{urn:xmlns:rhq-plugin}server" maxOccurs="unbounded" minOccurs="0"/>
         <element ref="{urn:xmlns:rhq-plugin}service" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attGroup ref="{urn:xmlns:rhq-plugin}embeddedSourceResourceType"/>
       <attGroup ref="{urn:xmlns:rhq-plugin}creationAttributes"/>
     </extension>
   </complexContent>
 </complexType>
 


Nested Class Summary
 
Nested classes/interfaces inherited from class org.rhq.core.clientapi.descriptor.plugin.ResourceDescriptor
ResourceDescriptor.Subcategories
 
Field Summary
protected  ResourceCreateDeletePolicy createDeletePolicy
           
protected  ResourceCreationData creationDataType
           
protected  List<ServerDescriptor> servers
           
protected  List<ServiceDescriptor> services
           
protected  String sourcePlugin
           
protected  String sourceType
           
 
Fields inherited from class org.rhq.core.clientapi.descriptor.plugin.ResourceDescriptor
classLoader, clazz, content, description, discovery, event, help, metric, name, operation, pluginConfiguration, processScan, resourceConfiguration, runsInside, singleton, subcategories, subCategory, supportsManualAdd, version
 
Constructor Summary
ServerDescriptor()
           
 
Method Summary
 ResourceCreateDeletePolicy getCreateDeletePolicy()
          Gets the value of the createDeletePolicy property.
 ResourceCreationData getCreationDataType()
          Gets the value of the creationDataType property.
 List<ServerDescriptor> getServers()
          Defines child server types that can be embedded in this server type.
 List<ServiceDescriptor> getServices()
          Defines child services that are hosted in this resource type.
 String getSourcePlugin()
          Gets the value of the sourcePlugin property.
 String getSourceType()
          Gets the value of the sourceType property.
 void setCreateDeletePolicy(ResourceCreateDeletePolicy value)
          Sets the value of the createDeletePolicy property.
 void setCreationDataType(ResourceCreationData value)
          Sets the value of the creationDataType property.
 void setSourcePlugin(String value)
          Sets the value of the sourcePlugin property.
 void setSourceType(String value)
          Sets the value of the sourceType property.
 
Methods inherited from class org.rhq.core.clientapi.descriptor.plugin.ResourceDescriptor
getClassLoader, getClazz, getContent, getDescription, getDiscovery, getEvent, getHelp, getMetric, getName, getOperation, getOtherAttributes, getPluginConfiguration, getProcessScan, getResourceConfiguration, getRunsInside, getSubcategories, getSubCategory, getVersion, isSingleton, isSupportsManualAdd, setClassLoader, setClazz, setDescription, setDiscovery, setHelp, setName, setPluginConfiguration, setResourceConfiguration, setRunsInside, setSingleton, setSubcategories, setSubCategory, setSupportsManualAdd, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servers

protected List<ServerDescriptor> servers

services

protected List<ServiceDescriptor> services

sourcePlugin

protected String sourcePlugin

sourceType

protected String sourceType

createDeletePolicy

protected ResourceCreateDeletePolicy createDeletePolicy

creationDataType

protected ResourceCreationData creationDataType
Constructor Detail

ServerDescriptor

public ServerDescriptor()
Method Detail

getServers

public List<ServerDescriptor> getServers()
Defines child server types that can be embedded in this server type. Gets the value of the servers property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the servers property.

For example, to add a new item, do as follows:

    getServers().add(newItem);
 

Objects of the following type(s) are allowed in the list ServerDescriptor


getServices

public List<ServiceDescriptor> getServices()
Defines child services that are hosted in this resource type. Gets the value of the services property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the services property.

For example, to add a new item, do as follows:

    getServices().add(newItem);
 

Objects of the following type(s) are allowed in the list ServiceDescriptor


getSourcePlugin

public String getSourcePlugin()
Gets the value of the sourcePlugin property.

Returns:
possible object is String

setSourcePlugin

public void setSourcePlugin(String value)
Sets the value of the sourcePlugin property.

Parameters:
value - allowed object is String

getSourceType

public String getSourceType()
Gets the value of the sourceType property.

Returns:
possible object is String

setSourceType

public void setSourceType(String value)
Sets the value of the sourceType property.

Parameters:
value - allowed object is String

getCreateDeletePolicy

public ResourceCreateDeletePolicy getCreateDeletePolicy()
Gets the value of the createDeletePolicy property.

Returns:
possible object is ResourceCreateDeletePolicy

setCreateDeletePolicy

public void setCreateDeletePolicy(ResourceCreateDeletePolicy value)
Sets the value of the createDeletePolicy property.

Parameters:
value - allowed object is ResourceCreateDeletePolicy

getCreationDataType

public ResourceCreationData getCreationDataType()
Gets the value of the creationDataType property.

Returns:
possible object is ResourceCreationData

setCreationDataType

public void setCreationDataType(ResourceCreationData value)
Sets the value of the creationDataType property.

Parameters:
value - allowed object is ResourceCreationData


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