public class ResourceStateVerifier
extends java.lang.Object
SingleNodeApplication
テストで使用します。SingleNodeIntegrationTestSupport
コンストラクターと説明 |
---|
ResourceStateVerifier(DeploymentStatusRepository<?,java.lang.String> deploymentStatusRepository, DomainRepository<? extends BaseDefinition,java.lang.String> domainRepository) |
修飾子と型 | メソッドと説明 |
---|---|
boolean | waitForCreate(java.lang.String resourceName) リソース定義が作成されるまで待ちます。 |
DeploymentUnitStatus.State | waitForDeploy(java.lang.String resourceName) 名前付きリソースが完全にデプロイされるまで待機します。 |
DeploymentUnitStatus.State | waitForDeploy(java.lang.String resourceName, boolean allowIncomplete) 名前付きリソースがデプロイされるまで待機します。 |
boolean | waitForDestroy(java.lang.String resourceName) リソース定義が破棄されるまで待機します。 |
DeploymentUnitStatus.State | waitForUndeploy(java.lang.String resourceName) 名前付きリソースがアンデプロイされるまで待機します。 |
public ResourceStateVerifier(DeploymentStatusRepository<?,java.lang.String> deploymentStatusRepository, DomainRepository<? extends BaseDefinition,java.lang.String> domainRepository)
deploymentStatusRepository
- デプロイの状態を追跡するリポジトリ domainRepository
- リソース定義リポジトリ public DeploymentUnitStatus.State waitForDeploy(java.lang.String resourceName)
resourceName
- デプロイされるリソースの名前 public DeploymentUnitStatus.State waitForDeploy(java.lang.String resourceName, boolean allowIncomplete)
resourceName
- デプロイされるリソースの名前 allowIncomplete
- true の場合、State.incomplete または State.deployed を返します。public DeploymentUnitStatus.State waitForUndeploy(java.lang.String resourceName)
resourceName
- アンデプロイされるリソースの名前 public boolean waitForCreate(java.lang.String resourceName)
resourceName
- the name of the resource being created.public boolean waitForDestroy(java.lang.String resourceName)
resourceName
- the name of the resource being destroyed.