|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.services.deployment.DeployableService
A deployable service is an object that represents a foundation service that can
be deployed by the ServiceLoader utility.
It represents a foundation service which is utltimately defined in terms of an
Open Metadata Architecture (OMA) metadata schema.
During the process of
querying a metadata source for a foundation service deployment the creation of a
DeployableService represents a conversion from an OMA metadata
representation into an alternative representation that is more suited for
use in the foundation service deployment domain.
| Constructor Summary | |
protected |
DeployableService()
Constructs a default instance. |
protected |
DeployableService(String id,
ServiceConfigurationInterface serviceConfiguration)
Constructs an instance using the specified OMA ID for the metadata ServiceComponent that represents the foundation service. |
|
DeployableService(String id,
ServiceConfigurationInterface serviceConfiguration,
String[] dependencies)
Constructs an instance using the specified OMA ID for the metadata ServiceComponent that represents the foundation service. |
| Method Summary | |
int |
compareTo(Object deployableService)
Compares two DeployableService objects to
determine ordering based upon their stated service
dependencies. |
RemoteServiceInterface |
deploy()
Deploys a service by constructing a service factory and asking it to manufacture a service for a specified service configuration. |
boolean |
equals(Object other)
Determines whether or not the other object equals this object. |
Set |
getDependencies()
Gets an iterator of the services on which this service depends. |
String |
getId()
Gets the service's metadata ID. |
ServiceConfigurationInterface |
getServiceConfiguration()
Gets the service configuration. |
String |
getServiceFactory()
Gets the name of the class that will serve as the factory used to manufacture an instance of this service. |
int |
hashCode()
Gets a hash code for this service attribute. |
void |
setDependencies(Set dependencies)
Gets an iterator of the services on which this service depends. |
String |
toString()
Gets a string representation of this instance. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected DeployableService()
protected DeployableService(String id,
ServiceConfigurationInterface serviceConfiguration)
throws ServiceException
ServiceComponent that represents the foundation service.
Additionally a service configuration is specified that contains data
that the service will use during initialization. Optional dependencies
upon other services may also be specified. These dependencies are used
to ensure that this service is not instaniated until all services on
which it depends have been instantiated.id - Service's IDserviceConfiguration - Deployable service's initialization configuration
that will be provided to the service factory.ServiceException - if unable to construct an instance.
public DeployableService(String id,
ServiceConfigurationInterface serviceConfiguration,
String[] dependencies)
throws ServiceException
ServiceComponent that represents the foundation service.
Additionally a service configuration is specified that contains data
that the service will use during initialization. Optional dependencies
upon other services may also be specified. These dependencies are used
to ensure that this service is not instaniated until all services on
which it depends have been instantiated.id - Deployable service's repository ID.serviceConfiguration - Deployable service's initialization configuration
that will be provided to the service factory.dependencies - A set of 0..* service repository IDs upon which this service
depends. This service can not be deployed until these other
services are deployed. A null parameter value
indicates that there are no other dependencies.ServiceException - if unable to construct an instance.| Method Detail |
public final ServiceConfigurationInterface getServiceConfiguration()
public final Set getDependencies()
String representing an ID
value associated with the service.String.public final void setDependencies(Set dependencies)
String representing an ID
value associated with the service.dependencies - Set containing 0..* elements of type String
representing a service ID on which this service depends.public final String getId()
ServiceComponent's Id attribute.public String toString()
toString in class Object
public RemoteServiceInterface deploy()
throws ServiceException
deploy in interface DeployInterfaceServiceException - if unable to deploy the service.public final String getServiceFactory()
public final int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectother - Other object.true if the objects are equivalent.public final int compareTo(Object deployableService)
DeployableService objects to
determine ordering based upon their stated service
dependencies.compareTo in interface ComparabledeployableService - A DeployableService whose service
dependencies are to be compared to this service's
dependencies.1 if the deployable service should
be deployed before this service
-1 otherwise.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||