mirror of https://github.com/apache/jclouds.git
corrected formating issues and added headers
This commit is contained in:
parent
5a8f0c1743
commit
f63c5a44c6
|
@ -1,3 +1,21 @@
|
|||
/**
|
||||
* Licensed to jclouds, Inc. (jclouds) under one or more
|
||||
* contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. jclouds licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.jclouds.cloudservers.compute.predicates;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
@ -17,6 +35,11 @@ import com.google.common.base.Function;
|
|||
import com.google.common.base.Predicate;
|
||||
import com.google.common.collect.Iterables;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author David Alves
|
||||
*
|
||||
*/
|
||||
public final class GetImageWhenStatusActivePredicateWithResult implements PredicateWithResult<Integer, Image> {
|
||||
|
||||
@Resource
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
/**
|
||||
* Licensed to jclouds, Inc. (jclouds) under one or more
|
||||
* contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. jclouds licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.jclouds.ec2.compute.predicates;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
@ -17,6 +35,11 @@ import org.jclouds.predicates.PredicateWithResult;
|
|||
|
||||
import com.google.common.collect.Iterables;
|
||||
|
||||
/**
|
||||
* §
|
||||
* @author David Alves
|
||||
*
|
||||
*/
|
||||
public final class GetImageWhenStatusAvailablePredicateWithResult implements PredicateWithResult<String, Image> {
|
||||
|
||||
@Resource
|
||||
|
|
|
@ -49,6 +49,12 @@ import org.jclouds.predicates.Retryables;
|
|||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Nova implementation of {@link ImageExtension}
|
||||
*
|
||||
* @author David Alves
|
||||
*
|
||||
*/
|
||||
@Singleton
|
||||
public class NovaImageExtension implements ImageExtension {
|
||||
|
||||
|
|
|
@ -22,10 +22,10 @@ import com.google.common.annotations.Beta;
|
|||
import com.google.common.base.Predicate;
|
||||
|
||||
@Beta
|
||||
public interface PredicateWithResult<Input, Result> extends Predicate<Input> {
|
||||
|
||||
public interface PredicateWithResult<Input,Result> extends Predicate<Input> {
|
||||
|
||||
Result getResult();
|
||||
|
||||
|
||||
Throwable getLastFailure();
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -63,6 +63,12 @@ import com.google.common.collect.Iterables;
|
|||
import com.google.common.util.concurrent.Futures;
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Virtualbox implementation of {@link ImageExtension}
|
||||
*
|
||||
* @author David Alves
|
||||
*
|
||||
*/
|
||||
@Singleton
|
||||
public class VirtualBoxImageExtension implements ImageExtension {
|
||||
|
||||
|
|
Loading…
Reference in New Issue