Class GlobalServicePoolAgent
- java.lang.Object
- 
- jadex.platform.service.globalservicepool.GlobalServicePoolAgent
 
- 
- All Implemented Interfaces:
- IGlobalPoolManagementService,- IGlobalServicePoolService
 
 public class GlobalServicePoolAgent extends java.lang.Object implements IGlobalServicePoolService, IGlobalPoolManagementService The global service pool agent can be used to handle services in a pooled manner. A global pool consists of workers on different platforms. These workers typically are local service pools themselves.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classGlobalServicePoolAgent.ForwardHandlerInvocation handler that forwards to the contained local pool.
 - 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected java.util.Map<java.lang.Class<?>,GlobalPoolServiceManager>managersThe pool manager.
 - 
Constructor SummaryConstructors Constructor Description GlobalServicePoolAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>addServiceType(java.lang.Class<?> servicetype, java.lang.String componentmodel, CreationInfo info, IGlobalPoolStrategy strategy)Add a new service type and a strategy.IFuture<java.lang.Void>agentCreated()Called once after agent creation.IIntermediateFuture<IService>getPoolServices(ClassInfo type, java.util.Set<IServiceIdentifier> brokens)Get a set of services managed by the pool.IFuture<java.lang.Void>removeServiceType(java.lang.Class<?> servicetype)Remove a service type.IFuture<java.lang.Void>sendUsageInfo(java.util.Map<IServiceIdentifier,UsageInfo> infos)Inform about service usage.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
managersprotected java.util.Map<java.lang.Class<?>,GlobalPoolServiceManager> managers The pool manager.
 
- 
 - 
Method Detail- 
agentCreatedpublic IFuture<java.lang.Void> agentCreated() Called once after agent creation.
 - 
addServiceTypepublic IFuture<java.lang.Void> addServiceType(java.lang.Class<?> servicetype, java.lang.String componentmodel, CreationInfo info, IGlobalPoolStrategy strategy) Add a new service type and a strategy.- Specified by:
- addServiceTypein interface- IGlobalServicePoolService
- Parameters:
- servicetype- The service type.
- componentmodel- The component model.
 
 - 
removeServiceTypepublic IFuture<java.lang.Void> removeServiceType(java.lang.Class<?> servicetype) Remove a service type.- Specified by:
- removeServiceTypein interface- IGlobalServicePoolService
- Parameters:
- servicetype- The service type.
 
 - 
getPoolServicespublic IIntermediateFuture<IService> getPoolServices(ClassInfo type, java.util.Set<IServiceIdentifier> brokens) Get a set of services managed by the pool.- Specified by:
- getPoolServicesin interface- IGlobalPoolManagementService
- Parameters:
- type- The service type.
- Returns:
- A number of services from the pool.
 
 - 
sendUsageInfopublic IFuture<java.lang.Void> sendUsageInfo(java.util.Map<IServiceIdentifier,UsageInfo> infos) Inform about service usage.- Specified by:
- sendUsageInfoin interface- IGlobalPoolManagementService
- Parameters:
- The- usage infos per service class.
 
 
- 
 
-