public interface ServiceComponent
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceComponentHost(ServiceComponentHost hostComponent) |
ServiceComponentHost |
addServiceComponentHost(String hostName) |
void |
addServiceComponentHosts(Map<String,ServiceComponentHost> hostComponents) |
boolean |
canBeRemoved() |
ServiceComponentResponse |
convertToResponse() |
void |
debugDump(StringBuilder sb) |
void |
delete() |
void |
deleteAllServiceComponentHosts() |
void |
deleteServiceComponentHosts(String hostname) |
ReadWriteLock |
getClusterGlobalLock()
Get lock to control access to cluster structure
|
long |
getClusterId() |
String |
getClusterName() |
StackId |
getDesiredStackVersion() |
State |
getDesiredState() |
String |
getName() |
ServiceComponentHost |
getServiceComponentHost(String hostname) |
Map<String,ServiceComponentHost> |
getServiceComponentHosts() |
String |
getServiceName() |
boolean |
isClientComponent() |
boolean |
isMasterComponent() |
boolean |
isPersisted() |
void |
persist() |
void |
refresh() |
void |
setDesiredStackVersion(StackId stackVersion) |
void |
setDesiredState(State state) |
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 © 2014. All rights reserved.