public class StoreEntryServlet<K extends EntryKey,E extends StoredEntry<K>> extends ServletWithMetricsBase
| Modifier and Type | Field and Description |
|---|---|
protected OperationMetrics |
_deleteMetrics |
protected OperationMetrics |
_getMetrics |
protected com.fasterxml.jackson.databind.ObjectWriter |
_jsonWriter |
protected EntryKeyConverter<K> |
_keyConverter |
protected OperationMetrics |
_putMetrics |
protected StoreHandler<K,E,?> |
_storeHandler |
protected SharedServiceStuff |
_stuff |
_basePath, _clusterView, _timeMaster, LOG| Modifier | Constructor and Description |
|---|---|
|
StoreEntryServlet(SharedServiceStuff stuff,
ClusterViewByServer clusterView,
StoreHandler<K,E,?> storeHandler) |
protected |
StoreEntryServlet(SharedServiceStuff stuff,
ClusterViewByServer clusterView,
StoreHandler<K,E,?> storeHandler,
boolean handleRouting) |
protected |
StoreEntryServlet(StoreEntryServlet<K,E> base,
boolean copyMetrics) |
| Modifier and Type | Method and Description |
|---|---|
protected K |
_findKey(ServletServiceRequest request,
ServletServiceResponse response) |
protected ServletServiceResponse |
_handleDelete(ServletServiceRequest request,
ServletServiceResponse response,
com.fasterxml.storemate.store.util.OperationDiagnostics stats,
K key) |
protected ServletServiceResponse |
_handleGet(ServletServiceRequest request,
ServletServiceResponse response,
com.fasterxml.storemate.store.util.OperationDiagnostics stats,
K key) |
protected ServletServiceResponse |
_handleHead(ServletServiceRequest request,
ServletServiceResponse response,
com.fasterxml.storemate.store.util.OperationDiagnostics stats,
K key) |
protected ServletServiceResponse |
_handlePut(ServletServiceRequest request,
ServletServiceResponse response,
com.fasterxml.storemate.store.util.OperationDiagnostics stats,
K key) |
ServletBase |
createRoutingServlet()
"Mutant factory" method used to create "routing" version of this servlet:
this will basically handle request locally (as t
|
void |
fillOperationMetrics(AllOperationMetrics metrics) |
void |
handleDelete(ServletServiceRequest request,
ServletServiceResponse response,
com.fasterxml.storemate.store.util.OperationDiagnostics stats) |
void |
handleGet(ServletServiceRequest request,
ServletServiceResponse response,
com.fasterxml.storemate.store.util.OperationDiagnostics stats) |
void |
handleHead(ServletServiceRequest request,
ServletServiceResponse response,
com.fasterxml.storemate.store.util.OperationDiagnostics stats) |
void |
handlePost(ServletServiceRequest request,
ServletServiceResponse response,
com.fasterxml.storemate.store.util.OperationDiagnostics stats) |
void |
handlePut(ServletServiceRequest request,
ServletServiceResponse response,
com.fasterxml.storemate.store.util.OperationDiagnostics stats) |
_addStdHeaders, _trimPath, constructMetadata, constructRequest, constructResponse, doDelete, doGet, doHead, doPost, doPut, getClusterViewdoOptions, doTrace, getLastModified, service, serviceprotected final SharedServiceStuff _stuff
protected final StoreHandler<K extends EntryKey,E extends StoredEntry<K>,?> _storeHandler
protected final com.fasterxml.jackson.databind.ObjectWriter _jsonWriter
protected final EntryKeyConverter<K extends EntryKey> _keyConverter
protected final OperationMetrics _getMetrics
protected final OperationMetrics _putMetrics
protected final OperationMetrics _deleteMetrics
public StoreEntryServlet(SharedServiceStuff stuff, ClusterViewByServer clusterView, StoreHandler<K,E,?> storeHandler)
protected StoreEntryServlet(SharedServiceStuff stuff, ClusterViewByServer clusterView, StoreHandler<K,E,?> storeHandler, boolean handleRouting)
protected StoreEntryServlet(StoreEntryServlet<K,E> base, boolean copyMetrics)
public ServletBase createRoutingServlet()
public void fillOperationMetrics(AllOperationMetrics metrics)
fillOperationMetrics in interface AllOperationMetrics.ProviderfillOperationMetrics in class ServletWithMetricsBaseprotected K _findKey(ServletServiceRequest request, ServletServiceResponse response)
public void handleGet(ServletServiceRequest request, ServletServiceResponse response, com.fasterxml.storemate.store.util.OperationDiagnostics stats) throws IOException
handleGet in class ServletBaseIOExceptionpublic void handleHead(ServletServiceRequest request, ServletServiceResponse response, com.fasterxml.storemate.store.util.OperationDiagnostics stats) throws IOException
handleHead in class ServletBaseIOExceptionpublic final void handlePost(ServletServiceRequest request, ServletServiceResponse response, com.fasterxml.storemate.store.util.OperationDiagnostics stats) throws IOException
handlePost in class ServletBaseIOExceptionpublic void handlePut(ServletServiceRequest request, ServletServiceResponse response, com.fasterxml.storemate.store.util.OperationDiagnostics stats) throws IOException
handlePut in class ServletBaseIOExceptionpublic void handleDelete(ServletServiceRequest request, ServletServiceResponse response, com.fasterxml.storemate.store.util.OperationDiagnostics stats) throws IOException
handleDelete in class ServletBaseIOExceptionprotected ServletServiceResponse _handleGet(ServletServiceRequest request, ServletServiceResponse response, com.fasterxml.storemate.store.util.OperationDiagnostics stats, K key) throws IOException
IOExceptionprotected ServletServiceResponse _handleHead(ServletServiceRequest request, ServletServiceResponse response, com.fasterxml.storemate.store.util.OperationDiagnostics stats, K key) throws IOException
IOExceptionprotected ServletServiceResponse _handlePut(ServletServiceRequest request, ServletServiceResponse response, com.fasterxml.storemate.store.util.OperationDiagnostics stats, K key) throws IOException
IOExceptionprotected ServletServiceResponse _handleDelete(ServletServiceRequest request, ServletServiceResponse response, com.fasterxml.storemate.store.util.OperationDiagnostics stats, K key) throws IOException
IOExceptionCopyright © 2012-2014 fasterxml.com. All Rights Reserved.