|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.deployment.AbstractServiceConfigFactory
public abstract class AbstractServiceConfigFactory
Abstract factory used to manufacture a service configuration.
A concrete sub-class must implement the following method:
Field Summary | |
---|---|
static java.lang.String |
PROPERTYNAME_INITDATA
Value of a metadata Property 's PropertyName
attribute that designates a property specifying platform service
initialization data. |
static java.lang.String |
PROPERTYROLE_INITIALIZATION
Value of a metadata StoredText 's Role
attribute that designates that the text string is used for
initialization purposes. |
Constructor Summary | |
---|---|
protected |
AbstractServiceConfigFactory(com.sas.meta.SASOMI.IOMI omi)
Constructs a factory which can be used to create service configurations. |
Method Summary | |
---|---|
protected static void |
addKeywordAttributes(java.util.List attributes,
com.sas.metadata.remote.Root root)
Gets a set of NameValueAttribute attributes for each Keyword
associated to the specified metadata object. |
protected static void |
addServiceAttributes(com.sas.metadata.remote.ServiceComponent serviceComponent,
com.sas.metadata.remote.SoftwareComponent softwareComponent,
ServiceDiscoveryConfigurationInterface serviceDiscoveryConfiguration)
Adds service attributes to the service's discovery configuration. |
abstract ServiceConfigurationInterface |
createConfigForService(java.lang.String softwareComponentName,
java.lang.String treeName,
java.lang.String serviceComponentName,
MetadataSourceInterface metadataSource,
boolean isRMIExportEnabled)
Query the service's configuration using a metadata resource adaptor. |
protected ServiceConfigurationInterface |
createServiceConfig(java.lang.String metadataXML,
java.lang.String softwareComponentName,
java.lang.String treeName,
java.lang.String serviceComponentName,
MetadataSourceInterface metadataSource,
boolean isRMIExportEnabled)
Creates a service configuration using the specified metadata. |
void |
destroy()
Destroys this factory and its object store. |
protected com.sas.metadata.remote.MdFactory |
getMdFactory()
Gets the object store's metadata factory. |
protected com.sas.metadata.remote.MdObjectStore |
getMdObjectStore()
Gets the object store. |
protected static java.lang.Class[] |
getServiceTypes(com.sas.metadata.remote.ServiceComponent serviceComponent)
Gets the service types a deployed component supports. |
Field Detail |
---|
public static final java.lang.String PROPERTYNAME_INITDATA
Property
's PropertyName
attribute that designates a property specifying platform service
initialization data. This value is "INIT_DATA"
public static final java.lang.String PROPERTYROLE_INITIALIZATION
StoredText
's Role
attribute that designates that the text string is used for
initialization purposes. This value is "initialization"
Constructor Detail |
---|
protected AbstractServiceConfigFactory(com.sas.meta.SASOMI.IOMI omi) throws ServiceException
omi
- The OMI connection to be used to query the service configuration
from the metadata repository or null
if querying the
metadata from a services deployment export XML file.
ServiceException
- if unable to initialize a meadata object store.Method Detail |
---|
public abstract ServiceConfigurationInterface createConfigForService(java.lang.String softwareComponentName, java.lang.String treeName, java.lang.String serviceComponentName, MetadataSourceInterface metadataSource, boolean isRMIExportEnabled) throws ServiceException
createConfigForService
in interface ServiceConfigFactoryInterface
softwareComponentName
- The name of the SAS Foundation Services deployment. This
is the SoftwareComponent.Name
.treeName
- The name of the service deployment group.
This is the Tree.Name
.serviceComponentName
- The name of the service component.
This is the ServiceComponent.Name
.metadataSource
- Metadata source.isRMIExportEnabled
- true
if remote objects should be exported to the RMI system
or false
if they shouldn't.
ServiceException
- if unable to get the service configuration. The
ServiceException may wrap an exception that provides details concerning
the cause of the failure.protected final com.sas.metadata.remote.MdObjectStore getMdObjectStore() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if the metadata object store has been destroyed.protected final com.sas.metadata.remote.MdFactory getMdFactory() throws ServiceException
ServiceException
- if unable to get the factory from the metadata object store.
java.lang.IllegalStateException
- if the metadata object store has been destroyed.protected ServiceConfigurationInterface createServiceConfig(java.lang.String metadataXML, java.lang.String softwareComponentName, java.lang.String treeName, java.lang.String serviceComponentName, MetadataSourceInterface metadataSource, boolean isRMIExportEnabled) throws ServiceException
metadataXML
- Metadata describing the service configuration.softwareComponentName
- The name of the SAS Foundation Services deployment. This
is the SoftwareComponent.Name
.treeName
- The name of the service deployment group.
This is the Tree.Name
.serviceComponentName
- The name of the service component.
This is the ServiceComponent.Name
.metadataSource
- The metadata source which will be used to query the service configuration.isRMIExportEnabled
- true
if remote objects should be exported to the RMI
system or false
if they shouldn't.
ServiceException
- if unable to create a configuration.public void destroy()
protected static java.lang.Class[] getServiceTypes(com.sas.metadata.remote.ServiceComponent serviceComponent) throws ServiceException
serviceComponent
- Deployed component.
null
if no service types are
supported.
ServiceException
- if unable to determine the service's service types.protected static void addServiceAttributes(com.sas.metadata.remote.ServiceComponent serviceComponent, com.sas.metadata.remote.SoftwareComponent softwareComponent, ServiceDiscoveryConfigurationInterface serviceDiscoveryConfiguration) throws ServiceException
serviceComponent
- Service component whose configuration is to be updated.softwareComponent
- Application that owns the services deployment.serviceDiscoveryConfiguration
- Service's discovery configuration which is to be updated
with optional attributes which may be used to lookup a service.
ServiceException
- if unable to determine the service's attributes.protected static void addKeywordAttributes(java.util.List attributes, com.sas.metadata.remote.Root root) throws ServiceException
NameValueAttribute
attributes for each Keyword
associated to the specified metadata object. The attribute's name
corresponds to the Keyword.Name and its value corresponds to Keyword.Desc.
attributes
- List of ServiceAttributeInterface
objects to which
name/value
attributes describing
this metadata object keywords will be added.root
- Metadata object whose associated keywords are to be represented
using name/value attributes.
ServiceException
- if unable to obtain name/value attributes
representing the metadata object's keywords.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |