public class ServiceInfo extends Object implements ServiceDescriptor
| Constructor and Description |
|---|
ServiceInfo(@NotNull UUID originNodeId,
@NotNull IgniteUuid srvcId,
@NotNull ServiceConfiguration cfg) |
ServiceInfo(@NotNull UUID originNodeId,
@NotNull IgniteUuid srvcId,
@NotNull ServiceConfiguration cfg,
boolean staticCfg) |
| Modifier and Type | Method and Description |
|---|---|
<K> K |
affinityKey()
Gets affinity key used for key-to-node affinity calculation.
|
@Nullable String |
cacheName()
Gets cache name used for key-to-node affinity calculation.
|
ServiceConfiguration |
configuration()
Returns service's configuration.
|
int |
maxPerNodeCount()
Gets maximum allowed number of deployed services on each node,
0 for unlimited. |
String |
name()
Gets service name.
|
UUID |
originNodeId()
Gets ID of grid node that initiated the service deployment.
|
Class<? extends Service> |
serviceClass()
Gets service class.
|
IgniteUuid |
serviceId()
Rerurns services id.
|
boolean |
staticallyConfigured() |
Map<UUID,Integer> |
topologySnapshot()
Gets service deployment topology snapshot.
|
void |
topologySnapshot(@NotNull Map<UUID,Integer> top)
Sets service's new topology snapshot.
|
String |
toString() |
int |
totalCount()
Gets maximum allowed total number of deployed services in the grid,
0 for unlimited. |
public ServiceInfo(@NotNull
@NotNull UUID originNodeId,
@NotNull
@NotNull IgniteUuid srvcId,
@NotNull
@NotNull ServiceConfiguration cfg)
originNodeId - Initiating node id.srvcId - Service id.cfg - Service configuration.public ServiceInfo(@NotNull
@NotNull UUID originNodeId,
@NotNull
@NotNull IgniteUuid srvcId,
@NotNull
@NotNull ServiceConfiguration cfg,
boolean staticCfg)
originNodeId - Initiating node id.srvcId - Service id.cfg - Service configuration.staticCfg - Statically configured flag.public void topologySnapshot(@NotNull
@NotNull Map<UUID,Integer> top)
top - Topology snapshot.public ServiceConfiguration configuration()
public boolean staticallyConfigured()
true if statically configured.public IgniteUuid serviceId()
public String name()
name in interface ServiceDescriptorpublic Class<? extends Service> serviceClass()
serviceClass in interface ServiceDescriptorpublic int totalCount()
0 for unlimited.totalCount in interface ServiceDescriptor0 for unlimited.public int maxPerNodeCount()
0 for unlimited.maxPerNodeCount in interface ServiceDescriptor0 for unlimited.@Nullable public @Nullable String cacheName()
cacheName in interface ServiceDescriptornull.@Nullable public <K> K affinityKey()
affinityKey in interface ServiceDescriptornull.public UUID originNodeId()
originNodeId in interface ServiceDescriptorpublic Map<UUID,Integer> topologySnapshot()
topologySnapshot in interface ServiceDescriptor
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020