Package org.apache.ignite.services
Interface ServiceDescriptor
-
- All Superinterfaces:
Serializable
public interface ServiceDescriptor extends Serializable
Service deployment descriptor. Contains all service deployment configuration, and also deployment topology snapshot as well as origin node ID.Service descriptors can be retrieved by calling
IgniteServices.serviceDescriptors()method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <K> KaffinityKey()Gets affinity key used for key-to-node affinity calculation.@Nullable StringcacheName()Gets cache name used for key-to-node affinity calculation.intmaxPerNodeCount()Gets maximum allowed number of deployed services on each node,0for unlimited.Stringname()Gets service name.UUIDoriginNodeId()Gets ID of grid node that initiated the service deployment.Class<? extends Service>serviceClass()Gets service class.Map<UUID,Integer>topologySnapshot()Gets service deployment topology snapshot.inttotalCount()Gets maximum allowed total number of deployed services in the grid,0for unlimited.
-
-
-
Method Detail
-
name
String name()
Gets service name.- Returns:
- Service name.
-
totalCount
int totalCount()
Gets maximum allowed total number of deployed services in the grid,0for unlimited.- Returns:
- Maximum allowed total number of deployed services in the grid,
0for unlimited.
-
maxPerNodeCount
int maxPerNodeCount()
Gets maximum allowed number of deployed services on each node,0for unlimited.- Returns:
- Maximum allowed total number of deployed services on each node,
0for unlimited.
-
cacheName
@Nullable @Nullable String cacheName()
Gets cache name used for key-to-node affinity calculation. This parameter is optional and is set only when key-affinity service was deployed.- Returns:
- Cache name, possibly
null.
-
affinityKey
@Nullable <K> K affinityKey()
Gets affinity key used for key-to-node affinity calculation. This parameter is optional and is set only when key-affinity service was deployed.- Type Parameters:
K- Affinity key type.- Returns:
- Affinity key, possibly
null.
-
originNodeId
UUID originNodeId()
Gets ID of grid node that initiated the service deployment.- Returns:
- ID of grid node that initiated the service deployment.
-
-