次の方法で共有


ServiceTypeDescription Class

  • java.lang.Object
    • system.fabric.description.ServiceTypeDescription

public class ServiceTypeDescription

Describes the service type.

Method Summary

Modifier and Type Method and Description
HashMap<String, String> getExtensions()

Gets the extensions for the service type.

LinkedHashMap<String, ServiceLoadMetricDescription> getLoadMetrics()

Gets the type of load metric is reported by the service.

String getPlacementConstraints()

Gets the constraint to be used when instantiating this service in a Service Fabric cluster.

List<ServicePlacementPolicyDescription> getPolicies()

Gets the policies of the service type.

ServiceDescriptionKind getServiceTypeKind()

Gets the kind of service type.

String getServiceTypeName()

Gets the name of the service type.

void setPlacementConstraints(String placementConstraints)

Sets the constraint to be used when instantiating this service in a Service Fabric cluster.

void setPolicies(List<ServicePlacementPolicyDescription> policies)

Sets the policies of the service type.

void setServiceTypeKind(ServiceDescriptionKind serviceTypeKind)

Sets the kind of service type.

void setServiceTypeName(String serviceTypeName)

Gets the name of the service type.

Method Details

getExtensions

public HashMap getExtensions()

Gets the extensions for the service type.

Returns:

The extensions for the service type.

getLoadMetrics

public LinkedHashMap getLoadMetrics()

Gets the type of load metric is reported by the service.

Returns:

The type of load metric is reported by the service.

getPlacementConstraints

public String getPlacementConstraints()

Gets the constraint to be used when instantiating this service in a Service Fabric cluster.

Returns:

The constraint to be used when instantiating this service in a Service Fabric cluster.

getPolicies

public List getPolicies()

Gets the policies of the service type.

Returns:

The policies of the service type.

getServiceTypeKind

public ServiceDescriptionKind getServiceTypeKind()

Gets the kind of service type.

Returns:

The kind of service type.

getServiceTypeName

public String getServiceTypeName()

Gets the name of the service type.

Returns:

The name of the service type.

setPlacementConstraints

public void setPlacementConstraints(String placementConstraints)

Sets the constraint to be used when instantiating this service in a Service Fabric cluster.

Parameters:

placementConstraints - The constraint to be used when instantiating this service in a Service Fabric cluster.

setPolicies

public void setPolicies(List policies)

Sets the policies of the service type.

Parameters:

policies - The policies of the service type.

setServiceTypeKind

public void setServiceTypeKind(ServiceDescriptionKind serviceTypeKind)

Sets the kind of service type.

Parameters:

serviceTypeKind - The kind of service type.

setServiceTypeName

public void setServiceTypeName(String serviceTypeName)

Gets the name of the service type.

Parameters:

serviceTypeName - The name of the service type.

Applies to