org.codehaus.gpars

groovyx.gpars.dataflow.operator.component
[Java] Interface OperatorStateMonitor


public interface OperatorStateMonitor

Used by GracefulShutdownListeners. Not intended for public use.

Authors:
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

registerProcessorListener

public 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


stateChanged

public void stateChanged()
Invoked whenever a processor changes state


 

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