Package org.jgroups.protocols
Class CENTRAL_EXECUTOR
java.lang.Object
org.jgroups.stack.Protocol
org.jgroups.protocols.Executing
org.jgroups.protocols.CENTRAL_EXECUTOR
This is a central executor service where each request is sent to the coordinator
for either a task or a current waiting thread.
- Since:
- 2.12.0
- Author:
- wburns
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jgroups.protocols.Executing
Executing.ExecutorHeader, Executing.Owner, Executing.Request, Executing.Type -
Field Summary
FieldsFields inherited from class org.jgroups.protocols.Executing
_awaitingConsumer, _awaitingReturn, _consumerLock, _consumersAvailable, _runnableThreads, _running, _runRequests, _tasks, bypass_bundling, counter, local_addr, notifiers, view -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyQueueTo(List<Address> new_joiners) getCoord()intvoidhandleView(View view) booleanisCoord()protected voidsendNewConsumerRequest(Address sender) protected voidsendNewRunRequest(Address sender) protected voidsendRemoveConsumerRequest(Address sender) protected voidsendRemoveRunRequest(Address sender) protected voidsendToCoordinator(Executing.Type type, Object value) voidsetNumberOfBackups(int num_backups) protected voidupdateBackups(Executing.Type type, Object obj) Methods inherited from class org.jgroups.protocols.Executing
addExecutorListener, down, getAddress, getBypassBundling, getView, handleConsumerFoundResponse, handleConsumerReadyRequest, handleExceptionResponse, handleInterruptRequest, handleNewConsumer, handleNewRunRequest, handleRemoveConsumer, handleRemoveRunRequest, handleTaskRejectedResponse, handleTaskRequest, handleTaskSubmittedRequest, handleValueResponse, sendRequest, setBypassBundling, upMethods inherited from class org.jgroups.stack.Protocol
destroy, downThreadEnabled, dumpStats, enableStats, getConfigurableObjects, getDownProtocol, getId, getLevel, getName, getProperties, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getValue, init, isErgonomics, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStats, setDownProtocol, setErgonomics, setId, setLevel, setProperties, setPropertiesInternal, setProperty, setProtocolStack, setSocketFactory, setUpProtocol, setValue, setValues, start, statsEnabled, stop, upThreadEnabled
-
Field Details
-
num_backups
protected int num_backups -
coord
-
is_coord
protected boolean is_coord -
backups
-
-
Constructor Details
-
CENTRAL_EXECUTOR
public CENTRAL_EXECUTOR()
-
-
Method Details
-
getCoord
-
isCoord
public boolean isCoord() -
getCoordinator
-
getNumberOfBackups
public int getNumberOfBackups() -
setNumberOfBackups
public void setNumberOfBackups(int num_backups) -
getBackups
-
handleView
- Overrides:
handleViewin classExecuting
-
updateBackups
-
copyQueueTo
-
sendToCoordinator
- Specified by:
sendToCoordinatorin classExecuting
-
sendNewRunRequest
- Specified by:
sendNewRunRequestin classExecuting
-
sendRemoveRunRequest
- Specified by:
sendRemoveRunRequestin classExecuting
-
sendNewConsumerRequest
- Specified by:
sendNewConsumerRequestin classExecuting
-
sendRemoveConsumerRequest
- Specified by:
sendRemoveConsumerRequestin classExecuting
-