|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensolaris.os.dtrace.ConsumerAdapter
public abstract class ConsumerAdapter
An abstract adapter class for getting events from a Consumer.
The methods in this class are empty except for a few that implement
the default behavior of terminating a consumer by throwing an
exception. This class exists as a convenience for implementing
consumer listeners.
Consumer.addConsumerListener(ConsumerListener l)| Constructor Summary | |
|---|---|
ConsumerAdapter()
|
|
| Method Summary | |
|---|---|
void |
consumerStarted(ConsumerEvent e)
Empty method |
void |
consumerStopped(ConsumerEvent e)
Empty method |
void |
dataDropped(DropEvent e)
Terminates a running Consumer by throwing an exception. |
void |
dataReceived(DataEvent e)
Empty method |
void |
errorEncountered(ErrorEvent e)
Terminates a running Consumer by throwing an exception. |
void |
intervalBegan(ConsumerEvent e)
Empty method |
void |
intervalEnded(ConsumerEvent e)
Empty method |
void |
processStateChanged(ProcessEvent e)
Empty method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsumerAdapter()
| Method Detail |
|---|
public void dataReceived(DataEvent e)
throws ConsumerException
dataReceived in interface ConsumerListenerConsumerException - if the implementation should terminate
the running consumer
public void dataDropped(DropEvent e)
throws ConsumerException
Consumer by throwing an exception.
dataDropped in interface ConsumerListenerConsumerException
public void errorEncountered(ErrorEvent e)
throws ConsumerException
Consumer by throwing an exception.
errorEncountered in interface ConsumerListenerConsumerException
public void processStateChanged(ProcessEvent e)
throws ConsumerException
processStateChanged in interface ConsumerListenerConsumerException - if the implementation should terminate
the running consumerConsumer.createProcess(String command),
Consumer.grabProcess(int pid)public void consumerStarted(ConsumerEvent e)
consumerStarted in interface ConsumerListenerConsumerListener.consumerStopped(ConsumerEvent e)public void consumerStopped(ConsumerEvent e)
consumerStopped in interface ConsumerListenerConsumerListener.consumerStarted(ConsumerEvent e)public void intervalBegan(ConsumerEvent e)
intervalBegan in interface ConsumerListenerConsumerListener.intervalEnded(ConsumerEvent e)public void intervalEnded(ConsumerEvent e)
intervalEnded in interface ConsumerListenerConsumerListener.intervalBegan(ConsumerEvent e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||