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
AmbariExceptionMap<String,ServiceComponent> getServiceComponents()
void addServiceComponents(Map<String,ServiceComponent> components) throws AmbariException
AmbariExceptionvoid addServiceComponent(ServiceComponent component) throws AmbariException
AmbariExceptionState 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
AmbariExceptionboolean canBeRemoved()
void deleteAllComponents()
throws AmbariException
AmbariExceptionvoid deleteServiceComponent(String componentName) throws AmbariException
AmbariExceptionboolean isClientOnlyService()
void delete()
throws AmbariException
AmbariExceptionReadWriteLock getClusterGlobalLock()
void setMaintenanceState(MaintenanceState state)
state - the stateMaintenanceState getMaintenanceState()
Copyright © 2016. All rights reserved.