|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.opstring.GlobalAttrs
public class GlobalAttrs
A GlobalAttrs represents the descriptive attributes of a service that has been parsed.
| Field Summary | |
|---|---|
protected Map<String,String> |
artifacts
List of ClassBundles |
protected Vector<AssociationDescriptor> |
associations
Collection of service associations |
protected boolean |
autoAdvertise
Flag to determine if the service should be automatically advertised when provisioned |
protected Map<String,ClassBundle> |
bundles
List of ClassBundles |
protected List<String> |
cluster
Collection of machines to provision to |
protected String |
codebase
Codebase for the service |
protected List<String> |
configParms
Configuration parameters |
protected List<String> |
groupList
List of groups to join |
protected Properties |
initParms
Initialization parameters |
protected List<String> |
locatorList
List of locators to create |
protected List<LoggerConfig> |
logConfigs
Array of LoggerConfig objects |
protected String |
organization
The organization (representative owner) of the ServiceBean |
protected String[] |
provisionConfig
Service Provision config |
| Constructor Summary | |
|---|---|
GlobalAttrs()
|
|
| Method Summary | |
|---|---|
void |
addAssociationDescriptor(AssociationDescriptor a)
Add an AssociationDescriptor |
AssociationDescriptor[] |
getAssociationDescriptors()
Get all AssociationDescriptors |
boolean |
getAutoAdvertise()
Get auto advertise |
String[] |
getCluster()
Set the target machine to provision the service to |
String |
getCodebase()
Get the codebase property |
String[] |
getConfigParameters()
Get Configuration parameters |
ClassBundle |
getFaultDetectionHandlerBundle()
Get the ClassBundle for the FaultDetectionHandler |
String[] |
getGroups()
Get the groups |
String[] |
getLocators()
Get the locators as an array of String objects |
LoggerConfig[] |
getLogConfigs()
Get the LoggerConfig objects |
String |
getOrganization()
Get the organization |
Properties |
getParameters()
Get initialization parameters |
String[] |
getRawConfigParameters()
|
String[] |
getServiceProvisionConfig()
Get the service provision config |
void |
setAutoAdvertise(String value)
Set auto advertise |
void |
setCluster(String[] machines,
boolean append)
Set a target machine to provision the service to |
void |
setCodebase(String codebase)
Set the codebase property |
void |
setConfigParameters(List<String> parms,
boolean append)
Add a Configuration parameter |
void |
setConfigParameters(String[] parms,
boolean append)
Add a Configuration parameter |
void |
setFaultDetectionHandlerBundle(ClassBundle bundle)
Set the ClassBundle for the FaultDetectionHandler |
void |
setGroups(List<String> groups,
boolean append)
Add to the groups collection |
void |
setGroups(String[] groups,
boolean append)
Add to the groups collection |
void |
setLocators(String[] locators,
boolean append)
Add to the locators collection |
void |
setLogConfigs(LoggerConfig[] configs,
boolean append)
Set LoggerConfig objects |
void |
setOrganization(String organization)
Set the organization value |
void |
setParameters(Properties params,
boolean append)
Set initialization parameters |
void |
setServiceProvisionConfig(String[] args)
Set service provision config |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<String> groupList
protected Map<String,ClassBundle> bundles
protected Map<String,String> artifacts
protected List<String> locatorList
protected Properties initParms
protected List<String> configParms
protected List<String> cluster
protected String codebase
protected String organization
protected List<LoggerConfig> logConfigs
protected String[] provisionConfig
protected Vector<AssociationDescriptor> associations
protected boolean autoAdvertise
| Constructor Detail |
|---|
public GlobalAttrs()
| Method Detail |
|---|
public void setCluster(String[] machines,
boolean append)
machines - Array of machines to provision the ServiceBean to. Will
be either the hostname or IP Addressappend - If true, add to the current machine list, otherwise clear
the current machine list and set the machine list to the input parampublic String[] getCluster()
public void setCodebase(String codebase)
codebase - The codebasepublic String getCodebase()
public void setConfigParameters(String[] parms,
boolean append)
parms - A String array of configuration parametersappend - If true, add to the current configuration, otherwise the
configuration set to the input param
public void setConfigParameters(List<String> parms,
boolean append)
parms - A String array of configuration parametersappend - If true, add to the current configuration, otherwise the
configuration set to the input parampublic String[] getRawConfigParameters()
public String[] getConfigParameters()
public void setGroups(String[] groups,
boolean append)
groups - Array group namesappend - If true, add to the current groups, otherwise clear
the current groups and set the group list to the input param
public void setGroups(List<String> groups,
boolean append)
groups - Array group namesappend - If true, add to the current groups, otherwise clear
the current groups and set the group list to the input parampublic String[] getGroups()
public void setLocators(String[] locators,
boolean append)
locators - Array of string representations of a known LookupLocator
instanceappend - If true, add to the current locators, otherwise clear
the current locators and set the locators list to the input parampublic String[] getLocators()
public void setLogConfigs(LoggerConfig[] configs,
boolean append)
configs - Array of LoggerConfig objectsappend - Add to the Collection of LoggerConfigs or replace itpublic LoggerConfig[] getLogConfigs()
public void setOrganization(String organization)
organization - The organization (representative owner) of the
ServiceBeanpublic String getOrganization()
public void setParameters(Properties params,
boolean append)
params - the input parameters to setappend - Whether to add the imput parametsr to the current Colection
or to clear and set them to the inpt paramspublic Properties getParameters()
public void setServiceProvisionConfig(String[] args)
args - Array of service provision configuration argumentspublic String[] getServiceProvisionConfig()
public void setFaultDetectionHandlerBundle(ClassBundle bundle)
bundle - The ClassBundle for the FaultDetectionHandlerpublic ClassBundle getFaultDetectionHandlerBundle()
public void addAssociationDescriptor(AssociationDescriptor a)
throws Exception
a - The AssociationDescriptor to add.
Exception - If the AssociationDescriptor already exists (as defined
by the equals method of an AssociationDescriptor), then an Exception is
thrownpublic void setAutoAdvertise(String value)
value - String value for autoAdvertise. If "yes" then true,
otherwise falsepublic boolean getAutoAdvertise()
public AssociationDescriptor[] getAssociationDescriptors()
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||