public interface GridMetadata
extends java.lang.AutoCloseable
To create a GridMetadata object, call
Connection.getGridMetadata.
A program that creates a grid metadata object should explicitly call
GridMetadata.destroy to reclaim its resources.
Since Version 4.10: Whenever a GridMetadata that did not have its
GridMetadata.destroy method called is garbage collected, the
native resources will be reclaimed automatically. This behavior is controlled by the
com.tibco.tibdg.autoclose System Property. If the property is not set or set to "cleanup"
(the default), the native resources will be reclaimed as if the
GridMetadata.destroy method had been called. If the System Property is
set to "warn", a warning will be printed to stderr instead of doing the cleanup.
If the property is set to "inactive", this feature will not be activated.
This interface is implemented internally. Applications do not implement this interface.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TIBDG_GRIDMETADATA_PROPERTY_STRING_CHECKPOINT_NAME
Property name for specifying checkpoint used to retrieve metadata;
string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
destroy()
Destroy a grid metadata object.
|
java.lang.String |
getGridName()
Get the name of the data grid.
|
TableMetadata |
getTableMetadata(java.lang.String tableName)
Get a table metadata object by its table name.
|
TableMetadata[] |
getTableMetadataArray()
Get all the table metadata objects in the grid metadata.
|
java.lang.String[] |
getTableNames()
Get the names of the tables in the data grid.
|
java.lang.String |
getVersion()
Get the data grid's product version string.
|
static final java.lang.String TIBDG_GRIDMETADATA_PROPERTY_STRING_CHECKPOINT_NAME
Supply this property to Connection.getGridMetadata.
java.lang.String getVersion()
throws DataGridException
This will be the product version associated with the proxy that returned the data grid metadata.
DataGridException - in case of failuresjava.lang.String getGridName()
throws DataGridException
DataGridException - in case of failuresjava.lang.String[] getTableNames()
throws DataGridException
DataGridException - in case of failuresTableMetadata getTableMetadata(java.lang.String tableName) throws DataGridException
tableName - The name of the table to get the metadata.DataGridException - in case of failuresTableMetadata[] getTableMetadataArray() throws DataGridException
DataGridException - in case of failuresvoid destroy()
throws DataGridException
Release all resources associated with this data grid metadata object.
Note that destroying a data grid metadata object invalidates all objects accessed from it. Do not rely on information retrieved from the data grid metadata object after it is destroyed. Such information must instead be copied before destroying the metadata object.
DataGridException - in case of failuresvoid close()
throws DataGridException
close in interface java.lang.AutoCloseableDataGridException