Class SQLPERF.Buffer
- All Implemented Interfaces:
AutoCloseable, Iterable<SQLPERF>, NativeResource, Pointer
- Enclosing class:
SQLPERF
public static class SQLPERF.Buffer
extends StructBuffer<SQLPERF, SQLPERF.Buffer>
implements NativeResource
An array of
SQLPERF structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newSQLPERF.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptiondoubleAvgCursorSize(double value) Sets the specified value to theAvgCursorSizefield.doubleAvgCursorUsed(double value) Sets the specified value to theAvgCursorUsedfield.doubleAvgFetchTime(double value) Sets the specified value to theAvgFetchTimefield.doubleAvgTimeOpened(double value) Sets the specified value to theAvgTimeOpenedfield.intBuffersRec(int value) Sets the specified value to theBuffersRecfield.intBuffersSent(int value) Sets the specified value to theBuffersSentfield.intBytesRec()BytesRec(int value) Sets the specified value to theBytesRecfield.intBytesSent(int value) Sets the specified value to theBytesSentfield.intCurrentConnectionCount(int value) Sets the specified value to theCurrentConnectionCountfield.intCurrentStmtCount(int value) Sets the specified value to theCurrentStmtCountfield.intCursorOpens(int value) Sets the specified value to theCursorOpensfield.intCursorSize(int value) Sets the specified value to theCursorSizefield.intCursorUsed(int value) Sets the specified value to theCursorUsedfield.intExecDirects(int value) Sets the specified value to theExecDirectsfield.intMaxConnectionsOpened(int value) Sets the specified value to theMaxConnectionsOpenedfield.intMaxOpenStmt(int value) Sets the specified value to theMaxOpenStmtfield.intmsExecutionTime(int value) Sets the specified value to themsExecutionTimefield.intmsNetWorkServerTime(int value) Sets the specified value to themsNetWorkServerTimefield.doublePercentCursorUsed(double value) Sets the specified value to thePercentCursorUsedfield.intServerRndTrips(int value) Sets the specified value to theServerRndTripsfield.intSQLExecutes(int value) Sets the specified value to theSQLExecutesfield.intSQLFetchCount(int value) Sets the specified value to theSQLFetchCountfield.intSQLFetchTime(int value) Sets the specified value to theSQLFetchTimefield.intSQLidu()SQLidu(int value) Sets the specified value to theSQLidufield.intSQLiduRows(int value) Sets the specified value to theSQLiduRowsfield.intSQLPrepares(int value) Sets the specified value to theSQLPreparesfield.intSQLSelectRows(int value) Sets the specified value to theSQLSelectRowsfield.intSQLSelects(int value) Sets the specified value to theSQLSelectsfield.intSumConnectionsOpened(int value) Sets the specified value to theSumConnectionsOpenedfield.intSumConnectiontime(int value) Sets the specified value to theSumConnectiontimefield.intSumOpenStmt(int value) Sets the specified value to theSumOpenStmtfield.intTimerResolution(int value) Sets the specified value to theTimerResolutionfield.intTransactions(int value) Sets the specified value to theTransactionsfield.Methods inherited from class StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class Pointer.Default
equals, hashCodeMethods inherited from interface NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSQLPERF.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
SQLPERF.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
TimerResolution
- Returns:
- the value of the
TimerResolutionfield.
-
SQLidu
- Returns:
- the value of the
SQLidufield.
-
SQLiduRows
- Returns:
- the value of the
SQLiduRowsfield.
-
SQLSelects
- Returns:
- the value of the
SQLSelectsfield.
-
SQLSelectRows
- Returns:
- the value of the
SQLSelectRowsfield.
-
Transactions
- Returns:
- the value of the
Transactionsfield.
-
SQLPrepares
- Returns:
- the value of the
SQLPreparesfield.
-
ExecDirects
- Returns:
- the value of the
ExecDirectsfield.
-
SQLExecutes
- Returns:
- the value of the
SQLExecutesfield.
-
CursorOpens
- Returns:
- the value of the
CursorOpensfield.
-
CursorSize
- Returns:
- the value of the
CursorSizefield.
-
CursorUsed
- Returns:
- the value of the
CursorUsedfield.
-
PercentCursorUsed
- Returns:
- the value of the
PercentCursorUsedfield.
-
AvgFetchTime
- Returns:
- the value of the
AvgFetchTimefield.
-
AvgCursorSize
- Returns:
- the value of the
AvgCursorSizefield.
-
AvgCursorUsed
- Returns:
- the value of the
AvgCursorUsedfield.
-
SQLFetchTime
- Returns:
- the value of the
SQLFetchTimefield.
-
SQLFetchCount
- Returns:
- the value of the
SQLFetchCountfield.
-
CurrentStmtCount
- Returns:
- the value of the
CurrentStmtCountfield.
-
MaxOpenStmt
- Returns:
- the value of the
MaxOpenStmtfield.
-
SumOpenStmt
- Returns:
- the value of the
SumOpenStmtfield.
-
CurrentConnectionCount
- Returns:
- the value of the
CurrentConnectionCountfield.
-
MaxConnectionsOpened
- Returns:
- the value of the
MaxConnectionsOpenedfield.
-
SumConnectionsOpened
- Returns:
- the value of the
SumConnectionsOpenedfield.
-
SumConnectiontime
- Returns:
- the value of the
SumConnectiontimefield.
-
AvgTimeOpened
- Returns:
- the value of the
AvgTimeOpenedfield.
-
ServerRndTrips
- Returns:
- the value of the
ServerRndTripsfield.
-
BuffersSent
- Returns:
- the value of the
BuffersSentfield.
-
BuffersRec
- Returns:
- the value of the
BuffersRecfield.
-
BytesSent
- Returns:
- the value of the
BytesSentfield.
-
BytesRec
- Returns:
- the value of the
BytesRecfield.
-
msExecutionTime
- Returns:
- the value of the
msExecutionTimefield.
-
msNetWorkServerTime
- Returns:
- the value of the
msNetWorkServerTimefield.
-
TimerResolution
Sets the specified value to theTimerResolutionfield. -
SQLidu
Sets the specified value to theSQLidufield. -
SQLiduRows
Sets the specified value to theSQLiduRowsfield. -
SQLSelects
Sets the specified value to theSQLSelectsfield. -
SQLSelectRows
Sets the specified value to theSQLSelectRowsfield. -
Transactions
Sets the specified value to theTransactionsfield. -
SQLPrepares
Sets the specified value to theSQLPreparesfield. -
ExecDirects
Sets the specified value to theExecDirectsfield. -
SQLExecutes
Sets the specified value to theSQLExecutesfield. -
CursorOpens
Sets the specified value to theCursorOpensfield. -
CursorSize
Sets the specified value to theCursorSizefield. -
CursorUsed
Sets the specified value to theCursorUsedfield. -
PercentCursorUsed
Sets the specified value to thePercentCursorUsedfield. -
AvgFetchTime
Sets the specified value to theAvgFetchTimefield. -
AvgCursorSize
Sets the specified value to theAvgCursorSizefield. -
AvgCursorUsed
Sets the specified value to theAvgCursorUsedfield. -
SQLFetchTime
Sets the specified value to theSQLFetchTimefield. -
SQLFetchCount
Sets the specified value to theSQLFetchCountfield. -
CurrentStmtCount
Sets the specified value to theCurrentStmtCountfield. -
MaxOpenStmt
Sets the specified value to theMaxOpenStmtfield. -
SumOpenStmt
Sets the specified value to theSumOpenStmtfield. -
CurrentConnectionCount
Sets the specified value to theCurrentConnectionCountfield. -
MaxConnectionsOpened
Sets the specified value to theMaxConnectionsOpenedfield. -
SumConnectionsOpened
Sets the specified value to theSumConnectionsOpenedfield. -
SumConnectiontime
Sets the specified value to theSumConnectiontimefield. -
AvgTimeOpened
Sets the specified value to theAvgTimeOpenedfield. -
ServerRndTrips
Sets the specified value to theServerRndTripsfield. -
BuffersSent
Sets the specified value to theBuffersSentfield. -
BuffersRec
Sets the specified value to theBuffersRecfield. -
BytesSent
Sets the specified value to theBytesSentfield. -
BytesRec
Sets the specified value to theBytesRecfield. -
msExecutionTime
Sets the specified value to themsExecutionTimefield. -
msNetWorkServerTime
Sets the specified value to themsNetWorkServerTimefield.
-