CodePackageActivationContext 接口

定义

Represents activation context for the Service Fabric service. This is valid for fabric activated service only.

public interface CodePackageActivationContext

方法

getApplicationName()

Gets the name of the application.

getApplicationTypeName()

Gets the name of the application type.

getCodePackageAddedEvent()

CodePackageAddedEvent should be used to register listeners to listen to the events that are generated on adding new Code package to service manifest.

getCodePackageModifiedEvent()

CodePackageRemovedEvent should be used to register listeners to listen to the events that are generated on modifying a Code package in the service manifest.

getCodePackageName()

Gets the name of the fabric activated code package.

getCodePackageNames()

Retrieves the list of code package names in the service manifest.

getCodePackageObject(String packageName)

Returns the CodePackage object from Service Package that matches the packageName parameter

getCodePackageRemovedEvent()

CodePackageRemovedEvent should be used to register listeners to listen to the events that are generated on removing a Code package in the service manifest.

getCodePackageVersion()

Gets the version of the fabric activated code package

getConfigurationPackageAddedEvent()

ConfigurationPackageAddedEvent should be used to register listeners to listen to the events that are generated on adding new Config package to service manifest.

getConfigurationPackageModifiedEvent()

ConfigurationPackageAddedEvent should be used to register listeners to listen to the events that are generated on modifying a Config package in the service manifest.

getConfigurationPackageNames()

Retrieves the list of configuration package names in the service manifest.

getConfigurationPackageObject(String packageName)

Returns ConfigurationPackage object from Service Package that matches the packageName parameter

getConfigurationPackageRemovedEvent()

ConfigurationPackageAddedEvent should be used to register listeners to listen to the events that are generated on removing a Config package in the service manifest.

getContextId()

Gets the ID that represents the service package name qualified with Application package name.

getDataPackageAddedEvent()

DataPackageAddedEvent should be used to register listeners to listen to the events that are generated on adding new Data package to service manifest.

getDataPackageModifiedEvent()

DataPackageAddedEvent should be used to register listeners to listen to the events that are generated on modifying a Data package in the service manifest.

getDataPackageNames()

Retrieves all data packages by name.

getDataPackageObject(String packageName)

Returns DataPackage object from Service Package that matches the packageName parameter

getDataPackageRemovedEvent()

DataPackageAddedEvent should be used to register listeners to listen to the events that are generated on removing a Data package in the service manifest.

getEndpoint(String endpointName)

Retrieves the endpoint by name.

getEndpoints()

Retrieves all the end point names in the service manifest.

getLogDirectory()

Gets the path to the log directory that the application can use.

getServiceListenAddress()

The address at which the service should start the communication listener.

getServiceManifestName()

Retrieves the name of the service manifest.

getServiceManifestVersion()

Retrieves the version of the service manifest.

getServicePublishAddress()

The address which the service should publish as the listen address.

getServiceTypes()

Retrieves the list of Service Group types in the service manifest.

getTempDirectory()

Gets the path to the Temp directory that the Application can use.

getWorkDirectory()

Gets the path to the Work directory that the Application can use.

reportApplicationHealth(HealthInformation healthInfo)

Reports health for current application.

reportDeployedApplicationHealth(HealthInformation healthInfo)

Reports health for current deployed application.

reportDeployedServicePackageHealth(HealthInformation healthInfo)

Reports health for current deployed service package.

适用于