public class NamedClusterManager extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String clusterName,
org.pentaho.metastore.api.IMetaStore metastore)
This method checks if the NamedCluster exists in the metastore
|
void |
create(NamedCluster 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
|
NamedCluster |
getClusterTemplate()
This method returns the named cluster template used to configure new NamedClusters.
|
static NamedClusterManager |
getInstance() |
List<NamedCluster> |
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
|
NamedCluster |
read(String clusterName,
org.pentaho.metastore.api.IMetaStore metastore)
Reads a NamedCluster from the provided IMetaStore
|
void |
setClusterTemplate(NamedCluster clusterTemplate)
This method will set the cluster template used when creating new NamedClusters
|
void |
update(NamedCluster namedCluster,
org.pentaho.metastore.api.IMetaStore metastore)
Updates a NamedCluster in the provided IMetaStore
|
public static NamedClusterManager getInstance()
public NamedCluster getClusterTemplate()
public void setClusterTemplate(NamedCluster clusterTemplate)
clusterTemplate
- the NamedCluster template to setpublic void create(NamedCluster 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
public NamedCluster 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
public void update(NamedCluster 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
public 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
public List<NamedCluster> 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
public 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
public 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