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
AmbariException
void addServiceComponentHosts(Map<String,ServiceComponentHost> hostComponents) throws AmbariException
AmbariException
void addServiceComponentHost(ServiceComponentHost hostComponent) throws AmbariException
AmbariException
ServiceComponentResponse convertToResponse()
void refresh()
boolean isPersisted()
void persist()
void debugDump(StringBuilder sb)
boolean isClientComponent()
boolean isMasterComponent()
boolean canBeRemoved()
void deleteAllServiceComponentHosts() throws AmbariException
AmbariException
void deleteServiceComponentHosts(String hostname) throws AmbariException
AmbariException
ServiceComponentHost addServiceComponentHost(String hostName) throws AmbariException
AmbariException
void delete() throws AmbariException
AmbariException
ReadWriteLock getClusterGlobalLock()
Copyright © 2015. All rights reserved.