public interface Service
Modifier and Type | Interface and Description |
---|---|
static class |
Service.Type |
String getName()
long getClusterId()
Cluster getCluster()
ServiceComponent getServiceComponent(String componentName) throws AmbariException
AmbariException
Map<String,ServiceComponent> getServiceComponents()
void addServiceComponents(Map<String,ServiceComponent> components) throws AmbariException
AmbariException
void addServiceComponent(ServiceComponent component) throws AmbariException
AmbariException
State getDesiredState()
void setDesiredState(State state)
StackId getDesiredStackVersion()
void setDesiredStackVersion(StackId stackVersion)
ServiceResponse convertToResponse()
void debugDump(StringBuilder sb)
boolean isPersisted()
void persist()
void refresh()
ServiceComponent addServiceComponent(String serviceComponentName) throws AmbariException
AmbariException
boolean canBeRemoved()
void deleteAllComponents() throws AmbariException
AmbariException
void deleteServiceComponent(String componentName) throws AmbariException
AmbariException
boolean isClientOnlyService()
void delete() throws AmbariException
AmbariException
ReadWriteLock getClusterGlobalLock()
void setMaintenanceState(MaintenanceState state)
state
- the stateMaintenanceState getMaintenanceState()
Copyright © 2016. All rights reserved.