public class LogicalComponent<I extends org.fabric3.api.model.type.component.Implementation<?>> extends LogicalScaArtifact<LogicalCompositeComponent>
| Constructor and Description |
|---|
LogicalComponent(java.net.URI uri,
org.fabric3.api.model.type.component.Component<I> definition,
LogicalCompositeComponent parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer(LogicalConsumer consumer)
Adds a the consumer.
|
void |
addProducer(LogicalProducer producer)
Adds a producer.
|
void |
addReference(LogicalReference reference)
Adds a resolved reference
|
void |
addResource(LogicalResourceReference<?> resourceReference)
Adds a the resolved resource
|
void |
addService(LogicalService service)
Adds a the resolved service
|
java.util.Map<java.lang.String,LogicalProperty> |
getAllProperties()
Returns the resolved properties for the component.
|
LogicalConsumer |
getConsumer(java.lang.String name)
Returns a consumer with the given URI.
|
java.util.Collection<LogicalConsumer> |
getConsumers()
Returns the component consumer.
|
org.fabric3.api.model.type.component.Component<I> |
getDefinition()
Returns the component implementation type.
|
LogicalProducer |
getProducer(java.lang.String name)
Returns a producer with the given URI.
|
java.util.Collection<LogicalProducer> |
getProducers()
Returns the component producers.
|
LogicalProperty |
getProperties(java.lang.String name)
Gets a property.
|
LogicalReference |
getReference(java.lang.String name)
Returns a the resolved reference with the given URI.
|
java.util.Collection<LogicalReference> |
getReferences()
Returns the resolved component references.
|
LogicalResourceReference<?> |
getResourceReference(java.lang.String name)
Returns a resource reference with the given URI.
|
java.util.Collection<LogicalResourceReference<?>> |
getResourceReferences()
Returns the resource references required by the current component.
|
LogicalService |
getService(java.lang.String name)
Returns a service with the given URI.
|
java.util.Collection<LogicalService> |
getServices()
Returns the services offered by the current component.
|
LogicalState |
getState()
Returns the instance state.
|
java.net.URI |
getUri()
Returns the component uri.
|
void |
setProperties(LogicalProperty property)
Sets a collection of resolved property values
|
void |
setState(LogicalState state)
Sets the instance state.
|
addMetadata, getMetadata, getParentpublic LogicalComponent(java.net.URI uri,
org.fabric3.api.model.type.component.Component<I> definition,
LogicalCompositeComponent parent)
uri - URI of the component.definition - Definition of the component.parent - Parent of the component.public java.net.URI getUri()
public java.util.Collection<LogicalService> getServices()
public LogicalService getService(java.lang.String name)
name - the service namepublic void addService(LogicalService service)
service - the service to addpublic java.util.Collection<LogicalResourceReference<?>> getResourceReferences()
public LogicalResourceReference<?> getResourceReference(java.lang.String name)
name - the resource namepublic void addResource(LogicalResourceReference<?> resourceReference)
resourceReference - the resource to addpublic java.util.Collection<LogicalReference> getReferences()
public LogicalReference getReference(java.lang.String name)
name - the reference namepublic void addReference(LogicalReference reference)
reference - the reference to addpublic java.util.Collection<LogicalProducer> getProducers()
public LogicalProducer getProducer(java.lang.String name)
name - the producer namepublic void addProducer(LogicalProducer producer)
producer - the producer to addpublic java.util.Collection<LogicalConsumer> getConsumers()
public LogicalConsumer getConsumer(java.lang.String name)
name - the producer namepublic void addConsumer(LogicalConsumer consumer)
consumer - the consumer to addpublic java.util.Map<java.lang.String,LogicalProperty> getAllProperties()
public LogicalProperty getProperties(java.lang.String name)
name - the name of the property.public void setProperties(LogicalProperty property)
property - the parsed propertypublic org.fabric3.api.model.type.component.Component<I> getDefinition()
public LogicalState getState()
public void setState(LogicalState state)
state - the instance state