NodeTypeDescription Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. NodeTypeDescription
- com.
public final class NodeTypeDescription
Describes a node type in the cluster, each node type represents sub set of nodes in the cluster.
Constructor Summary
Constructor | Description |
---|---|
NodeTypeDescription() |
Creates an instance of Node |
Method Summary
Modifier and Type | Method and Description |
---|---|
Endpoint |
applicationPorts()
Get the application |
Map<String,String> |
capacities()
Get the capacities property: The capacity tags applied to the nodes in the node type, the cluster resource manager uses these tags to understand how much resource a node has. |
int |
clientConnectionEndpointPort()
Get the client |
Durability |
durabilityLevel()
Get the durability |
Endpoint |
ephemeralPorts()
Get the ephemeral |
int |
httpGatewayEndpointPort()
Get the http |
boolean |
isPrimary()
Get the is |
Boolean |
isStateless()
Get the is |
Boolean |
multipleAvailabilityZones()
Get the multiple |
String |
name()
Get the name property: The name of the node type. |
Map<String,String> |
placementProperties()
Get the placement |
Integer |
reverseProxyEndpointPort()
Get the reverse |
void |
validate()
Validates the instance. |
int |
vmInstanceCount()
Get the vm |
Node |
withApplicationPorts(EndpointRangeDescription applicationPorts)
Set the application |
Node |
withCapacities(Map<String,String> capacities)
Set the capacities property: The capacity tags applied to the nodes in the node type, the cluster resource manager uses these tags to understand how much resource a node has. |
Node |
withClientConnectionEndpointPort(int clientConnectionEndpointPort)
Set the client |
Node |
withDurabilityLevel(DurabilityLevel durabilityLevel)
Set the durability |
Node |
withEphemeralPorts(EndpointRangeDescription ephemeralPorts)
Set the ephemeral |
Node |
withHttpGatewayEndpointPort(int httpGatewayEndpointPort)
Set the http |
Node |
withIsPrimary(boolean isPrimary)
Set the is |
Node |
withIsStateless(Boolean isStateless)
Set the is |
Node |
withMultipleAvailabilityZones(Boolean multipleAvailabilityZones)
Set the multiple |
Node |
withName(String name)
Set the name property: The name of the node type. |
Node |
withPlacementProperties(Map<String,String> placementProperties)
Set the placement |
Node |
withReverseProxyEndpointPort(Integer reverseProxyEndpointPort)
Set the reverse |
Node |
withVmInstanceCount(int vmInstanceCount)
Set the vm |
Methods inherited from java.lang.Object
Constructor Details
NodeTypeDescription
public NodeTypeDescription()
Creates an instance of NodeTypeDescription class.
Method Details
applicationPorts
public EndpointRangeDescription applicationPorts()
Get the applicationPorts property: The range of ports from which cluster assigned port to Service Fabric applications.
Returns:
capacities
public Map
Get the capacities property: The capacity tags applied to the nodes in the node type, the cluster resource manager uses these tags to understand how much resource a node has.
Returns:
clientConnectionEndpointPort
public int clientConnectionEndpointPort()
Get the clientConnectionEndpointPort property: The TCP cluster management endpoint port.
Returns:
durabilityLevel
public DurabilityLevel durabilityLevel()
Get the durabilityLevel property: The durability level of the node type. Learn about [DurabilityLevel](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-capacity). - Bronze - No privileges. This is the default. - Silver - The infrastructure jobs can be paused for a duration of 10 minutes per UD. - Gold - The infrastructure jobs can be paused for a duration of 2 hours per UD. Gold durability can be enabled only on full node VM skus like D15_V2, G5 etc.
Returns:
ephemeralPorts
public EndpointRangeDescription ephemeralPorts()
Get the ephemeralPorts property: The range of ephemeral ports that nodes in this node type should be configured with.
Returns:
httpGatewayEndpointPort
public int httpGatewayEndpointPort()
Get the httpGatewayEndpointPort property: The HTTP cluster management endpoint port.
Returns:
isPrimary
public boolean isPrimary()
Get the isPrimary property: The node type on which system services will run. Only one node type should be marked as primary. Primary node type cannot be deleted or changed for existing clusters.
Returns:
isStateless
public Boolean isStateless()
Get the isStateless property: Indicates if the node type can only host Stateless workloads.
Returns:
multipleAvailabilityZones
public Boolean multipleAvailabilityZones()
Get the multipleAvailabilityZones property: Indicates if the node type is enabled to support multiple zones.
Returns:
name
public String name()
Get the name property: The name of the node type.
Returns:
placementProperties
public Map
Get the placementProperties property: The placement tags applied to nodes in the node type, which can be used to indicate where certain services (workload) should run.
Returns:
reverseProxyEndpointPort
public Integer reverseProxyEndpointPort()
Get the reverseProxyEndpointPort property: The endpoint used by reverse proxy.
Returns:
validate
public void validate()
Validates the instance.
vmInstanceCount
public int vmInstanceCount()
Get the vmInstanceCount property: VMInstanceCount should be 1 to n, where n indicates the number of VM instances corresponding to this nodeType. VMInstanceCount = 0 can be done only in these scenarios: NodeType is a secondary nodeType. Durability = Bronze or Durability >= Bronze and InfrastructureServiceManager = true. If VMInstanceCount = 0, implies the VMs for this nodeType will not be used for the initial cluster size computation.
Returns:
withApplicationPorts
public NodeTypeDescription withApplicationPorts(EndpointRangeDescription applicationPorts)
Set the applicationPorts property: The range of ports from which cluster assigned port to Service Fabric applications.
Parameters:
Returns:
withCapacities
public NodeTypeDescription withCapacities(Map
Set the capacities property: The capacity tags applied to the nodes in the node type, the cluster resource manager uses these tags to understand how much resource a node has.
Parameters:
Returns:
withClientConnectionEndpointPort
public NodeTypeDescription withClientConnectionEndpointPort(int clientConnectionEndpointPort)
Set the clientConnectionEndpointPort property: The TCP cluster management endpoint port.
Parameters:
Returns:
withDurabilityLevel
public NodeTypeDescription withDurabilityLevel(DurabilityLevel durabilityLevel)
Set the durabilityLevel property: The durability level of the node type. Learn about [DurabilityLevel](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-capacity). - Bronze - No privileges. This is the default. - Silver - The infrastructure jobs can be paused for a duration of 10 minutes per UD. - Gold - The infrastructure jobs can be paused for a duration of 2 hours per UD. Gold durability can be enabled only on full node VM skus like D15_V2, G5 etc.
Parameters:
Returns:
withEphemeralPorts
public NodeTypeDescription withEphemeralPorts(EndpointRangeDescription ephemeralPorts)
Set the ephemeralPorts property: The range of ephemeral ports that nodes in this node type should be configured with.
Parameters:
Returns:
withHttpGatewayEndpointPort
public NodeTypeDescription withHttpGatewayEndpointPort(int httpGatewayEndpointPort)
Set the httpGatewayEndpointPort property: The HTTP cluster management endpoint port.
Parameters:
Returns:
withIsPrimary
public NodeTypeDescription withIsPrimary(boolean isPrimary)
Set the isPrimary property: The node type on which system services will run. Only one node type should be marked as primary. Primary node type cannot be deleted or changed for existing clusters.
Parameters:
Returns:
withIsStateless
public NodeTypeDescription withIsStateless(Boolean isStateless)
Set the isStateless property: Indicates if the node type can only host Stateless workloads.
Parameters:
Returns:
withMultipleAvailabilityZones
public NodeTypeDescription withMultipleAvailabilityZones(Boolean multipleAvailabilityZones)
Set the multipleAvailabilityZones property: Indicates if the node type is enabled to support multiple zones.
Parameters:
Returns:
withName
public NodeTypeDescription withName(String name)
Set the name property: The name of the node type.
Parameters:
Returns:
withPlacementProperties
public NodeTypeDescription withPlacementProperties(Map
Set the placementProperties property: The placement tags applied to nodes in the node type, which can be used to indicate where certain services (workload) should run.
Parameters:
Returns:
withReverseProxyEndpointPort
public NodeTypeDescription withReverseProxyEndpointPort(Integer reverseProxyEndpointPort)
Set the reverseProxyEndpointPort property: The endpoint used by reverse proxy.
Parameters:
Returns:
withVmInstanceCount
public NodeTypeDescription withVmInstanceCount(int vmInstanceCount)
Set the vmInstanceCount property: VMInstanceCount should be 1 to n, where n indicates the number of VM instances corresponding to this nodeType. VMInstanceCount = 0 can be done only in these scenarios: NodeType is a secondary nodeType. Durability = Bronze or Durability >= Bronze and InfrastructureServiceManager = true. If VMInstanceCount = 0, implies the VMs for this nodeType will not be used for the initial cluster size computation.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for