use of com.hortonworks.registries.storage.StorableKey in project streamline by hortonworks.
the class EnvironmentService method removeCluster.
public Cluster removeCluster(Long clusterId) {
Cluster cluster = new Cluster();
cluster.setId(clusterId);
return dao.remove(new StorableKey(CLUSTER_NAMESPACE, cluster.getPrimaryKey()));
}
use of com.hortonworks.registries.storage.StorableKey in project streamline by hortonworks.
the class EnvironmentService method removeNamespace.
public Namespace removeNamespace(Long namespaceId) {
assertEnvironmentIsNotInternal(namespaceId);
Namespace namespace = new Namespace();
namespace.setId(namespaceId);
Namespace ret = this.dao.remove(new StorableKey(NAMESPACE_NAMESPACE, namespace.getPrimaryKey()));
invalidateTopologyActionsMetricsInstances(namespaceId);
return ret;
}
use of com.hortonworks.registries.storage.StorableKey in project streamline by hortonworks.
the class EnvironmentService method getCluster.
public Cluster getCluster(Long clusterId) {
Cluster cluster = new Cluster();
cluster.setId(clusterId);
return this.dao.get(new StorableKey(CLUSTER_NAMESPACE, cluster.getPrimaryKey()));
}
use of com.hortonworks.registries.storage.StorableKey in project streamline by hortonworks.
the class EnvironmentService method getServiceConfiguration.
public ServiceConfiguration getServiceConfiguration(Long configurationId) {
ServiceConfiguration serviceConfiguration = new ServiceConfiguration();
serviceConfiguration.setId(configurationId);
return this.dao.get(new StorableKey(SERVICE_CONFIGURATION_NAMESPACE, serviceConfiguration.getPrimaryKey()));
}
use of com.hortonworks.registries.storage.StorableKey in project streamline by hortonworks.
the class EnvironmentService method getService.
public Service getService(Long serviceId) {
Service service = new Service();
service.setId(serviceId);
return this.dao.get(new StorableKey(SERVICE_NAMESPACE, service.getPrimaryKey()));
}
Aggregations