|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.common.namedobject.BasicObject com.metamatrix.common.config.model.BasicComponentObject com.metamatrix.common.config.model.BasicDeployedComponent
public class BasicDeployedComponent
DeployedComponent represents a Component
that is declared deployed
to a specified machine. The componentID
represents the component that
has been deployed. It can either be a VM component or a Service Component.
If its a VM component, the
vmComponentID
will be null, because a
deployed VM cannot be deployed within another VM. The DeployedComponent does
not utilize a ComponentType, therefore, it is set to null;
Configuration
.
This is done so that a DeployedComponent
can be serialized
independently from having to also serialize the whole configuration of objects.
Field Summary |
---|
Fields inherited from interface com.metamatrix.common.config.api.DeployedComponent |
---|
SERVICE_UID_FOR_DEPLOYED_VM |
Constructor Summary | |
---|---|
BasicDeployedComponent(BasicDeployedComponent deployedComponent)
|
|
BasicDeployedComponent(DeployedComponentID deployedId,
ConfigurationID configId,
HostID hostId,
VMComponentDefnID vmId,
ComponentTypeID deployedTypeID)
Constructor takes a ComponentID, HostID, and Collection of system components to declare a component as being deployed. |
|
BasicDeployedComponent(DeployedComponentID deployedId,
ConfigurationID configId,
HostID hostId,
VMComponentDefnID vmId,
ServiceComponentDefnID serviceId,
ComponentTypeID deployedTypeID)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Return a deep cloned instance of this object. |
ConfigurationID |
getConfigurationID()
Returns the ConfigurationID indicating the configuration
under which this deployed component belongs. |
ComponentDefn |
getDeployedComponentDefn(Configuration configuration)
Returns the ComponentDefn that is deployed. |
ComponentDefnID |
getDeployedComponentDefnID()
Returns the ComponentDefnID for the component that is
deployed. |
HostID |
getHostID()
Returns the HostID for the Host that this component
is deployed on. |
ServiceComponentDefnID |
getServiceComponentDefnID()
Returns the ComponentID for the service component that is deployed. |
VMComponentDefnID |
getVMComponentDefnID()
Returns the ComponentID for the VM that this component
is deployed on, or if this object represents the deployed VM itself. |
boolean |
isDependentUpon(BaseID componentObjectId)
Returns true if this object is dependent upon the specified ComponentObjectID |
boolean |
isDeployedConnector()
Indicates whether this object represents a deployed connector. |
boolean |
isDeployedService()
Indicates whether this object represents a deployed service component definition (returns true) or a deployed vm component definition (returns false). |
boolean |
isEnabled()
Indicates if the deployed component is enabled for starting. |
void |
setIsEnabled(boolean enable)
|
java.lang.String |
toString()
Returns a string representing the name of the object. |
Methods inherited from class com.metamatrix.common.config.model.BasicComponentObject |
---|
accept, addProperties, addProperty, getComponentTypeID, getCreatedBy, getCreatedDate, getCreatedDateString, getDescription, getEditableProperties, getLastChangedBy, getLastChangedDate, getLastChangedDateString, getProperties, getProperty, removeProperties, removeProperty, setCreatedBy, setCreatedDate, setDescription, setLastChangedBy, setLastChangedDate, setProperties |
Methods inherited from class com.metamatrix.common.namedobject.BasicObject |
---|
compareTo, equals, getFullName, getID, getName, hashCode, setID |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.metamatrix.common.config.api.DeployedComponent |
---|
accept |
Methods inherited from interface com.metamatrix.common.config.api.ComponentObject |
---|
getComponentTypeID, getCreatedBy, getCreatedDate, getDescription, getLastChangedBy, getLastChangedDate, getName, getProperties, getProperty |
Methods inherited from interface com.metamatrix.common.namedobject.BaseObject |
---|
getFullName, getID |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public BasicDeployedComponent(DeployedComponentID deployedId, ConfigurationID configId, HostID hostId, VMComponentDefnID vmId, ComponentTypeID deployedTypeID)
ComponentID, HostID,
and Collection
of system components to declare a component as being deployed.
deployedID
- is the DeployedComponentIDconfigID
- is the ConfigurationIDhostID
- is the HostIDvmComponentID
- is the VMComponentDefnIDserviceComponentID
- is the ServiceComponentID (null if this is a deployed VM)public BasicDeployedComponent(DeployedComponentID deployedId, ConfigurationID configId, HostID hostId, VMComponentDefnID vmId, ServiceComponentDefnID serviceId, ComponentTypeID deployedTypeID)
public BasicDeployedComponent(BasicDeployedComponent deployedComponent)
Method Detail |
---|
public boolean isEnabled()
DeployedComponent
isEnabled
in interface DeployedComponent
public void setIsEnabled(boolean enable)
public boolean isDeployedService()
isDeployedService
in interface DeployedComponent
public boolean isDeployedConnector()
isDeployedService()
returns false,
this will always return false.
isDeployedConnector
in interface DeployedComponent
public ServiceComponentDefnID getServiceComponentDefnID()
DeployedComponent
ComponentID
for the service component that is deployed.
Null will be returned if this DeployedComponent
represents
either a a deployed VM.
getServiceComponentDefnID
in interface DeployedComponent
public ConfigurationID getConfigurationID()
DeployedComponent
ConfigurationID
indicating the configuration
under which this deployed component belongs.
getConfigurationID
in interface DeployedComponent
public VMComponentDefnID getVMComponentDefnID()
DeployedComponent
ComponentID
for the VM that this component
is deployed on, or if this object represents the deployed VM itself.
getVMComponentDefnID
in interface DeployedComponent
public HostID getHostID()
DeployedComponent
HostID
for the Host that this component
is deployed on.
getHostID
in interface DeployedComponent
public ComponentDefnID getDeployedComponentDefnID()
DeployedComponent
ComponentDefnID
for the component that is
deployed. This can either be a ServiceComponentDefnId
or a VMComponentDefnID
.
getDeployedComponentDefnID
in interface DeployedComponent
public ComponentDefn getDeployedComponentDefn(Configuration configuration)
DeployedComponent
ComponentDefn
that is deployed.
getDeployedComponentDefn
in interface DeployedComponent
public boolean isDependentUpon(BaseID componentObjectId)
ComponentObject
ComponentObjectID
isDependentUpon
in interface ComponentObject
isDependentUpon
in class BasicComponentObject
componentObjectId
- is the id to check for dependencies for
public java.lang.Object clone()
BaseObject
clone
in interface BaseObject
clone
in class BasicObject
Defaults
cannot be cloned).public java.lang.String toString()
toString
in class BasicComponentObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |