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
AmbariExceptionpublic ServiceImpl(Cluster cluster, ClusterServiceEntity serviceEntity, com.google.inject.Injector injector) throws AmbariException
AmbariExceptionpublic ReadWriteLock getClusterGlobalLock()
ServicegetClusterGlobalLock in interface Servicepublic long getClusterId()
getClusterId in interface Servicepublic Map<String,ServiceComponent> getServiceComponents()
getServiceComponents in interface Servicepublic void addServiceComponents(Map<String,ServiceComponent> components) throws AmbariException
addServiceComponents in interface ServiceAmbariExceptionpublic void addServiceComponent(ServiceComponent component) throws AmbariException
addServiceComponent in interface ServiceAmbariExceptionpublic ServiceComponent addServiceComponent(String serviceComponentName) throws AmbariException
addServiceComponent in interface ServiceAmbariExceptionpublic ServiceComponent getServiceComponent(String componentName) throws AmbariException
getServiceComponent in interface ServiceAmbariExceptionpublic State getDesiredState()
getDesiredState in interface Servicepublic void setDesiredState(State state)
setDesiredState in interface Servicepublic StackId getDesiredStackVersion()
getDesiredStackVersion in interface Servicepublic void setDesiredStackVersion(StackId stackVersion)
setDesiredStackVersion in interface Servicepublic ServiceResponse convertToResponse()
convertToResponse in interface Servicepublic Cluster getCluster()
getCluster in interface Servicepublic void debugDump(StringBuilder sb)
public boolean isPersisted()
isPersisted in interface Serviceprotected void persistEntities()
public boolean canBeRemoved()
ServicecanBeRemoved in interface Servicepublic void deleteAllComponents()
throws AmbariException
deleteAllComponents in interface ServiceAmbariExceptionpublic void deleteServiceComponent(String componentName) throws AmbariException
deleteServiceComponent in interface ServiceAmbariExceptionpublic boolean isClientOnlyService()
isClientOnlyService in interface Servicepublic void delete()
throws AmbariException
delete in interface ServiceAmbariExceptionprotected void removeEntities()
throws AmbariException
AmbariExceptionpublic void setMaintenanceState(MaintenanceState state)
ServicesetMaintenanceState in interface Servicestate - the statepublic MaintenanceState getMaintenanceState()
getMaintenanceState in interface ServiceCopyright © 2016. All rights reserved.