| package com.facebook.thrift.server; |
| import com.facebook.thrift.TProcessor; |
| * Generic interface for a Thrift server. |
| * @author Mark Slee <mcslee@facebook.com> |
| public abstract class TServer { |
| * The options class should be subclassed by particular servers which have |
| * specific options needs, while the general options should live here. |
| public static class Options { |
| protected TProcessor processor_; |
| protected Options options_; |
| * Default constructor, all servers take a processor and some options. |
| protected TServer(TProcessor processor, Options options) { |
| * The run method fires up the server and gets things going. |
| public abstract void run(); |