public abstract class ServiceProcessorAdapter extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Modifier | Constructor and Description |
|---|---|
protected |
ServiceProcessorAdapter(GridKernalContext ctx) |
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, toString, validateNode, validateNodeprotected ServiceProcessorAdapter(GridKernalContext ctx)
ctx - Kernal context.public abstract IgniteInternalFuture<?> deployNodeSingleton(ClusterGroup prj, String name, Service srvc)
prj - Grid projection.name - Service name.srvc - Service.public abstract IgniteInternalFuture<?> deployClusterSingleton(ClusterGroup prj, String name, Service srvc)
name - Service name.srvc - Service instance.public abstract IgniteInternalFuture<?> deployMultiple(ClusterGroup prj, String name, Service srvc, int totalCnt, int maxPerNodeCnt)
name - Service name.srvc - Service.totalCnt - Total count.maxPerNodeCnt - Max per-node count.public abstract IgniteInternalFuture<?> deployKeyAffinitySingleton(String name, Service srvc, String cacheName, Object affKey)
name - Service name.srvc - Service.cacheName - Cache name.affKey - Affinity key.public abstract IgniteInternalFuture<?> deployAll(ClusterGroup prj, Collection<ServiceConfiguration> cfgs)
prj - Grid projection.cfgs - Service configurations.public abstract IgniteInternalFuture<?> cancel(String name)
name - Service name.public abstract IgniteInternalFuture<?> cancelAll()
public abstract IgniteInternalFuture<?> cancelAll(Collection<String> servicesNames)
servicesNames - Name of services to deploy.public abstract Collection<ServiceDescriptor> serviceDescriptors()
public abstract <T> T service(String name)
T - Service type.name - Service name.public abstract <T> T serviceProxy(ClusterGroup prj, String name, Class<? super T> srvcCls, boolean sticky, long timeout) throws IgniteException
T - Service interface type.prj - Grid projection.name - Service name.srvcCls - Service class.sticky - Whether multi-node request should be done.timeout - If greater than 0 limits service acquire time. Cannot be negative.IgniteException - If failed to create proxy.public abstract <T> Collection<T> services(String name)
T - Service type.name - Service name.public abstract ServiceContextImpl serviceContext(String name)
name - Service name.public abstract Map<UUID,Integer> serviceTopology(String name, long timeout) throws IgniteCheckedException
name - Service name.timeout - If greater than 0 limits task execution time. Cannot be negative.IgniteCheckedException - On error.public void onLocalJoin(DiscoveryEvent evt, DiscoCache discoCache)
evt - Discovery event.discoCache - Discovery cache.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021