TIBCO ActiveSpaces®
|
Applications use a connection object to create sessions. More...
Typedefs | |
typedef struct __tibdgConnectionId * | tibdgConnection |
The connection object provides access to a data grid. More... | |
Functions | |
TIBDG_API void | tibdgConnection_Close (tibEx e, tibdgConnection conn) |
Close a connection object. More... | |
TIBDG_API tibdgSession | tibdgConnection_CreateSession (tibEx e, tibdgConnection conn, tibProperties props) |
Create a session object to perform operations. More... | |
TIBDG_API tibdgGridMetadata | tibdgConnection_GetGridMetadata (tibEx e, tibdgConnection conn, tibProperties props) |
Retrieve the current data grid metadata in an object. More... | |
TIBDG_API tibdgConnection | tibdgGrid_Connect (tibEx e, const char *URL, const char *gridName, tibProperties props) |
Create a connection object. More... | |
Applications use a connection object to create sessions.
typedef struct __tibdgConnectionId* tibdgConnection |
The connection object provides access to a data grid.
The connection object creates or opens all resources associated with a given data grid.
A program that creates a connection must explicitly call tibdgConnection_Close to reclaim its resources.Connection object type.
TIBDG_API void tibdgConnection_Close | ( | tibEx | e, |
tibdgConnection | conn | ||
) |
Close a connection object.
Releases all resources associated with this connection object.
Note that all resources created or opened by this object are invalidated by this call. These resources should be destroyed or closed before closing this connection.
e | The exception object captures information about failures. |
conn | The connection to be destroyed. |
TIBDG_API tibdgSession tibdgConnection_CreateSession | ( | tibEx | e, |
tibdgConnection | conn, | ||
tibProperties | props | ||
) |
Create a session object to perform operations.
A session object provides the context for a thread of operations involving data grid resources.
The session object is NOT thread-safe. Do not invoke multiple operations on a single session using more than one thread. Behavior is not defined if this happens.
e | The exception object captures information about failures. |
conn | The connection on which to create this session. |
props | Optional. NULL to omit. |
NULL
. TIBDG_API tibdgGridMetadata tibdgConnection_GetGridMetadata | ( | tibEx | e, |
tibdgConnection | conn, | ||
tibProperties | props | ||
) |
Retrieve the current data grid metadata in an object.
A grid metadata object contains information about the data grid including name, version, and additional metadata about tables.
The information in a grid metadata object will be current when the request returns and will not be updated after that point.
A grid metadata object must be closed to release internal state and no further access should be made to the grid metadata object or any nested objects after it has been closed.
e | The exception object captures information about failures. |
conn | The connection object used to retrieve the data grid metadata. |
props | Optional. NULL to omit. |
NULL
. TIBDG_API tibdgConnection tibdgGrid_Connect | ( | tibEx | e, |
const char * | URL, | ||
const char * | gridName, | ||
tibProperties | props | ||
) |
Create a connection object.
Applications use a connection object to create sessions.
e | The exception object captures information about failures. |
URL | The URL to use for getting FTL realm server information. |
gridName | The dataGridName identifies the data grid to which this call connects. Passing NULL selects the default data grid (which is named "_default"). |
props | Optional. NULL to omit. |
NULL
.