88import java .util .logging .Logger ;
99
1010import org .openstack .model .compute .Server ;
11- import org .openstack .model .exceptions .OpenstackException ;
11+ import org .openstack .model .exceptions .OpenStackException ;
1212
1313import com .google .common .collect .Lists ;
1414
@@ -38,7 +38,7 @@ public AsyncServerOperation(TenantResource client, Server returnValue, String se
3838 this .finishStates = finishStates ;
3939 }
4040
41- Server waitForState (long timeout , TimeUnit unit ) throws OpenstackException {
41+ Server waitForState (long timeout , TimeUnit unit ) throws OpenStackException {
4242 try {
4343 long timeoutAt = unit != null ? System .currentTimeMillis () + unit .toMillis (timeout ) : Long .MAX_VALUE ;
4444 while (true ) {
@@ -70,7 +70,7 @@ Server waitForState(long timeout, TimeUnit unit) throws OpenstackException {
7070 }
7171
7272 if (!acceptableTransitionStates .contains (status )) {
73- throw new OpenstackException ("Server is in unexpected state: " + status );
73+ throw new OpenStackException ("Server is in unexpected state: " + status );
7474 }
7575
7676 if (server != null ) {
@@ -80,12 +80,12 @@ Server waitForState(long timeout, TimeUnit unit) throws OpenstackException {
8080 }
8181
8282 if (System .currentTimeMillis () > timeoutAt )
83- throw new OpenstackException ("Server did not transition to expected state within timeout" );
83+ throw new OpenStackException ("Server did not transition to expected state within timeout" );
8484
8585 try {
8686 Thread .sleep (POLL_INTERVAL_MILLISECONDS );
8787 } catch (InterruptedException e ) {
88- throw new OpenstackException (e .getMessage (), e );
88+ throw new OpenStackException (e .getMessage (), e );
8989 }
9090
9191 }
@@ -105,33 +105,33 @@ public Server get() {
105105 return get (0 , null );
106106 } catch (Exception e ) {
107107 // TimeoutException shouldn't happen without a timeout specified!!
108- throw new OpenstackException ("Unexpected error" , e );
108+ throw new OpenStackException ("Unexpected error" , e );
109109 }
110110 }
111111
112112 @ Override
113113 public Server get (long timeout , TimeUnit unit ) throws InterruptedException , ExecutionException , TimeoutException {
114114 try {
115115 return waitComplete (timeout , unit );
116- } catch (OpenstackException e ) {
116+ } catch (OpenStackException e ) {
117117 throw new ExecutionException ("Error with OpenStack" , e );
118118 }
119119 }
120120
121121 /**
122122 * This method throws OpenStackComputeException instead of wrapping it in ExecutionException
123123 *
124- * @throws OpenstackException
124+ * @throws OpenStackException
125125 */
126126 public Server waitComplete (long timeout , TimeUnit unit ) throws InterruptedException , TimeoutException ,
127- OpenstackException {
127+ OpenStackException {
128128 return this .waitForState (timeout , unit );
129129 }
130130
131131 /**
132132 * This method throws OpenStackComputeException instead of wrapping it in ExecutionException
133133 */
134- public Server waitComplete () throws InterruptedException , OpenstackException {
134+ public Server waitComplete () throws InterruptedException , OpenStackException {
135135 try {
136136 return waitComplete (0 , null );
137137 } catch (TimeoutException e ) {
0 commit comments