public interface ServiceComponent
String getName()
String getServiceName()
long getClusterId()
String getClusterName()
State getDesiredState()
void setDesiredState(State state)
StackId getDesiredStackVersion()
void setDesiredStackVersion(StackId stackVersion)
Map<String,ServiceComponentHost> getServiceComponentHosts()
ServiceComponentHost getServiceComponentHost(String hostname) throws AmbariException
AmbariExceptionvoid addServiceComponentHosts(Map<String,ServiceComponentHost> hostComponents) throws AmbariException
AmbariExceptionvoid addServiceComponentHost(ServiceComponentHost hostComponent) throws AmbariException
AmbariExceptionServiceComponentResponse convertToResponse()
void refresh()
boolean isPersisted()
void persist()
void debugDump(StringBuilder sb)
boolean isClientComponent()
boolean isMasterComponent()
boolean canBeRemoved()
void deleteAllServiceComponentHosts()
throws AmbariException
AmbariExceptionvoid deleteServiceComponentHosts(String hostname) throws AmbariException
AmbariExceptionServiceComponentHost addServiceComponentHost(String hostName) throws AmbariException
AmbariExceptionvoid delete()
throws AmbariException
AmbariExceptionReadWriteLock getClusterGlobalLock()
Copyright © 2016. All rights reserved.