本文整理汇总了Java中com.amazonaws.services.ec2.model.GetPasswordDataResult类的典型用法代码示例。如果您正苦于以下问题:Java GetPasswordDataResult类的具体用法?Java GetPasswordDataResult怎么用?Java GetPasswordDataResult使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GetPasswordDataResult类属于com.amazonaws.services.ec2.model包,在下文中一共展示了GetPasswordDataResult类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: waitGetPasswordData
import com.amazonaws.services.ec2.model.GetPasswordDataResult; //导入依赖的package包/类
public void waitGetPasswordData(AwsProcessClient awsProcessClient, Long instanceNo) {
AwsInstance awsInstance = awsInstanceDao.read(instanceNo);
String instanceId = awsInstance.getInstanceId();
GetPasswordDataRequest request = new GetPasswordDataRequest();
request.withInstanceId(instanceId);
while (true) {
GetPasswordDataResult result = awsProcessClient.getEc2Client().getPasswordData(request);
if (StringUtils.isNotEmpty(result.getPasswordData())) {
break;
}
try {
Thread.sleep(1000L * awsProcessClient.getDescribeInterval());
} catch (InterruptedException ignore) {
}
}
}
示例2: getPasswordData
import com.amazonaws.services.ec2.model.GetPasswordDataResult; //导入依赖的package包/类
protected String getPasswordData(Long instanceNo) {
Instance instance = instanceDao.read(instanceNo);
Farm farm = farmDao.read(instance.getFarmNo());
AwsProcessClient awsProcessClient = awsProcessClientFactory.createAwsProcessClient(farm.getUserNo(),
instance.getPlatformNo());
AwsInstance awsInstance = awsInstanceDao.read(instanceNo);
// パスワードデータの取得
GetPasswordDataRequest request = new GetPasswordDataRequest();
request.withInstanceId(awsInstance.getInstanceId());
GetPasswordDataResult result = awsProcessClient.getEc2Client().getPasswordData(request);
return result.getPasswordData();
}
示例3: passwordData
import com.amazonaws.services.ec2.model.GetPasswordDataResult; //导入依赖的package包/类
@Override
public GetPasswordDataResult passwordData(GetPasswordDataRequest request,
ResultCapture<GetPasswordDataResult> extractor) {
ActionResult result = resource.performAction("PasswordData", request,
extractor);
if (result == null) return null;
return (GetPasswordDataResult) result.getData();
}
示例4: getPasswordData
import com.amazonaws.services.ec2.model.GetPasswordDataResult; //导入依赖的package包/类
@Override
public GetPasswordDataResult getPasswordData(GetPasswordDataRequest getPasswordDataRequest) throws AmazonServiceException, AmazonClientException {
throw new UnsupportedOperationException("Not supported in mock");
}
示例5: passwordData
import com.amazonaws.services.ec2.model.GetPasswordDataResult; //导入依赖的package包/类
/**
* Performs the <code>PasswordData</code> action.
*
* <p>
* The following request parameters will be populated from the data of this
* <code>Instance</code> resource, and any conflicting parameter value set
* in the request will be overridden:
* <ul>
* <li>
* <b><code>InstanceId</code></b>
* - mapped from the <code>Id</code> identifier.
* </li>
* </ul>
*
* <p>
*
* @return The response of the low-level client operation associated with
* this resource action.
* @see GetPasswordDataRequest
*/
GetPasswordDataResult passwordData(GetPasswordDataRequest request);