public class ResourceEvents extends Object
Resource consumption events include
Journal.overflow()
is handled by creating a new Journal
and evicting data from the old
Journal
asynchronously onto read-optimized IndexSegment
s.
Other resource consumption events deal directly with transactions
Latency events include
CounterSet
s which allow us
to report statistics regarding classes of events.Constructor and Description |
---|
ResourceEvents() |
Modifier and Type | Method and Description |
---|---|
static void |
closeJournal(String filename)
Report close of an
IJournal resource. |
static void |
closeTx(long tx,
long revisionTime,
boolean aborted)
Report completion of a transaction.
|
static void |
closeUnisolatedIndex(String name)
Report closing of a mutable unisolated named index on an
IJournal . |
static void |
deleteJournal(String filename)
Report deletion of an
IJournal resource. |
static void |
dropUnisolatedIndex(String name)
Report drop of a named unisolated index.
|
static void |
extendJournal(String filename,
long nbytes)
Report the extension of an
IJournal . |
static void |
isolateIndex(long startTime,
String name)
Report the isolation of a named index by a transaction.
|
static void |
openJournal(String filename,
long nbytes,
BufferMode bufferMode)
Report the opening of an
IJournal resource. |
static void |
openTx(long startTime)
Report the start of a new transaction.
|
static void |
openUnisolatedIndex(String name)
Report opening of a mutable unisolated named index on an
IJournal . |
public static void openUnisolatedIndex(String name)
IJournal
.name
- The index name.public static void closeUnisolatedIndex(String name)
IJournal
.name
- The index name.public static void dropUnisolatedIndex(String name)
name
- The index name.public static void openTx(long startTime)
startTime
- Both the transaction identifier and its global start time.level
- The isolation level of the transaction.public static void closeTx(long tx, long revisionTime, boolean aborted)
tx
- The transaction identifier.revisionTime
- The timestamp assigned to the revisions written by the
transactions when it commits (non-zero iff this was a writable
transaction that committed successfully and zero otherwise).aborted
- True iff the transaction aborted vs completing successfully.public static void isolateIndex(long startTime, String name)
startTime
- The transaction identifier.name
- The index name.public static void openJournal(String filename, long nbytes, BufferMode bufferMode)
IJournal
resource.filename
- The filename or null iff the journal was not backed by a file.nbytes
- The total #of bytes available on the journal.bufferMode
- The buffer mode in use by the journal.public static void extendJournal(String filename, long nbytes)
IJournal
.filename
- The filename or null iff the journal was not backed by a file.nbytes
- The total #of bytes available (vs written) on the journal.public static void closeJournal(String filename)
IJournal
resource.filename
- The filename or null iff the journal was not backed by a file.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.