com.sleepycat.je.rep.impl
Class BinaryNodeStateService

java.lang.Object
  extended by com.sleepycat.je.rep.utilint.ServiceDispatcher.ExecutingService
      extended by com.sleepycat.je.rep.impl.BinaryNodeStateService

public class BinaryNodeStateService
extends ServiceDispatcher.ExecutingService

The service registered by a RepNode to answer the state request. To support the new BinaryStateProtocol, we introduce this new BinaryNodeStateService, it's used by "Ping" command. Note: we can merge the two NodeState services together once we support acitve version updates.


Nested Class Summary
(package private)  class BinaryNodeStateService.NodeStateServiceRunnable
           
 
Field Summary
static String SERVICE_NAME
           
 
Constructor Summary
BinaryNodeStateService(ServiceDispatcher dispatcher, RepNode repNode)
           
 
Method Summary
 Runnable getRunnable(SocketChannel socketChannel)
           
 void shutdown()
           
 
Methods inherited from class com.sleepycat.je.rep.utilint.ServiceDispatcher.ExecutingService
cancel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final String SERVICE_NAME
See Also:
Constant Field Values
Constructor Detail

BinaryNodeStateService

public BinaryNodeStateService(ServiceDispatcher dispatcher,
                              RepNode repNode)
Method Detail

shutdown

public void shutdown()

getRunnable

public Runnable getRunnable(SocketChannel socketChannel)
Specified by:
getRunnable in class ServiceDispatcher.ExecutingService


Copyright (c) 2004-2012 Oracle. All rights reserved.