|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensolaris.os.dtrace.Drop
public final class Drop
Detail about one or more records dropped by DTrace (not reported to
ConsumerListener.dataReceived()) due to inadequte buffer space.
Immutable. Supports persistence using XMLEncoder.
ConsumerListener.dataDropped(DropEvent e),
Serialized Form| Nested Class Summary | |
|---|---|
static class |
Drop.Kind
Indicates what kind of buffer space experienced the data drop (such as principal buffer or aggregation buffer) and possibly a reason. |
| Constructor Summary | |
|---|---|
Drop(int dropCPU,
java.lang.String dropKindName,
long dropCount,
long totalDrops,
java.lang.String defaultDropMessage)
Creates a Drop instance with the given CPU, drop kind,
drop counts, and default message. |
|
| Method Summary | |
|---|---|
long |
getCount()
Gets the number of drops reported by this Drop instance. |
int |
getCPU()
Gets the CPU where the drops occurred. |
java.lang.String |
getDefaultMessage()
Gets the message provided by DTrace. |
Drop.Kind |
getKind()
Gets the kind of drop for all drops included in getCount(). |
long |
getTotal()
Gets the total number of drops since the source Consumer
started running. |
java.lang.String |
toString()
Gets a string representation of this drop instance, not intended for display. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Drop(int dropCPU,
java.lang.String dropKindName,
long dropCount,
long totalDrops,
java.lang.String defaultDropMessage)
Drop instance with the given CPU, drop kind,
drop counts, and default message. Supports XML persistence.
dropCPU - cpu where drops occurreddropKindName - name of enumeration value indicating the kind
of buffer space where the drop occurred and possibly a reasondropCount - number of dropstotalDrops - total number of drops since the source Consumer started runningdefaultDropMessage - drop message provided by DTrace
java.lang.IllegalArgumentException - if there is no Drop.Kind
value with the given name or if dropCount or totalDrops is negative
java.lang.NullPointerException - if the given Drop.Kind name
or default message is null| Method Detail |
|---|
public int getCPU()
public Drop.Kind getKind()
getCount().
public long getCount()
Drop instance.
public long getTotal()
Consumer
started running.
public java.lang.String getDefaultMessage()
public java.lang.String toString()
class-name[property1 = value1, property2 = value2]
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||