|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.opstring.GlobalAttrs
org.rioproject.opstring.ParsedService
public class ParsedService
A ParsedService represents the descriptive attributes of a service that has been parsed.
| Field Summary | |
|---|---|
static String[] |
DEFAULT_EXPORT_JARS
Default array of export jar names |
static String |
DEFAULT_SERVICE_INTERFACE
Default name of the service interface class |
static String |
DYNAMIC
|
static String |
FIXED
|
| Fields inherited from class org.rioproject.opstring.GlobalAttrs |
|---|
artifacts, associations, autoAdvertise, bundles, cluster, codebase, configParms, groupList, initParms, locatorList, logConfigs, organization, provisionConfig |
| Constructor Summary | |
|---|---|
ParsedService()
Create a ParsedService |
|
ParsedService(String name)
Create a ParsedService with a descriptive name |
|
ParsedService(String name,
GlobalAttrs global)
Create a ParsedService with a descriptive name |
|
| Method Summary | |
|---|---|
String |
getComment()
Get the comment |
ClassBundle |
getComponentBundle()
Get the Component as ClassBundle object containing the className and resources required to load the component |
boolean |
getDiscoveryManagementPooling()
Get discoPool |
ExecDescriptor |
getExecDescriptor()
|
boolean |
getFork()
|
ClassBundle[] |
getInterfaceBundles()
Get the Interfaces as ClassBundle object containing the className and resources required to load each class |
String |
getJMXName()
Get the name to use for JMX ObjectName |
ServiceElement.MachineBoundary |
getMachineBoundary()
Get the machine boundary value |
String |
getMaintain()
Get the maintain value |
Boolean |
getMatchOnName()
Get whether the provisioning system whould match on the service's name as well as it's interfaces |
String |
getMaxPerMachine()
Get the maxPerMachine value |
String |
getName()
Get the name that the ParsedService has been constructed with |
String |
getOperationalStringName()
Get the OperationalString name |
ServiceElement.ProvisionType |
getProvisionType()
Get the provisioning type of the service |
Collection<RuleMap> |
getRuleMaps()
|
ServiceLevelAgreements |
getServiceLevelAgreements()
Get the ServiceLevelAgreements |
StagedData[] |
getStagedData()
|
void |
setComment(String comment)
Set the comment |
void |
setComponentBundle(ClassBundle bundle)
Set the Component as ClassBundle object containing the className and resources required to load the component |
void |
setDiscoveryManagementPooling(boolean value)
Set discovery management pooling |
void |
setDiscoveryManagementPooling(String value)
Set discovery management pooling |
void |
setExecDescriptor(ExecDescriptor execDescriptor)
|
void |
setFork(boolean fork)
|
void |
setInterfaceBundles(ClassBundle... bundles)
Set the Interfaces as ClassBundle object containing the className and resources required to load each class |
void |
setInterfaceBundles(List<ClassBundle> bundles)
Set the Interfaces as ClassBundle object containing the className and resources required to load each class |
void |
setJMXName(String name)
Set the name to use for JMX ObjectName |
void |
setMachineBoundary(String boundary)
Set the machine boundary value |
void |
setMaintain(String maintain)
Set the maintain value |
void |
setMatchOnName(boolean value)
Set whether the provisioning system should match on the service's name as well as it's interfaces |
void |
setMatchOnName(String value)
Set whether the provisioning system should match on the service's name as well as it's interfaces |
void |
setMaxPerMachine(String maxPerMachine)
Set the maxPerMachine value |
void |
setName(String name)
Set the name for the ParsedService |
void |
setOperationalStringName(String opStringName)
Set the OperationalString name |
void |
setProvisionType(String value)
Set the provisioning type of the service |
void |
setRuleMaps(Collection<RuleMap> ruleMaps)
|
void |
setServiceLevelAgreements(ServiceLevelAgreements sla)
Set the ServiceLevelAgreements |
void |
setStagedData(StagedData... stagedData)
|
String |
toString()
Provide a String output |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DYNAMIC
public static final String FIXED
public static final String[] DEFAULT_EXPORT_JARS
public static final String DEFAULT_SERVICE_INTERFACE
| Constructor Detail |
|---|
public ParsedService()
public ParsedService(String name)
name - The name of the service
public ParsedService(String name,
GlobalAttrs global)
name - The name of the serviceglobal - GlobalAttrs containing attributes that should be applied to
the ParsedService.| Method Detail |
|---|
public void setDiscoveryManagementPooling(boolean value)
value - String value for discoPool. If "yes" then true,
otherwise falsepublic void setDiscoveryManagementPooling(String value)
value - String value for discoPool. If "yes" then true,
otherwise falsepublic boolean getDiscoveryManagementPooling()
public void setName(String name)
name - The name of the servicepublic String getName()
public void setJMXName(String name)
name - The name to use for JMX ObjectNamepublic String getJMXName()
public void setComment(String comment)
comment - The comment for the servicepublic String getComment()
public void setOperationalStringName(String opStringName)
opStringName - The OperationalString name the service belongs topublic String getOperationalStringName()
public void setInterfaceBundles(ClassBundle... bundles)
bundles - Array of ClassBundle objectspublic void setInterfaceBundles(List<ClassBundle> bundles)
bundles - Array of ClassBundle objectspublic ClassBundle[] getInterfaceBundles()
public void setComponentBundle(ClassBundle bundle)
bundle - ClassBundle for the componentpublic ClassBundle getComponentBundle()
public void setMaintain(String maintain)
maintain - The number of service instances to maintainpublic String getMaintain()
public void setMaxPerMachine(String maxPerMachine)
maxPerMachine - The maximum number of service instances per
machinepublic String getMaxPerMachine()
public void setMachineBoundary(String boundary)
boundary - The boundary, "physical" or "virtual"public ServiceElement.MachineBoundary getMachineBoundary()
public void setMatchOnName(String value)
value - If "yes", then true, otherwise falsepublic void setMatchOnName(boolean value)
value - Boolean value, true or falsepublic Boolean getMatchOnName()
public void setProvisionType(String value)
value - If the value is "dynamic", then the type maps to
ServiceElement.ProvisionType.DYNAMIC, if "fixed", then
ServiceElement.ProvisionType.FIXED, if "external"
then ServiceElement.ProvisionType.EXTERNAL, otherwise throw an
IllegalArgumentExceptionpublic ServiceElement.ProvisionType getProvisionType()
public void setStagedData(StagedData... stagedData)
public StagedData[] getStagedData()
public ExecDescriptor getExecDescriptor()
public void setExecDescriptor(ExecDescriptor execDescriptor)
public void setServiceLevelAgreements(ServiceLevelAgreements sla)
sla - The ServiceLevelAgreements for the servicepublic ServiceLevelAgreements getServiceLevelAgreements()
public Collection<RuleMap> getRuleMaps()
public void setRuleMaps(Collection<RuleMap> ruleMaps)
public boolean getFork()
public void setFork(boolean fork)
public String toString()
toString in class Object
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||