Service.Type
Constructor and Description |
---|
ServiceImpl(Cluster cluster,
ClusterServiceEntity serviceEntity,
com.google.inject.Injector injector) |
ServiceImpl(Cluster cluster,
String serviceName,
com.google.inject.Injector injector) |
public ServiceImpl(Cluster cluster, String serviceName, com.google.inject.Injector injector) throws AmbariException
AmbariException
public ServiceImpl(Cluster cluster, ClusterServiceEntity serviceEntity, com.google.inject.Injector injector) throws AmbariException
AmbariException
public ReadWriteLock getClusterGlobalLock()
Service
getClusterGlobalLock
in interface Service
public long getClusterId()
getClusterId
in interface Service
public Map<String,ServiceComponent> getServiceComponents()
getServiceComponents
in interface Service
public void addServiceComponents(Map<String,ServiceComponent> components) throws AmbariException
addServiceComponents
in interface Service
AmbariException
public void addServiceComponent(ServiceComponent component) throws AmbariException
addServiceComponent
in interface Service
AmbariException
public ServiceComponent addServiceComponent(String serviceComponentName) throws AmbariException
addServiceComponent
in interface Service
AmbariException
public ServiceComponent getServiceComponent(String componentName) throws AmbariException
getServiceComponent
in interface Service
AmbariException
public State getDesiredState()
getDesiredState
in interface Service
public void setDesiredState(State state)
setDesiredState
in interface Service
public StackId getDesiredStackVersion()
getDesiredStackVersion
in interface Service
public void setDesiredStackVersion(StackId stackVersion)
setDesiredStackVersion
in interface Service
public ServiceResponse convertToResponse()
convertToResponse
in interface Service
public Cluster getCluster()
getCluster
in interface Service
public void debugDump(StringBuilder sb)
public boolean isPersisted()
isPersisted
in interface Service
protected void persistEntities()
public boolean canBeRemoved()
Service
canBeRemoved
in interface Service
public void deleteAllComponents() throws AmbariException
deleteAllComponents
in interface Service
AmbariException
public void deleteServiceComponent(String componentName) throws AmbariException
deleteServiceComponent
in interface Service
AmbariException
public boolean isClientOnlyService()
isClientOnlyService
in interface Service
public void delete() throws AmbariException
delete
in interface Service
AmbariException
protected void removeEntities() throws AmbariException
AmbariException
public void setMaintenanceState(MaintenanceState state)
Service
setMaintenanceState
in interface Service
state
- the statepublic MaintenanceState getMaintenanceState()
getMaintenanceState
in interface Service
Copyright © 2016. All rights reserved.