public interface ServiceFactory
| Modifier and Type | Method and Description |
|---|---|
Service |
createExisting(Cluster cluster,
ClusterServiceEntity serviceEntity)
Creates an in-memory representation of a service from an existing database
object.
|
Service |
createNew(Cluster cluster,
String serviceName,
RepositoryVersionEntity desiredRepositoryVersion)
Creates a new service in memory and then persists it to the database.
|
Service createNew(Cluster cluster, String serviceName, RepositoryVersionEntity desiredRepositoryVersion)
cluster - the cluster the service is for (not {@code null).serviceName - the name of the service (not {@code null).desiredRepositoryVersion - the repository version of the service (not {@code null).Service createExisting(Cluster cluster, ClusterServiceEntity serviceEntity)
cluster - the cluster the service is installed in (not {@code null).serviceEntity - the entity the existing database entry (not {@code null).Copyright © 2022 Apache Software Foundation. All rights reserved.