3
3
*/
4
4
package com .oracle .bmc .core ;
5
5
6
- import com .oracle .bmc .core .model .*;
7
6
import com .oracle .bmc .core .requests .*;
8
7
import com .oracle .bmc .core .responses .*;
9
8
@@ -38,7 +37,8 @@ public class ComputeWaiters {
38
37
* @return A new Waiter instance.
39
38
*/
40
39
public Waiter <GetConsoleHistoryRequest , GetConsoleHistoryResponse > forConsoleHistory (
41
- GetConsoleHistoryRequest request , ConsoleHistory .LifecycleState targetState ) {
40
+ GetConsoleHistoryRequest request ,
41
+ com .oracle .bmc .core .model .ConsoleHistory .LifecycleState targetState ) {
42
42
return forConsoleHistory (Waiters .DEFAULT_POLLING_WAITER , request , targetState );
43
43
}
44
44
@@ -53,7 +53,7 @@ public Waiter<GetConsoleHistoryRequest, GetConsoleHistoryResponse> forConsoleHis
53
53
*/
54
54
public Waiter <GetConsoleHistoryRequest , GetConsoleHistoryResponse > forConsoleHistory (
55
55
GetConsoleHistoryRequest request ,
56
- ConsoleHistory .LifecycleState targetState ,
56
+ com . oracle . bmc . core . model . ConsoleHistory .LifecycleState targetState ,
57
57
TerminationStrategy terminationStrategy ,
58
58
DelayStrategy delayStrategy ) {
59
59
return forConsoleHistory (
@@ -64,7 +64,7 @@ public Waiter<GetConsoleHistoryRequest, GetConsoleHistoryResponse> forConsoleHis
64
64
private Waiter <GetConsoleHistoryRequest , GetConsoleHistoryResponse > forConsoleHistory (
65
65
BmcGenericWaiter waiter ,
66
66
final GetConsoleHistoryRequest request ,
67
- final ConsoleHistory .LifecycleState targetState ) {
67
+ final com . oracle . bmc . core . model . ConsoleHistory .LifecycleState targetState ) {
68
68
return new SimpleWaiterImpl <>(
69
69
executorService ,
70
70
waiter .toCallable (
@@ -95,7 +95,7 @@ public boolean apply(GetConsoleHistoryResponse response) {
95
95
* @return A new Waiter instance.
96
96
*/
97
97
public Waiter <GetImageRequest , GetImageResponse > forImage (
98
- GetImageRequest request , Image .LifecycleState targetState ) {
98
+ GetImageRequest request , com . oracle . bmc . core . model . Image .LifecycleState targetState ) {
99
99
return forImage (Waiters .DEFAULT_POLLING_WAITER , request , targetState );
100
100
}
101
101
@@ -110,7 +110,7 @@ public Waiter<GetImageRequest, GetImageResponse> forImage(
110
110
*/
111
111
public Waiter <GetImageRequest , GetImageResponse > forImage (
112
112
GetImageRequest request ,
113
- Image .LifecycleState targetState ,
113
+ com . oracle . bmc . core . model . Image .LifecycleState targetState ,
114
114
TerminationStrategy terminationStrategy ,
115
115
DelayStrategy delayStrategy ) {
116
116
return forImage (
@@ -121,7 +121,7 @@ public Waiter<GetImageRequest, GetImageResponse> forImage(
121
121
private Waiter <GetImageRequest , GetImageResponse > forImage (
122
122
BmcGenericWaiter waiter ,
123
123
final GetImageRequest request ,
124
- final Image .LifecycleState targetState ) {
124
+ final com . oracle . bmc . core . model . Image .LifecycleState targetState ) {
125
125
return new SimpleWaiterImpl <>(
126
126
executorService ,
127
127
waiter .toCallable (
@@ -138,7 +138,7 @@ public boolean apply(GetImageResponse response) {
138
138
return response .getImage ().getLifecycleState () == targetState ;
139
139
}
140
140
},
141
- targetState == Image .LifecycleState .Deleted ),
141
+ targetState == com . oracle . bmc . core . model . Image .LifecycleState .Deleted ),
142
142
request );
143
143
}
144
144
@@ -150,7 +150,8 @@ public boolean apply(GetImageResponse response) {
150
150
* @return A new Waiter instance.
151
151
*/
152
152
public Waiter <GetInstanceRequest , GetInstanceResponse > forInstance (
153
- GetInstanceRequest request , Instance .LifecycleState targetState ) {
153
+ GetInstanceRequest request ,
154
+ com .oracle .bmc .core .model .Instance .LifecycleState targetState ) {
154
155
return forInstance (Waiters .DEFAULT_POLLING_WAITER , request , targetState );
155
156
}
156
157
@@ -165,7 +166,7 @@ public Waiter<GetInstanceRequest, GetInstanceResponse> forInstance(
165
166
*/
166
167
public Waiter <GetInstanceRequest , GetInstanceResponse > forInstance (
167
168
GetInstanceRequest request ,
168
- Instance .LifecycleState targetState ,
169
+ com . oracle . bmc . core . model . Instance .LifecycleState targetState ,
169
170
TerminationStrategy terminationStrategy ,
170
171
DelayStrategy delayStrategy ) {
171
172
return forInstance (
@@ -176,7 +177,7 @@ public Waiter<GetInstanceRequest, GetInstanceResponse> forInstance(
176
177
private Waiter <GetInstanceRequest , GetInstanceResponse > forInstance (
177
178
BmcGenericWaiter waiter ,
178
179
final GetInstanceRequest request ,
179
- final Instance .LifecycleState targetState ) {
180
+ final com . oracle . bmc . core . model . Instance .LifecycleState targetState ) {
180
181
return new SimpleWaiterImpl <>(
181
182
executorService ,
182
183
waiter .toCallable (
@@ -193,7 +194,8 @@ public boolean apply(GetInstanceResponse response) {
193
194
return response .getInstance ().getLifecycleState () == targetState ;
194
195
}
195
196
},
196
- targetState == Instance .LifecycleState .Terminated ),
197
+ targetState
198
+ == com .oracle .bmc .core .model .Instance .LifecycleState .Terminated ),
197
199
request );
198
200
}
199
201
@@ -205,7 +207,8 @@ public boolean apply(GetInstanceResponse response) {
205
207
* @return A new Waiter instance.
206
208
*/
207
209
public Waiter <GetVolumeAttachmentRequest , GetVolumeAttachmentResponse > forVolumeAttachment (
208
- GetVolumeAttachmentRequest request , VolumeAttachment .LifecycleState targetState ) {
210
+ GetVolumeAttachmentRequest request ,
211
+ com .oracle .bmc .core .model .VolumeAttachment .LifecycleState targetState ) {
209
212
return forVolumeAttachment (Waiters .DEFAULT_POLLING_WAITER , request , targetState );
210
213
}
211
214
@@ -220,7 +223,7 @@ public Waiter<GetVolumeAttachmentRequest, GetVolumeAttachmentResponse> forVolume
220
223
*/
221
224
public Waiter <GetVolumeAttachmentRequest , GetVolumeAttachmentResponse > forVolumeAttachment (
222
225
GetVolumeAttachmentRequest request ,
223
- VolumeAttachment .LifecycleState targetState ,
226
+ com . oracle . bmc . core . model . VolumeAttachment .LifecycleState targetState ,
224
227
TerminationStrategy terminationStrategy ,
225
228
DelayStrategy delayStrategy ) {
226
229
return forVolumeAttachment (
@@ -231,7 +234,7 @@ public Waiter<GetVolumeAttachmentRequest, GetVolumeAttachmentResponse> forVolume
231
234
private Waiter <GetVolumeAttachmentRequest , GetVolumeAttachmentResponse > forVolumeAttachment (
232
235
BmcGenericWaiter waiter ,
233
236
final GetVolumeAttachmentRequest request ,
234
- final VolumeAttachment .LifecycleState targetState ) {
237
+ final com . oracle . bmc . core . model . VolumeAttachment .LifecycleState targetState ) {
235
238
return new SimpleWaiterImpl <>(
236
239
executorService ,
237
240
waiter .toCallable (
0 commit comments