public class UnitInstance extends ServiceUnit
Modifier and Type | Field and Description |
---|---|
protected Set<UnitInstance> |
connectTo |
protected UnitInstance |
hostedOn |
protected GlobalIdentification |
identification |
protected State |
state |
capabilities, category, contract, domain, extra, name, uuid
Constructor and Description |
---|
UnitInstance() |
UnitInstance(String name,
ServiceCategory category) |
Modifier and Type | Method and Description |
---|---|
void |
connectToInstance(UnitInstance connectedToInst) |
Set<Metric> |
findAllMetricValues() |
Set<UnitInstance> |
getConnectTo() |
UnitInstance |
getHostedOn() |
GlobalIdentification |
getIdentification() |
State |
getState() |
void |
hostedOnInstance(UnitInstance hostedInst) |
void |
mergeWith(UnitInstance otherInstance) |
void |
setConnectTo(Set<UnitInstance> connectTo) |
void |
setHostedOn(UnitInstance hostedOn) |
void |
setIdentification(GlobalIdentification identification) |
void |
setState(State state) |
String |
toJson() |
equals, findAllCapabilities, getCapabilities, getCapabilityByName, getCategory, getContract, getDomain, getExtra, getExtraByClass, getGraphID, getName, getUuid, hasCapabilities, hasCapability, hasExtra, hashCode, setCapabilities, setCategory, setContract, setDomain, setExtra, setGraphID, setName, setUuid
protected GlobalIdentification identification
protected State state
protected UnitInstance hostedOn
protected Set<UnitInstance> connectTo
public UnitInstance()
public UnitInstance(String name, ServiceCategory category)
public void hostedOnInstance(UnitInstance hostedInst)
public void connectToInstance(UnitInstance connectedToInst)
public State getState()
public void setState(State state)
public GlobalIdentification getIdentification()
public void setIdentification(GlobalIdentification identification)
public String toJson()
toJson
in class ServiceUnit
public void mergeWith(UnitInstance otherInstance)
public UnitInstance getHostedOn()
public void setHostedOn(UnitInstance hostedOn)
public Set<UnitInstance> getConnectTo()
public void setConnectTo(Set<UnitInstance> connectTo)
Copyright © 2016. All Rights Reserved.