public abstract class RequestWithMonitoring<RESULT> extends RequestWithConfirmation<RESULT>
signal
with additional support for remote progress monitoring.Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_CANCELATION_POLL_INTERVAL |
static int |
DEFAULT_MONITOR_PROGRESS_SECONDS |
static int |
DEFAULT_MONITOR_TIMEOUT_SECONDS |
NO_TIMEOUT
Constructor and Description |
---|
RequestWithMonitoring(SignalProtocol<?> protocol,
Enum<?> literal) |
RequestWithMonitoring(SignalProtocol<?> protocol,
short signalID) |
RequestWithMonitoring(SignalProtocol<?> protocol,
short id,
String name) |
Modifier and Type | Method and Description |
---|---|
protected RESULT |
confirming(ExtendedDataInputStream in)
Important Note: The confirmation must not be empty, i.e.
|
protected abstract RESULT |
confirming(ExtendedDataInputStream in,
OMMonitor monitor)
Important Note: The confirmation must not be empty, i.e.
|
protected ExecutorService |
getCancelationExecutorService() |
protected long |
getCancelationPollInterval() |
protected int |
getConfirmingWorkPercent() |
protected int |
getMonitorProgressSeconds() |
protected int |
getMonitorTimeoutSeconds() |
protected int |
getRequestingWorkPercent() |
protected void |
requesting(ExtendedDataOutputStream out) |
protected abstract void |
requesting(ExtendedDataOutputStream out,
OMMonitor monitor) |
RESULT |
send() |
RESULT |
send(long timeout) |
RESULT |
send(long timeout,
OMMonitor monitor) |
RESULT |
send(OMMonitor monitor) |
Future<RESULT> |
sendAsync() |
Future<RESULT> |
sendAsync(OMMonitor monitor) |
getAsyncExecutorService
execute
closeChannelAfterMe, closeInputStreamAfterMe, closeOutputStreamAfterMe, finishInputStream, finishOutputStream, flush, getAdditionalInfo, getBufferInputStream, getBufferOutputStream, getCorrelationID, getCurrentInputStream, getCurrentOutputStream, getID, getName, getProtocol, run, toString, wrapInputStream, wrapOutputStream
public static final long DEFAULT_CANCELATION_POLL_INTERVAL
public static final int DEFAULT_MONITOR_PROGRESS_SECONDS
public static final int DEFAULT_MONITOR_TIMEOUT_SECONDS
public RequestWithMonitoring(SignalProtocol<?> protocol, short id, String name)
public RequestWithMonitoring(SignalProtocol<?> protocol, short signalID)
public RequestWithMonitoring(SignalProtocol<?> protocol, Enum<?> literal)
public Future<RESULT> sendAsync()
sendAsync
in class RequestWithConfirmation<RESULT>
public RESULT send() throws Exception, RemoteException
send
in class RequestWithConfirmation<RESULT>
Exception
RemoteException
public RESULT send(long timeout) throws Exception, RemoteException
send
in class RequestWithConfirmation<RESULT>
Exception
RemoteException
public RESULT send(OMMonitor monitor) throws Exception, RemoteException
Exception
RemoteException
public RESULT send(long timeout, OMMonitor monitor) throws Exception, RemoteException
Exception
RemoteException
protected final void requesting(ExtendedDataOutputStream out) throws Exception
requesting
in class RequestWithConfirmation<RESULT>
Exception
protected final RESULT confirming(ExtendedDataInputStream in) throws Exception
RequestWithConfirmation
boolean
. Otherwise synchronization problems will result!confirming
in class RequestWithConfirmation<RESULT>
Exception
protected abstract void requesting(ExtendedDataOutputStream out, OMMonitor monitor) throws Exception
Exception
protected abstract RESULT confirming(ExtendedDataInputStream in, OMMonitor monitor) throws Exception
boolean
. Otherwise synchronization problems will result!Exception
protected ExecutorService getCancelationExecutorService()
protected long getCancelationPollInterval()
protected int getMonitorProgressSeconds()
protected int getMonitorTimeoutSeconds()
protected int getRequestingWorkPercent()
protected int getConfirmingWorkPercent()
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html