com.bstek.dorado.view.task
public class LongTaskSocketServer extends java.lang.Object implements SocketLongTaskConnectorListener
Modifier and Type | Class and Description |
---|---|
protected static class |
LongTaskSocketServer.AbortException |
static class |
LongTaskSocketServer.TaskStatePacket |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LONG_TASK_KEY_PREFIX |
static java.lang.String |
TASK_CONNECTOR_KEY_PREFIX |
static java.lang.String |
TASK_SCHEDULER_KEY_PREFIX |
Constructor and Description |
---|
LongTaskSocketServer() |
Modifier and Type | Method and Description |
---|---|
LongTaskSocketServer.TaskStatePacket |
connectLongTask(DoradoContext context,
Socket socket,
java.lang.String taskName) |
protected TaskScheduler |
findTaskSchedular(DoradoContext context,
java.lang.String taskName) |
protected LongTask |
getLongTask(DoradoContext context,
ExposedServiceDefintion exposedService,
java.lang.Object parameter) |
protected LongTask |
invokeByParameterName(java.lang.Object serviceBean,
java.lang.reflect.Method[] methods,
java.lang.Object parameter,
boolean disassembleParameter) |
protected LongTask |
invokeByParameterType(java.lang.Object serviceBean,
java.lang.reflect.Method[] methods,
java.lang.Object parameter,
boolean disassembleParameter) |
void |
onClose(SocketLongTaskConnector connector) |
void |
setExposedServiceManager(ExposedServiceManager exposedServiceManager) |
void |
setLongPollingManager(LongPollingManager longPollingManager) |
void |
startLongTask(DoradoContext context,
java.util.Map<java.lang.String,java.lang.Object> parameter) |
public static final java.lang.String LONG_TASK_KEY_PREFIX
public static final java.lang.String TASK_SCHEDULER_KEY_PREFIX
public static final java.lang.String TASK_CONNECTOR_KEY_PREFIX
public void setExposedServiceManager(ExposedServiceManager exposedServiceManager)
public void setLongPollingManager(LongPollingManager longPollingManager)
public LongTaskSocketServer.TaskStatePacket connectLongTask(DoradoContext context, Socket socket, java.lang.String taskName) throws java.lang.Exception
java.lang.Exception
public void startLongTask(DoradoContext context, java.util.Map<java.lang.String,java.lang.Object> parameter) throws java.lang.Exception
java.lang.Exception
protected TaskScheduler findTaskSchedular(DoradoContext context, java.lang.String taskName)
public void onClose(SocketLongTaskConnector connector)
onClose
in interface SocketLongTaskConnectorListener
protected LongTask getLongTask(DoradoContext context, ExposedServiceDefintion exposedService, java.lang.Object parameter) throws java.lang.Exception
java.lang.Exception
protected LongTask invokeByParameterName(java.lang.Object serviceBean, java.lang.reflect.Method[] methods, java.lang.Object parameter, boolean disassembleParameter) throws MethodAutoMatchingException, java.lang.Exception
MethodAutoMatchingException
java.lang.Exception
protected LongTask invokeByParameterType(java.lang.Object serviceBean, java.lang.reflect.Method[] methods, java.lang.Object parameter, boolean disassembleParameter) throws MethodAutoMatchingException, java.lang.Exception
MethodAutoMatchingException
java.lang.Exception
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.