public class ServiceDescriptorImpl extends Object implements ServiceDescriptor
Constructor and Description |
---|
ServiceDescriptorImpl(GridServiceDeployment dep) |
Modifier and Type | Method and Description |
---|---|
<K> K |
affinityKey()
Gets affinity key used for key-to-node affinity calculation.
|
String |
cacheName()
Gets cache name used for key-to-node affinity calculation.
|
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.
|
Map<UUID,Integer> |
topologySnapshot()
Gets service deployment topology snapshot.
|
String |
toString() |
int |
totalCount()
Gets maximum allowed total number of deployed services in the grid,
0 for unlimited. |
public ServiceDescriptorImpl(GridServiceDeployment dep)
dep
- Deployment.public String name()
name
in interface ServiceDescriptor
public Class<? extends Service> serviceClass()
serviceClass
in interface ServiceDescriptor
public int totalCount()
0
for unlimited.totalCount
in interface ServiceDescriptor
0
for unlimited.public int maxPerNodeCount()
0
for unlimited.maxPerNodeCount
in interface ServiceDescriptor
0
for unlimited.@Nullable public String cacheName()
cacheName
in interface ServiceDescriptor
null
.@Nullable public <K> K affinityKey()
affinityKey
in interface ServiceDescriptor
null
.public UUID originNodeId()
originNodeId
in interface ServiceDescriptor
public Map<UUID,Integer> topologySnapshot()
topologySnapshot
in interface ServiceDescriptor
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017