public class RemoteSyncListServlet<K extends EntryKey,E extends StoredEntry<K>> extends ServletWithMetricsBase
| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.ObjectWriter |
_jsonWriter |
protected OperationMetrics |
_listMetrics |
protected String |
_loggedMethodName |
protected SyncHandler<K,E> |
_syncHandler |
protected AtomicBoolean |
_terminated |
_basePath, _clusterView, _timeMaster, LOG| Constructor and Description |
|---|
RemoteSyncListServlet(SharedServiceStuff stuff,
ClusterViewByServer clusterView,
SyncHandler<K,E> h) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
fillOperationMetrics(AllOperationMetrics metrics) |
void |
handleGet(ServletServiceRequest request,
ServletServiceResponse response,
com.fasterxml.storemate.store.util.OperationDiagnostics stats) |
protected ServletServiceResponse |
listEntries(ServletServiceRequest request,
ServletServiceResponse response,
long since,
com.fasterxml.storemate.store.util.OperationDiagnostics stats) |
protected void |
reportUnexpectedInterruptForListEntries() |
_addStdHeaders, _trimPath, constructMetadata, constructRequest, constructResponse, doDelete, doGet, doHead, doPost, doPut, getClusterView, handleDelete, handleHead, handlePost, handlePutdoOptions, doTrace, getLastModified, service, serviceprotected final SyncHandler<K extends EntryKey,E extends StoredEntry<K>> _syncHandler
protected final com.fasterxml.jackson.databind.ObjectWriter _jsonWriter
protected final AtomicBoolean _terminated
protected final OperationMetrics _listMetrics
protected final String _loggedMethodName
public RemoteSyncListServlet(SharedServiceStuff stuff, ClusterViewByServer clusterView, SyncHandler<K,E> h)
public void fillOperationMetrics(AllOperationMetrics metrics)
fillOperationMetrics in interface AllOperationMetrics.Providerprotected ServletServiceResponse listEntries(ServletServiceRequest request, ServletServiceResponse response, long since, com.fasterxml.storemate.store.util.OperationDiagnostics stats) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic void handleGet(ServletServiceRequest request, ServletServiceResponse response, com.fasterxml.storemate.store.util.OperationDiagnostics stats) throws IOException
handleGet in class ServletBaseIOExceptionprotected void reportUnexpectedInterruptForListEntries()
throws IOException
IOExceptionCopyright © 2012-2014 fasterxml.com. All Rights Reserved.