|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.resources.ResourceEvents
public class ResourceEvents
Class encapsulates reporting API for resource (index and store files) events.
Resource consumption events include
Journal.overflow()
is handled by creating a new Journal and evicting data from the old
Journal asynchronously onto read-optimized IndexSegments.
Other resource consumption events deal directly with transactions
Latency events include
CounterSets which allow us
to report statistics regarding classes of events.
MDC to put metadata into the logging context {thread, host,
dataService, global index name, local index name (includes the index
partition), etc}.| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
Logger. |
| Constructor Summary | |
|---|---|
ResourceEvents()
|
|
| Method Summary | |
|---|---|
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 |
closeUnisolatedBTree(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 |
dropUnisolatedBTree(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 |
openUnisolatedBTree(String name)
Report opening of a mutable unisolated named index on an IJournal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public ResourceEvents()
| Method Detail |
|---|
public static void openUnisolatedBTree(String name)
IJournal.
name - The index name.public static void closeUnisolatedBTree(String name)
IJournal.
name - The index name.AbstractBTree.reopen().public static void dropUnisolatedBTree(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.TemporaryRawStore. This means
that the resources allocated to a transaction vs the unisolated
indices on a journal can not be differentiated.public static void closeJournal(String filename)
IJournal resource.
filename - The filename or null iff the journal was not backed by a file.public static void deleteJournal(String filename)
IJournal resource.
filename - The filename or null iff the journal was not backed by a file.MasterJournal).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||