ActorNameFormat Class
- java.
lang. Object - microsoft.
servicefabric. actors. ActorNameFormat
- microsoft.
public class ActorNameFormat
Contains static methods for generating names like service name, application name form the actor interface type.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getConfigPackageName(Class<?> actorImplementationType)
Gets the configuration package name used in service package for the actor. |
String |
getFabricServiceEndpointName(Class<?> actorImplementationType)
Gets the service endpoint for the actor type which is specified in service manifest for the actor service. |
String |
getFabricServiceName(Class<?> actorInterfaceType, String serviceName)
Gets name of service which hosts the actor type in Service Fabric cluster. |
String |
getFabricServiceReplicatorConfigSectionName(Class<?> actorImplementationType)
Gets the replicator configuration section name specified in configuration package for the actor service.
Remarks: Values specified in replicator configuration section are used to configure ReplicatorSettings for the replication of actor state between primary and secondary replicas. |
String |
getFabricServiceReplicatorEndpointName(Class<?> actorImplementationType)
Gets the replicator endpoint which is specified in service manifest for the actor service. |
String |
getFabricServiceReplicatorSecurityConfigSectionName(Class<?> actorImplementationType)
Gets the replicator security configuration section name specified in configuration package for the actor service.
Remarks: Values specified in replicator security configuration section are used to configure system.fabric.ReplicatorSettings#securityCredentials for the replication of actor state between primary and secondary replicas. |
String |
getFabricServiceTransportSettingsSectionName(Class<?> actorImplementationType)
Gets the fabrictransport configuration section name specified in configuration package for the actor service.
Remarks:Values specified in FabricTransport configuration section are used to configure microsoft.servicefabric.fabrictransport.runtime.FabricTransportListenerSettings for the communication. |
String |
getFabricServiceTypeName(Class<?> actorImplementationType)
Gets service type name for the actor. |
URI |
getFabricServiceUri(Class<?> actorInterfaceType, String applicationName, String serviceName)
Gets service Uri which hosts the actor type in Service Fabric cluster.
Remarks: If applicationName is passed as null or empty string, an attempt is made to get application name from CodePackageActivationContext. If the method still cannot determine application name, java.lang.IllegalArgumentException is thrown. |
URI |
getFabricServiceUri(Class<?> actorInterfaceType, URI applicationUri, String serviceName)
Gets service Uri which hosts the actor type in Service Fabric cluster.
Remarks: If applicationUri is passed as null or empty string, an attempt is made to get application name from CodePackageActivationContext. If the method still cannot determine application name, java.lang.IllegalArgumentException is thrown. |
String |
getName(Class<?> actorInterfaceType)
Gets name of Actor from actorInterfaceType. |
Method Details
getConfigPackageName
public static String getConfigPackageName(Class actorImplementationType)
Gets the configuration package name used in service package for the actor.
Parameters:
Returns:
getFabricServiceEndpointName
public static String getFabricServiceEndpointName(Class actorImplementationType)
Gets the service endpoint for the actor type which is specified in service manifest for the actor service.
Parameters:
Returns:
getFabricServiceName
public static String getFabricServiceName(Class actorInterfaceType, String serviceName)
Gets name of service which hosts the actor type in Service Fabric cluster.
Parameters:
Returns:
getFabricServiceReplicatorConfigSectionName
public static String getFabricServiceReplicatorConfigSectionName(Class actorImplementationType)
Gets the replicator configuration section name specified in configuration package for the actor service.
Remarks: Values specified in replicator configuration section are used to configure ReplicatorSettings for the replication of actor state between primary and secondary replicas.
Parameters:
Returns:
getFabricServiceReplicatorEndpointName
public static String getFabricServiceReplicatorEndpointName(Class actorImplementationType)
Gets the replicator endpoint which is specified in service manifest for the actor service.
Parameters:
Returns:
getFabricServiceReplicatorSecurityConfigSectionName
public static String getFabricServiceReplicatorSecurityConfigSectionName(Class actorImplementationType)
Gets the replicator security configuration section name specified in configuration package for the actor service.
Remarks: Values specified in replicator security configuration section are used to configure system.fabric.ReplicatorSettings#securityCredentials for the replication of actor state between primary and secondary replicas.
Parameters:
Returns:
getFabricServiceTransportSettingsSectionName
public static String getFabricServiceTransportSettingsSectionName(Class actorImplementationType)
Gets the fabrictransport configuration section name specified in configuration package for the actor service.
Remarks:Values specified in FabricTransport configuration section are used to configure microsoft.servicefabric.fabrictransport.runtime.FabricTransportListenerSettings for the communication.
Parameters:
Returns:
getFabricServiceTypeName
public static String getFabricServiceTypeName(Class actorImplementationType)
Gets service type name for the actor.
Parameters:
Returns:
getFabricServiceUri
public static URI getFabricServiceUri(Class actorInterfaceType, String applicationName, String serviceName)
Gets service Uri which hosts the actor type in Service Fabric cluster.
Remarks: If applicationName is passed as null or empty string, an attempt is made to get application name from CodePackageActivationContext. If the method still cannot determine application name, java.lang.IllegalArgumentException is thrown.
Parameters:
Returns:
Throws:
getFabricServiceUri
public static URI getFabricServiceUri(Class actorInterfaceType, URI applicationUri, String serviceName)
Gets service Uri which hosts the actor type in Service Fabric cluster.
Remarks: If applicationUri is passed as null or empty string, an attempt is made to get application name from CodePackageActivationContext. If the method still cannot determine application name, java.lang.IllegalArgumentException is thrown.
Parameters:
Returns:
Throws:
getName
public static String getName(Class actorInterfaceType)
Gets name of Actor from actorInterfaceType.
Parameters:
Returns:
Applies to
Azure SDK for Java