Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
65e96e52
Commit
65e96e52
authored
Jan 10, 2005
by
jon@gigan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation edits/fixes/cleanup for Alcatel docs.
parent
98c3fa66
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
169 additions
and
164 deletions
+169
-164
ndb/include/mgmapi/mgmapi.h
ndb/include/mgmapi/mgmapi.h
+131
-130
ndb/include/ndbapi/Ndb.hpp
ndb/include/ndbapi/Ndb.hpp
+16
-15
ndb/include/ndbapi/ndb_cluster_connection.hpp
ndb/include/ndbapi/ndb_cluster_connection.hpp
+22
-19
No files found.
ndb/include/mgmapi/mgmapi.h
View file @
65e96e52
This diff is collapsed.
Click to expand it.
ndb/include/ndbapi/Ndb.hpp
View file @
65e96e52
...
@@ -51,20 +51,20 @@
...
@@ -51,20 +51,20 @@
The procedure for using transactions is as follows:
The procedure for using transactions is as follows:
-# Start transaction (instantiate an NdbTransaction object)
-# Start transaction (instantiate an NdbTransaction object)
-# Add and define operations associated with the transaction using the
-# Add and define operations associated with the transaction using
instances of one or more of
the
NdbOperation, NdbScanOperation, NdbIndexOperation, and NdbIndexScanOperation classes
.
NdbOperation, NdbScanOperation, NdbIndexOperation, and NdbIndexScanOperation classes
-# Execute transaction
-# Execute transaction
(call NdbTransaction::execute())
The
execu
tion can be of two different types,
The
opera
tion can be of two different types,
<var>Commit</var> or <var>NoCommit</var>.
<var>Commit</var> or <var>NoCommit</var>.
If the
execu
tion is of type <var>NoCommit</var>,
If the
opera
tion is of type <var>NoCommit</var>,
then the application program executes part of a transaction,
then the application program executes
the operation
part of a transaction,
but without actually committing the transaction.
but without actually committing the transaction.
After executing a <var>NoCommit</var>
transac
tion, the program can continue
After executing a <var>NoCommit</var>
opera
tion, the program can continue
to add and define more operations to the transaction
to add and define more operations to the transaction
for later execution.
for later execution.
If the
execute
is of type <var>Commit</var>, then the transaction is
If the
operation
is of type <var>Commit</var>, then the transaction is
immediately committed. The transaction <em>must</em> be closed after it has been
immediately committed. The transaction <em>must</em> be closed after it has been
commited (event if commit fails), and no further addition or definition of
commited (event if commit fails), and no further addition or definition of
operations for this transaction is allowed.
operations for this transaction is allowed.
...
@@ -78,15 +78,16 @@
...
@@ -78,15 +78,16 @@
(typically created using Ndb::startTransaction()).
(typically created using Ndb::startTransaction()).
At this point, the transaction is only being defined,
At this point, the transaction is only being defined,
and is not yet sent to the NDB kernel.
and is not yet sent to the NDB kernel.
-# Define operations and add them to the transaction, using
-# Define operations and add them to the transaction, using one or more of
NdbTransaction::getNdbOperation(),
- NdbTransaction::getNdbOperation()
NdbTransaction::getNdbScanOperation(),
- NdbTransaction::getNdbScanOperation()
NdbTransaction::getNdbIndexOperation(), or
- NdbTransaction::getNdbIndexOperation()
NdbTransaction::getNdbIndexScanOperation(),
- NdbTransaction::getNdbIndexScanOperation()
and methods of the respective NdbOperation class.
along with the appropriate methods of the respective NdbOperation class
(or one possiblt one or more of its subclasses).
Note that the transaction has still not yet been sent to the NDB kernel.
Note that the transaction has still not yet been sent to the NDB kernel.
-# Execute the transaction, using the NdbTransaction::execute() method.
-# Execute the transaction, using the NdbTransaction::execute() method.
-# Close the transaction (
using
Ndb::closeTransaction()).
-# Close the transaction (
call
Ndb::closeTransaction()).
For an example of this process, see the program listing in
For an example of this process, see the program listing in
@ref ndbapi_simple.cpp.
@ref ndbapi_simple.cpp.
...
...
ndb/include/ndbapi/ndb_cluster_connection.hpp
View file @
65e96e52
...
@@ -20,14 +20,14 @@
...
@@ -20,14 +20,14 @@
/**
/**
* @class Ndb_cluster_connection
* @class Ndb_cluster_connection
* @brief Represents a connection to a cluster of storage nodes
* @brief Represents a connection to a cluster of storage nodes
.
*
*
* A
lways start your application program by creating
a
* A
ny NDB application program should begin with the creation of
a
*
Ndb_cluster_connection object. Your application should contain
*
single Ndb_cluster_connection object, and should make use of one
*
only one Ndb_cluster_connection. Your
application connects to
*
and only one Ndb_cluster_connection. The
application connects to
* a cluster management server when
method connect()
is called.
* a cluster management server when
this object's connect() method
is called.
*
With the method wait_until_ready()
it is possible to wait
*
By using the wait_until_ready() method
it is possible to wait
* for the connection to
one or several
storage nodes.
* for the connection to
reach one or more
storage nodes.
*/
*/
class
Ndb_cluster_connection
{
class
Ndb_cluster_connection
{
public:
public:
...
@@ -43,16 +43,19 @@ public:
...
@@ -43,16 +43,19 @@ public:
/**
/**
* Connect to a cluster management server
* Connect to a cluster management server
*
*
* @param no_retries specifies the number of retries to perform
* @param no_retries specifies the number of retries to attempt
* if the connect fails, negative number results in infinite
* in the event of connection failure; a negative value
* number of retries
* will result in the attempt to connect being repeated
* indefinitely
*
* @param retry_delay_in_seconds specifies how often retries should
* @param retry_delay_in_seconds specifies how often retries should
* be performed
* be performed
* @param verbose specifies if the method should print progess
*
*
* @return 0 if success,
* @param verbose specifies if the method should print a report of its progess
* 1 if retriable error,
*
* -1 if non-retriable error
* @return 0 = success,
* 1 = recoverable error,
* -1 = non-recoverable error
*/
*/
int
connect
(
int
no_retries
=
0
,
int
retry_delay_in_seconds
=
1
,
int
verbose
=
0
);
int
connect
(
int
no_retries
=
0
,
int
retry_delay_in_seconds
=
1
,
int
verbose
=
0
);
...
@@ -61,15 +64,15 @@ public:
...
@@ -61,15 +64,15 @@ public:
#endif
#endif
/**
/**
* Wait until
one or several storage nodes are connected
* Wait until
the requested connection with one or more storage nodes is successful
*
*
* @param time_out_for_first_alive number of seconds to wait until
* @param time_out_for_first_alive number of seconds to wait until
* first
a
live node is detected
* first live node is detected
* @param timeout_after_first_alive number of seconds to wait after
* @param timeout_after_first_alive number of seconds to wait after
* first
a
live node is detected
* first live node is detected
*
*
* @return
0 all nodes a
live,
* @return
= 0 all nodes
live,
* > 0 at least one node
a
live,
* > 0 at least one node live,
* < 0 error
* < 0 error
*/
*/
int
wait_until_ready
(
int
timeout_for_first_alive
,
int
wait_until_ready
(
int
timeout_for_first_alive
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment