public interface NamedClusterServiceOsgi
Modifier and Type | Method and Description |
---|---|
void |
close(org.pentaho.metastore.api.IMetaStore metastore)
If the metastore object temporary and should not be kept active indefinitely, this method will release all
resources associated with the metastore.
|
boolean |
contains(String clusterName,
org.pentaho.metastore.api.IMetaStore metastore)
This method checks if the NamedCluster exists in the metastore
|
void |
create(NamedClusterOsgi namedCluster,
org.pentaho.metastore.api.IMetaStore metastore)
Saves a named cluster in the provided IMetaStore
|
void |
delete(String clusterName,
org.pentaho.metastore.api.IMetaStore metastore)
Deletes a NamedCluster from the provided IMetaStore
|
NamedClusterOsgi |
getClusterTemplate()
This method returns the named cluster template used to configure new NamedClusters.
|
NamedClusterOsgi |
getNamedClusterByName(String namedCluster,
org.pentaho.metastore.api.IMetaStore metastore) |
Map<String,Object> |
getProperties()
This method load the properties for named cluster from /etc/config folder
|
List<NamedClusterOsgi> |
list(org.pentaho.metastore.api.IMetaStore metastore)
This method lists the NamedCluster in the given IMetaStore
|
List<String> |
listNames(org.pentaho.metastore.api.IMetaStore metastore)
This method returns the list of NamedCluster names in the IMetaStore
|
NamedClusterOsgi |
read(String clusterName,
org.pentaho.metastore.api.IMetaStore metastore)
Reads a NamedCluster from the provided IMetaStore
|
void |
setClusterTemplate(NamedClusterOsgi clusterTemplate)
This method will set the cluster template used when creating new NamedClusters
|
void |
update(NamedClusterOsgi namedCluster,
org.pentaho.metastore.api.IMetaStore metastore)
Updates a NamedCluster in the provided IMetaStore
|
NamedClusterOsgi getClusterTemplate()
void setClusterTemplate(NamedClusterOsgi clusterTemplate)
clusterTemplate
- the NamedCluster template to setvoid create(NamedClusterOsgi namedCluster, org.pentaho.metastore.api.IMetaStore metastore) throws org.pentaho.metastore.api.exceptions.MetaStoreException
namedCluster
- the NamedCluster to savemetastore
- the IMetaStore to operate withorg.pentaho.metastore.api.exceptions.MetaStoreException
NamedClusterOsgi read(String clusterName, org.pentaho.metastore.api.IMetaStore metastore) throws org.pentaho.metastore.api.exceptions.MetaStoreException
clusterName
- the name of the NamedCluster to loadmetastore
- the IMetaStore to operate withorg.pentaho.metastore.api.exceptions.MetaStoreException
void update(NamedClusterOsgi namedCluster, org.pentaho.metastore.api.IMetaStore metastore) throws org.pentaho.metastore.api.exceptions.MetaStoreException
namedCluster
- the NamedCluster to updatemetastore
- the IMetaStore to operate withorg.pentaho.metastore.api.exceptions.MetaStoreException
void delete(String clusterName, org.pentaho.metastore.api.IMetaStore metastore) throws org.pentaho.metastore.api.exceptions.MetaStoreException
clusterName
- the NamedCluster to deletemetastore
- the IMetaStore to operate withorg.pentaho.metastore.api.exceptions.MetaStoreException
List<NamedClusterOsgi> list(org.pentaho.metastore.api.IMetaStore metastore) throws org.pentaho.metastore.api.exceptions.MetaStoreException
metastore
- the IMetaStore to operate withorg.pentaho.metastore.api.exceptions.MetaStoreException
List<String> listNames(org.pentaho.metastore.api.IMetaStore metastore) throws org.pentaho.metastore.api.exceptions.MetaStoreException
metastore
- the IMetaStore to operate withorg.pentaho.metastore.api.exceptions.MetaStoreException
boolean contains(String clusterName, org.pentaho.metastore.api.IMetaStore metastore) throws org.pentaho.metastore.api.exceptions.MetaStoreException
clusterName
- the name of the NamedCluster to checkmetastore
- the IMetaStore to operate withorg.pentaho.metastore.api.exceptions.MetaStoreException
NamedClusterOsgi getNamedClusterByName(String namedCluster, org.pentaho.metastore.api.IMetaStore metastore)
Map<String,Object> getProperties()
void close(org.pentaho.metastore.api.IMetaStore metastore)
metastore
- the IMetaStore being disposed.Copyright © 2018 Hitachi Vantara. All rights reserved.