public abstract class BaseShellDoulosRequestProcessor extends BaseDoulosRequestProcessor
Modifier and Type | Class and Description |
---|---|
protected class |
BaseShellDoulosRequestProcessor.ShellStatus |
Constructor and Description |
---|
BaseShellDoulosRequestProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
addShellStatus(java.lang.String key,
BaseShellDoulosRequestProcessor.ShellStatus shellStatus) |
protected abstract BaseShellDoulosRequestProcessor.ShellStatus |
createShellStatus(org.json.JSONObject payloadJSONObject) |
void |
destroy() |
protected void |
execute(BaseShellDoulosRequestProcessor.ShellStatus shellStatus) |
protected long |
getExpiredTime() |
protected abstract java.lang.String |
getKey(org.json.JSONObject payloadJSONObject) |
protected abstract java.util.List<java.lang.String> |
getShellCommands(BaseShellDoulosRequestProcessor.ShellStatus shellStatus) |
protected long |
getShellStatusesSize() |
protected int |
getThreadDestroyInterval() |
protected int |
getThreadExecuteInterval() |
protected abstract boolean |
isRemoveFromQueue(org.json.JSONObject payloadJSONObject) |
protected abstract boolean |
isValid(org.json.JSONObject payloadJSONObject) |
protected void |
populateResponseJSONObject(org.json.JSONObject responseJSONObject,
BaseShellDoulosRequestProcessor.ShellStatus shellStatus) |
void |
process(java.lang.String method,
java.lang.String pathInfo,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
org.json.JSONObject payloadJSONObject,
org.json.JSONObject responseJSONObject) |
protected BaseShellDoulosRequestProcessor.ShellStatus |
queue(org.json.JSONObject payloadJSONObject) |
protected void |
removeShellStatus(java.lang.String key,
BaseShellDoulosRequestProcessor.ShellStatus shellStatus) |
isBlank
public void destroy()
destroy
in interface DoulosRequestProcessor
destroy
in class BaseDoulosRequestProcessor
public void process(java.lang.String method, java.lang.String pathInfo, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, org.json.JSONObject payloadJSONObject, org.json.JSONObject responseJSONObject) throws java.lang.Exception
java.lang.Exception
protected void addShellStatus(java.lang.String key, BaseShellDoulosRequestProcessor.ShellStatus shellStatus)
protected abstract BaseShellDoulosRequestProcessor.ShellStatus createShellStatus(org.json.JSONObject payloadJSONObject)
protected void execute(BaseShellDoulosRequestProcessor.ShellStatus shellStatus) throws java.lang.Exception
java.lang.Exception
protected long getExpiredTime()
protected abstract java.lang.String getKey(org.json.JSONObject payloadJSONObject)
protected abstract java.util.List<java.lang.String> getShellCommands(BaseShellDoulosRequestProcessor.ShellStatus shellStatus)
protected long getShellStatusesSize()
protected int getThreadDestroyInterval()
protected int getThreadExecuteInterval()
protected abstract boolean isRemoveFromQueue(org.json.JSONObject payloadJSONObject)
protected abstract boolean isValid(org.json.JSONObject payloadJSONObject)
protected void populateResponseJSONObject(org.json.JSONObject responseJSONObject, BaseShellDoulosRequestProcessor.ShellStatus shellStatus)
protected BaseShellDoulosRequestProcessor.ShellStatus queue(org.json.JSONObject payloadJSONObject)
protected void removeShellStatus(java.lang.String key, BaseShellDoulosRequestProcessor.ShellStatus shellStatus)