com.sleepycat.je.rep.utilint
Class ServiceDispatcher.ExecutingRunnable

java.lang.Object
  extended by com.sleepycat.je.rep.utilint.ServiceDispatcher.ExecutingRunnable
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
GroupService.GroupServiceRunnable, MonitorService.MonitorServiceRunnable, NodeStateService.NodeStateServiceRunnable
Enclosing class:
ServiceDispatcher

public abstract static class ServiceDispatcher.ExecutingRunnable
extends Object
implements Runnable


Field Summary
protected  SocketChannel channel
           
protected  boolean expectResponse
           
protected  TextProtocol protocol
           
 
Constructor Summary
ServiceDispatcher.ExecutingRunnable(SocketChannel channel, TextProtocol protocol, boolean expectResponse)
           
 
Method Summary
protected abstract  TextProtocol.ResponseMessage getResponse(TextProtocol.RequestMessage request)
           
protected abstract  void logMessage(String message)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channel

protected final SocketChannel channel

protocol

protected final TextProtocol protocol

expectResponse

protected final boolean expectResponse
Constructor Detail

ServiceDispatcher.ExecutingRunnable

public ServiceDispatcher.ExecutingRunnable(SocketChannel channel,
                                           TextProtocol protocol,
                                           boolean expectResponse)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

getResponse

protected abstract TextProtocol.ResponseMessage getResponse(TextProtocol.RequestMessage request)
                                                     throws IOException
Throws:
IOException

logMessage

protected abstract void logMessage(String message)


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