public interface Service
Modifier and Type | Interface and Description |
---|---|
static class |
Service.Type |
Modifier and Type | Method and Description |
---|---|
void |
addServiceComponent(ServiceComponent component) |
ServiceComponent |
addServiceComponent(String serviceComponentName) |
void |
addServiceComponents(Map<String,ServiceComponent> components) |
boolean |
canBeRemoved()
Find out whether the service and its components
are in a state that it can be removed from a cluster
|
ServiceResponse |
convertToResponse() |
void |
debugDump(StringBuilder sb) |
void |
delete(DeleteHostComponentStatusMetaData deleteMetaData) |
void |
deleteAllComponents(DeleteHostComponentStatusMetaData deleteMetaData) |
void |
deleteServiceComponent(String componentName,
DeleteHostComponentStatusMetaData deleteMetaData) |
Cluster |
getCluster() |
long |
getClusterId() |
RepositoryVersionEntity |
getDesiredRepositoryVersion() |
StackId |
getDesiredStackId() |
State |
getDesiredState() |
String |
getDisplayName() |
MaintenanceState |
getMaintenanceState() |
String |
getName() |
RepositoryVersionState |
getRepositoryState()
Gets the repository for the desired version of this service by consulting
the repository states of all known components.
|
ServiceComponent |
getServiceComponent(String componentName) |
Map<String,ServiceComponent> |
getServiceComponents() |
Set<String> |
getServiceHosts() |
boolean |
isClientOnlyService() |
boolean |
isCredentialStoreEnabled()
Get a true or false value specifying whether
credential store use is enabled for this service.
|
boolean |
isCredentialStoreRequired()
Get a true or false value specifying
whether credential store is required by this service.
|
boolean |
isCredentialStoreSupported()
Get a true or false value specifying
whether credential store is supported by this service.
|
boolean |
isKerberosEnabled()
Tests to see if Kerberos is enabled for this service using the Kerberos enabled test metadata
and the existing cluster configurations.
|
boolean |
isKerberosEnabled(Map<String,Map<String,String>> configurations)
Tests to see if Kerberos is enabled for this service using the Kerberos enabled test metadata
and the supplied configurations map.
|
void |
setCredentialStoreEnabled(boolean credentialStoreEnabled)
Set a true or false value specifying whether this
service is to be enabled for credential store use.
|
void |
setDesiredRepositoryVersion(RepositoryVersionEntity desiredRepositoryVersion) |
void |
setDesiredState(State state) |
void |
setMaintenanceState(MaintenanceState state)
Sets the maintenance state for the service
|
void |
updateServiceInfo()
Refresh Service info due to current stack
|
String getName()
String getDisplayName()
long getClusterId()
Cluster getCluster()
ServiceComponent getServiceComponent(String componentName) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
Map<String,ServiceComponent> getServiceComponents()
void addServiceComponents(Map<String,ServiceComponent> components) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
void addServiceComponent(ServiceComponent component) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
State getDesiredState()
void setDesiredState(State state)
StackId getDesiredStackId()
ServiceResponse convertToResponse()
void debugDump(StringBuilder sb)
ServiceComponent addServiceComponent(String serviceComponentName) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
boolean canBeRemoved()
void deleteAllComponents(DeleteHostComponentStatusMetaData deleteMetaData)
void deleteServiceComponent(String componentName, DeleteHostComponentStatusMetaData deleteMetaData) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
boolean isClientOnlyService()
void delete(DeleteHostComponentStatusMetaData deleteMetaData)
void setMaintenanceState(MaintenanceState state)
state
- the stateMaintenanceState getMaintenanceState()
boolean isKerberosEnabled()
true
. if it is determined that Kerberos is enabled for this service; false
, otherwiseisKerberosEnabled(Map)
boolean isKerberosEnabled(Map<String,Map<String,String>> configurations)
configurations
- a map of configurations to use for the testtrue
. if it is determined that Kerberos is enabled for this service; false
, otherwiseisKerberosEnabled()
void updateServiceInfo() throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
boolean isCredentialStoreSupported()
boolean isCredentialStoreRequired()
boolean isCredentialStoreEnabled()
void setCredentialStoreEnabled(boolean credentialStoreEnabled)
credentialStoreEnabled
- - true or falseRepositoryVersionEntity getDesiredRepositoryVersion()
void setDesiredRepositoryVersion(RepositoryVersionEntity desiredRepositoryVersion)
desiredRepositoryVersion
- RepositoryVersionState getRepositoryState()
Copyright © 2022 Apache Software Foundation. All rights reserved.