com.sleepycat.je.rep.impl
Class NodeStateService

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

public class NodeStateService
extends ServiceDispatcher.ExecutingService

The service registered by a RepNode to answer the state request from another node. It can also be extended to be used by "Ping" command.


Nested Class Summary
(package private)  class NodeStateService.NodeStateServiceRunnable
           
 
Field Summary
static String SERVICE_NAME
           
 
Constructor Summary
NodeStateService(ServiceDispatcher dispatcher, RepNode repNode)
           
 
Method Summary
 Runnable getRunnable(SocketChannel socketChannel)
           
 TextProtocol.ResponseMessage process(NodeStateProtocol.NodeStateRequest stateRequest)
          Process a node state querying request.
 
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

NodeStateService

public NodeStateService(ServiceDispatcher dispatcher,
                        RepNode repNode)
Method Detail

process

public TextProtocol.ResponseMessage process(NodeStateProtocol.NodeStateRequest stateRequest)
Process a node state querying request.


getRunnable

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


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