public class TenantPersistentState extends java.lang.Object implements ITenantPersistentState
ITenantPersistentState
.Constructor and Description |
---|
TenantPersistentState() |
Modifier and Type | Method and Description |
---|---|
static TenantPersistentState |
copy(ITenantPersistentState api)
Copy from API object.
|
com.sitewhere.spi.server.lifecycle.LifecycleStatus |
getDesiredState()
Get desired state for the tenant.
|
com.sitewhere.spi.server.lifecycle.LifecycleStatus |
getLastKnownState()
Get last known state for tenant.
|
void |
setDesiredState(com.sitewhere.spi.server.lifecycle.LifecycleStatus desiredState) |
void |
setLastKnownState(com.sitewhere.spi.server.lifecycle.LifecycleStatus lastKnownState) |
public com.sitewhere.spi.server.lifecycle.LifecycleStatus getDesiredState()
ITenantPersistentState
getDesiredState
in interface ITenantPersistentState
public void setDesiredState(com.sitewhere.spi.server.lifecycle.LifecycleStatus desiredState)
public com.sitewhere.spi.server.lifecycle.LifecycleStatus getLastKnownState()
ITenantPersistentState
getLastKnownState
in interface ITenantPersistentState
public void setLastKnownState(com.sitewhere.spi.server.lifecycle.LifecycleStatus lastKnownState)
public static TenantPersistentState copy(ITenantPersistentState api)
api
-