groovyx.gpars.dataflow.operator.component
Interface OperatorStateMonitor

All Known Implementing Classes:
GracefulShutdownMonitor

public interface OperatorStateMonitor

Used by GracefulShutdownListeners. Not intended for public use.

Author:
Vaclav Pech

Method Summary
 void registerProcessorListener(GracefulShutdownListener listener)
          Invoked by GracefulShutdownListeners, which listen on operators/selectors for lifecycle events, to get registered with the monitor.
 void stateChanged()
          Invoked whenever a processor changes state
 

Method Detail

stateChanged

void stateChanged()
Invoked whenever a processor changes state


registerProcessorListener

void registerProcessorListener(GracefulShutdownListener listener)
Invoked by GracefulShutdownListeners, which listen on operators/selectors for lifecycle events, to get registered with the monitor. The monitor will query these registered listeners about their respective operator/selector state when performing graceful shutdown.

Parameters:
listener - The listener to register

Copyright © 2008–2012 Václav Pech. All Rights Reserved.