D
- The definition class representing this instancepublic class BaseInstance<D extends BaseDefinition>
extends java.lang.Object
Constructor and Description |
---|
BaseInstance(D definition)
Create a new instance out of the given definition.
|
Modifier and Type | Method and Description |
---|---|
D |
getDefinition()
Return the underlying definition.
|
java.util.Date |
getStartedAt() |
DeploymentUnitStatus |
getStatus() |
void |
setStartedAt(java.util.Date startedAt)
Set the date when this instance was started.
|
void |
setStatus(DeploymentUnitStatus status)
Set the
DeploymentUnitStatus for this instance. |
java.lang.String |
toString() |
public BaseInstance(D definition)
public D getDefinition()
public java.util.Date getStartedAt()
public void setStartedAt(java.util.Date startedAt)
startedAt
- Must not be nullpublic DeploymentUnitStatus getStatus()
DeploymentUnitStatus
for this instance.public void setStatus(DeploymentUnitStatus status)
DeploymentUnitStatus
for this instance.status
- the status for this instancepublic java.lang.String toString()
toString
in class java.lang.Object