public class ServiceComponentHostImpl extends Object implements ServiceComponentHost
| Constructor and Description |
|---|
ServiceComponentHostImpl(ServiceComponent serviceComponent,
HostComponentStateEntity stateEntity,
HostComponentDesiredStateEntity desiredStateEntity,
com.google.inject.Injector injector) |
ServiceComponentHostImpl(ServiceComponent serviceComponent,
String hostName,
com.google.inject.Injector injector) |
public ServiceComponentHostImpl(ServiceComponent serviceComponent, String hostName, com.google.inject.Injector injector)
public ServiceComponentHostImpl(ServiceComponent serviceComponent, HostComponentStateEntity stateEntity, HostComponentDesiredStateEntity desiredStateEntity, com.google.inject.Injector injector)
public State getState()
getState in interface ServiceComponentHostpublic void setState(State state)
setState in interface ServiceComponentHostpublic void handleEvent(ServiceComponentHostEvent event) throws InvalidStateTransitionException
ServiceComponentHosthandleEvent in interface ServiceComponentHostevent - Event to handleInvalidStateTransitionExceptionpublic String getServiceComponentName()
ServiceComponentHostgetServiceComponentName in interface ServiceComponentHostpublic String getHostName()
ServiceComponentHostgetHostName in interface ServiceComponentHostpublic long getLastOpStartTime()
public void setLastOpStartTime(long lastOpStartTime)
lastOpStartTime - the lastOpStartTime to setpublic long getLastOpEndTime()
public void setLastOpEndTime(long lastOpEndTime)
lastOpEndTime - the lastOpEndTime to setpublic long getLastOpLastUpdateTime()
public void setLastOpLastUpdateTime(long lastOpLastUpdateTime)
lastOpLastUpdateTime - the lastOpLastUpdateTime to setpublic long getClusterId()
ServiceComponentHostgetClusterId in interface ServiceComponentHostpublic String getServiceName()
ServiceComponentHostgetServiceName in interface ServiceComponentHostpublic StackId getStackVersion()
getStackVersion in interface ServiceComponentHostpublic void setStackVersion(StackId stackVersion)
setStackVersion in interface ServiceComponentHostpublic State getDesiredState()
getDesiredState in interface ServiceComponentHostpublic void setDesiredState(State state)
setDesiredState in interface ServiceComponentHostpublic StackId getDesiredStackVersion()
getDesiredStackVersion in interface ServiceComponentHostpublic void setDesiredStackVersion(StackId stackVersion)
setDesiredStackVersion in interface ServiceComponentHostpublic HostComponentAdminState getComponentAdminState()
getComponentAdminState in interface ServiceComponentHostpublic void setComponentAdminState(HostComponentAdminState attribute)
setComponentAdminState in interface ServiceComponentHostpublic ServiceComponentHostResponse convertToResponse()
convertToResponse in interface ServiceComponentHostpublic String getClusterName()
ServiceComponentHostgetClusterName in interface ServiceComponentHostpublic void debugDump(StringBuilder sb)
debugDump in interface ServiceComponentHostpublic boolean isPersisted()
isPersisted in interface ServiceComponentHostpublic void persist()
persist in interface ServiceComponentHostprotected void persistEntities()
public void refresh()
refresh in interface ServiceComponentHostpublic boolean canBeRemoved()
canBeRemoved in interface ServiceComponentHostpublic void delete()
delete in interface ServiceComponentHostprotected void removeEntities()
public void updateActualConfigs(Map<String,Map<String,String>> configTags)
ServiceComponentHostupdateActualConfigs in interface ServiceComponentHostpublic Map<String,HostConfig> getActualConfigs()
ServiceComponentHostgetActualConfigs in interface ServiceComponentHostpublic HostState getHostState()
getHostState in interface ServiceComponentHostpublic void setMaintenanceState(MaintenanceState state)
setMaintenanceState in interface ServiceComponentHoststate - the maintenance statepublic MaintenanceState getMaintenanceState()
getMaintenanceState in interface ServiceComponentHostCopyright © 2016. All rights reserved.