Package jadex.platform.service.execution
Class BisimExecutionService
- java.lang.Object
-
- jadex.bridge.service.BasicService
-
- jadex.platform.service.execution.SyncExecutionService
-
- jadex.platform.service.execution.BisimExecutionService
-
- All Implemented Interfaces:
IInternalService
,IService
,IExecutionService
public class BisimExecutionService extends SyncExecutionService
Helper class to allow bisimulation in same VM.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jadex.platform.service.execution.SyncExecutionService
SyncExecutionService.State
-
-
Field Summary
Fields Modifier and Type Field Description protected static IFuture<java.lang.Void>
inited
The inited flag of the service.protected static BisimExecutionService
instance
The shared execution service.-
Fields inherited from class jadex.platform.service.execution.SyncExecutionService
executor, idlefuture, provider, queue, removedfut, removedtask, state, task
-
Fields inherited from class jadex.bridge.service.BasicService
idcnt, impltype, internalaccess, providerid, shutdowned, sid, started, type
-
Fields inherited from interface jadex.bridge.service.IService
EMPTY_SERVICES
-
-
Constructor Summary
Constructors Constructor Description BisimExecutionService(IInternalAccess provider)
Create a new synchronous executor service.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IExecutionService
getInstance(IInternalAccess provider)
Get the instance.protected IThreadPoolService
getThreadPool()
Thread pool template method to support replacment.IFuture<java.lang.Void>
shutdownService()
Shutdown the executor service.IFuture<java.lang.Void>
startService()
Start the executor service.-
Methods inherited from class jadex.platform.service.execution.SyncExecutionService
cancel, customIsValid, execute, getNextIdleFuture, getRunningTasks
-
Methods inherited from class jadex.bridge.service.BasicService
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getInterfaceType, getInternalAccess, getInvokeMethod, getMethodInfos, getMethodTimeout, getPropertyMap, getProviderId, getServiceId, hashCode, initNFProperties, invokeMethod, isValid, setComponentAccess, setPropertyMap, setServiceIdentifier, toString
-
-
-
-
Field Detail
-
instance
protected static volatile BisimExecutionService instance
The shared execution service.
-
inited
protected static IFuture<java.lang.Void> inited
The inited flag of the service.
-
-
Constructor Detail
-
BisimExecutionService
public BisimExecutionService(IInternalAccess provider)
Create a new synchronous executor service.
-
-
Method Detail
-
getInstance
public static IExecutionService getInstance(IInternalAccess provider)
Get the instance.
-
startService
public IFuture<java.lang.Void> startService()
Description copied from class:SyncExecutionService
Start the executor service. Resumes all tasks.- Specified by:
startService
in interfaceIInternalService
- Overrides:
startService
in classSyncExecutionService
- Returns:
- A future that is done when the service has completed starting.
-
shutdownService
public IFuture<java.lang.Void> shutdownService()
Description copied from class:SyncExecutionService
Shutdown the executor service.- Specified by:
shutdownService
in interfaceIInternalService
- Overrides:
shutdownService
in classSyncExecutionService
- Returns:
- A future that is done when the service has completed its shutdown.
-
getThreadPool
protected IThreadPoolService getThreadPool()
Description copied from class:SyncExecutionService
Thread pool template method to support replacment.- Overrides:
getThreadPool
in classSyncExecutionService
-
-