org.apache.hadoop.hbase.master
Interface RegionServerOperationListener


public interface RegionServerOperationListener

Listener for regionserver events in master.

See Also:
HMaster#registerRegionServerOperationListener(RegionServerOperationListener), HMaster#unregisterRegionServerOperationListener(RegionServerOperationListener)

Method Summary
 boolean process(HServerInfo serverInfo, HMsg incomingMsg)
          Called for each message passed the master.
 boolean process(org.apache.hadoop.hbase.master.RegionServerOperation op)
          Called before processing op
 void processed(org.apache.hadoop.hbase.master.RegionServerOperation op)
          Called after op has been processed.
 

Method Detail

process

boolean process(HServerInfo serverInfo,
                HMsg incomingMsg)
Called for each message passed the master. Most of the messages that come in here will go on to become process(RegionServerOperation)s but others like go no further; only in here can you see them come in.

Parameters:
serverInfo - Server we got the message from.
incomingMsg - The message received.
Returns:
True to continue processing, false to skip.

process

boolean process(org.apache.hadoop.hbase.master.RegionServerOperation op)
                throws IOException
Called before processing op

Parameters:
op -
Returns:
True if we are to proceed w/ processing.
Throws:
IOException

processed

void processed(org.apache.hadoop.hbase.master.RegionServerOperation op)
Called after op has been processed.

Parameters:
op - The operation that just completed.


Copyright © 2010 Apache Software Foundation. All Rights Reserved.