다음을 통해 공유


FabricClient.QueryClient.GetDeployedApplicationListAsync Method

Definition

Overloads

GetDeployedApplicationListAsync(String, Uri)

Gets the deployed applications on a node with the specified application name. For more functionality, use GetDeployedApplicationPagedListAsync(PagedDeployedApplicationQueryDescription). This method will be deprecated in the future.

GetDeployedApplicationListAsync(String)

Gets the deployed application list. For more functionality, use GetDeployedApplicationPagedListAsync(PagedDeployedApplicationQueryDescription). This method will be deprecated in the future.

GetDeployedApplicationListAsync(String, Uri, TimeSpan, CancellationToken)

Gets the deployed applications on a node with the specified application name. For more functionality, use GetDeployedApplicationPagedListAsync(PagedDeployedApplicationQueryDescription, TimeSpan, CancellationToken). This method will be deprecated in the future.

GetDeployedApplicationListAsync(String, Uri)

Gets the deployed applications on a node with the specified application name. For more functionality, use GetDeployedApplicationPagedListAsync(PagedDeployedApplicationQueryDescription). This method will be deprecated in the future.

public System.Threading.Tasks.Task<System.Fabric.Query.DeployedApplicationList> GetDeployedApplicationListAsync (string nodeName, Uri applicationNameFilter);
member this.GetDeployedApplicationListAsync : string * Uri -> System.Threading.Tasks.Task<System.Fabric.Query.DeployedApplicationList>
Public Function GetDeployedApplicationListAsync (nodeName As String, applicationNameFilter As Uri) As Task(Of DeployedApplicationList)

Parameters

nodeName
String

The name of the node to get applications for. This is a case-sensitive exact match. This value should not be null or empty, and if the node name does not match any node on the cluster, an exception is thrown.

applicationNameFilter
Uri

Filter results to include only applications matching this application name.

Returns

A task that represents the asynchronous query operation.

The returned task contains the list of deployed applications as DeployedApplicationList.

Exceptions

This operation has a timeout of 60 seconds.

See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.

For this query, this exception usually means that the given node name does not match any node in the cluster.

Applies to

GetDeployedApplicationListAsync(String)

Gets the deployed application list. For more functionality, use GetDeployedApplicationPagedListAsync(PagedDeployedApplicationQueryDescription). This method will be deprecated in the future.

public System.Threading.Tasks.Task<System.Fabric.Query.DeployedApplicationList> GetDeployedApplicationListAsync (string nodeName);
member this.GetDeployedApplicationListAsync : string -> System.Threading.Tasks.Task<System.Fabric.Query.DeployedApplicationList>
Public Function GetDeployedApplicationListAsync (nodeName As String) As Task(Of DeployedApplicationList)

Parameters

nodeName
String

The name of the node to get applications for. This is a case-sensitive exact match. This value should not be null or empty, and if the node name does not match any node on the cluster, an exception is thrown.

Returns

A task that represents the asynchronous query operation.

The returned task contains the list of deployed applications as DeployedApplicationList.

Exceptions

This operation has a timeout of 60 seconds.

See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.

For this query, this exception usually means that the given node name does not match any node in the cluster.

Applies to

GetDeployedApplicationListAsync(String, Uri, TimeSpan, CancellationToken)

Gets the deployed applications on a node with the specified application name. For more functionality, use GetDeployedApplicationPagedListAsync(PagedDeployedApplicationQueryDescription, TimeSpan, CancellationToken). This method will be deprecated in the future.

public System.Threading.Tasks.Task<System.Fabric.Query.DeployedApplicationList> GetDeployedApplicationListAsync (string nodeName, Uri applicationNameFilter, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetDeployedApplicationListAsync : string * Uri * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.DeployedApplicationList>
Public Function GetDeployedApplicationListAsync (nodeName As String, applicationNameFilter As Uri, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of DeployedApplicationList)

Parameters

nodeName
String

The name of the node to get applications for. This is a case-sensitive exact match. This value should not be null or empty, and if the node name does not match any node on the cluster, an exception is thrown.

applicationNameFilter
Uri

Filter results to include only applications matching this application name.

timeout
TimeSpan

Specifies the duration this operation has to complete before timing out.

cancellationToken
CancellationToken

Propagates notification that operations should be canceled.

Returns

A task that represents the asynchronous query operation.

The returned task contains the list of deployed applications as DeployedApplicationList.

Exceptions

For this query, this exception usually means that the given node name does not match any node in the cluster.

Applies to