You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ab...@apache.org on 2013/05/12 16:42:47 UTC
[02/18] JCLOUDS-25. Removing sandbox-*.
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/TwitterClient.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/TwitterClient.java b/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/TwitterClient.java
deleted file mode 100644
index 1dded41..0000000
--- a/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/TwitterClient.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * 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.twitter;
-
-import java.util.SortedSet;
-import java.util.concurrent.TimeUnit;
-
-import org.jclouds.concurrent.Timeout;
-import org.jclouds.twitter.domain.Status;
-
-/**
- * Provides access to Twitter via their REST API.
- * <p/>
- *
- * @see <a href= "http://apiwiki.twitter.com/Twitter-REST-API-Method" />
- * @see TwitterAsyncClient
- * @author Adrian Cole
- */
-@Timeout(duration = 4, timeUnit = TimeUnit.SECONDS)
-public interface TwitterClient {
-
- SortedSet<Status> getMyMentions();
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/TwitterContextBuilder.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/TwitterContextBuilder.java b/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/TwitterContextBuilder.java
deleted file mode 100644
index a2fed55..0000000
--- a/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/TwitterContextBuilder.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * 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.twitter;
-
-import java.util.List;
-import java.util.Properties;
-
-import org.jclouds.rest.RestContextBuilder;
-import org.jclouds.twitter.config.TwitterRestClientModule;
-
-import com.google.inject.Module;
-
-/**
- *
- * @author Adrian Cole
- */
-public class TwitterContextBuilder extends
- RestContextBuilder<TwitterClient, TwitterAsyncClient> {
-
- public TwitterContextBuilder(Properties props) {
- super(TwitterClient.class, TwitterAsyncClient.class, props);
- }
-
- protected void addClientModule(List<Module> modules) {
- modules.add(new TwitterRestClientModule());
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/TwitterPropertiesBuilder.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/TwitterPropertiesBuilder.java b/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/TwitterPropertiesBuilder.java
deleted file mode 100644
index 0a13556..0000000
--- a/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/TwitterPropertiesBuilder.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * 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.twitter;
-
-import static org.jclouds.Constants.PROPERTY_API_VERSION;
-import static org.jclouds.Constants.PROPERTY_ENDPOINT;
-
-import java.util.Properties;
-
-import org.jclouds.PropertiesBuilder;
-
-/**
- * Builds properties used in twitter Clients
- *
- * @author Adrian Cole
- */
-public class TwitterPropertiesBuilder extends PropertiesBuilder {
- @Override
- protected Properties defaultProperties() {
- Properties properties = super.defaultProperties();
- properties.setProperty(PROPERTY_ENDPOINT, "https://api.twitter.com");
- properties.setProperty(PROPERTY_API_VERSION, "1.0");
- return properties;
- }
-
- public TwitterPropertiesBuilder(Properties properties) {
- super(properties);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/config/TwitterRestClientModule.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/config/TwitterRestClientModule.java b/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/config/TwitterRestClientModule.java
deleted file mode 100644
index 81df896..0000000
--- a/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/config/TwitterRestClientModule.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * 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.twitter.config;
-
-import org.jclouds.http.RequiresHttp;
-import org.jclouds.json.config.GsonModule.CDateAdapter;
-import org.jclouds.json.config.GsonModule.DateAdapter;
-import org.jclouds.rest.ConfiguresRestClient;
-import org.jclouds.rest.config.RestClientModule;
-import org.jclouds.twitter.TwitterAsyncClient;
-import org.jclouds.twitter.TwitterClient;
-
-/**
- * Configures the twitter connection.
- *
- * @author Adrian Cole
- */
-@RequiresHttp
-@ConfiguresRestClient
-public class TwitterRestClientModule extends RestClientModule<TwitterClient, TwitterAsyncClient> {
-
- public TwitterRestClientModule() {
- super(TwitterClient.class, TwitterAsyncClient.class);
- }
-
- @Override
- protected void configure() {
- super.configure();
- bind(DateAdapter.class).to(CDateAdapter.class);
- }
-
- @Override
- protected void bindErrorHandlers() {
-// bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(TwitterErrorHandler.class);
-// bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(TwitterErrorHandler.class);
-// bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(TwitterErrorHandler.class);
- }
-
- @Override
- protected void bindRetryHandlers() {
- // TODO
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/domain/Status.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/domain/Status.java b/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/domain/Status.java
deleted file mode 100644
index 2e8406e..0000000
--- a/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/domain/Status.java
+++ /dev/null
@@ -1,197 +0,0 @@
-/**
- * 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.twitter.domain;
-
-import java.util.Date;
-
-import com.google.gson.annotations.SerializedName;
-
-/**
- *
- * @author Adrian Cole
- *
- */
-public class Status implements Comparable<Status> {
- @SerializedName("created_at")
- private Date createdAt;
- private boolean favorited;
- private String geo;
- private long id;
- @SerializedName("in_reply_to_screen_name")
- private String inReplyToScreenName;
- @SerializedName("in_reply_to_status_id")
- private Integer inReplyToStatusId;
- @SerializedName("in_reply_to_user_id")
- private Integer inReplyToUserId;
- private String source;
- private String text;
- private boolean truncated;
- private User user;
-
- public Status() {
- }
-
- public Status(Date createdAt, boolean favorited, String geo, long id,
- String inReplyToScreenName, Integer inReplyToStatusId, Integer inReplyToUserId,
- String source, String text, boolean truncated, User user) {
- this.createdAt = createdAt;
- this.favorited = favorited;
- this.geo = geo;
- this.id = id;
- this.inReplyToScreenName = inReplyToScreenName;
- this.inReplyToStatusId = inReplyToStatusId;
- this.inReplyToUserId = inReplyToUserId;
- this.source = source;
- this.text = text;
- this.truncated = truncated;
- this.user = user;
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((createdAt == null) ? 0 : createdAt.hashCode());
- result = prime * result + (int) (id ^ (id >>> 32));
- result = prime * result + ((text == null) ? 0 : text.hashCode());
- result = prime * result + ((user == null) ? 0 : user.hashCode());
- return result;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- Status other = (Status) obj;
- if (createdAt == null) {
- if (other.createdAt != null)
- return false;
- } else if (!createdAt.equals(other.createdAt))
- return false;
- if (id != other.id)
- return false;
- if (text == null) {
- if (other.text != null)
- return false;
- } else if (!text.equals(other.text))
- return false;
- if (user == null) {
- if (other.user != null)
- return false;
- } else if (!user.equals(other.user))
- return false;
- return true;
- }
-
- public Date getCreatedAt() {
- return createdAt;
- }
-
- public void setCreatedAt(Date createdAt) {
- this.createdAt = createdAt;
- }
-
- public long getId() {
- return id;
- }
-
- public void setId(long id) {
- this.id = id;
- }
-
- public String getText() {
- return text;
- }
-
- public void setText(String text) {
- this.text = text;
- }
-
- public String getSource() {
- return source;
- }
-
- public void setSource(String source) {
- this.source = source;
- }
-
- public boolean isTruncated() {
- return truncated;
- }
-
- public void setTruncated(boolean truncated) {
- this.truncated = truncated;
- }
-
- public Integer getInReplyToStatusId() {
- return inReplyToStatusId;
- }
-
- public void setInReplyToStatusId(Integer inReplyToStatusId) {
- this.inReplyToStatusId = inReplyToStatusId;
- }
-
- public Integer getInReplyToUserId() {
- return inReplyToUserId;
- }
-
- public void setInReplyToUserId(Integer inReplyToUserId) {
- this.inReplyToUserId = inReplyToUserId;
- }
-
- public boolean isFavorited() {
- return favorited;
- }
-
- public void setFavorited(boolean favorited) {
- this.favorited = favorited;
- }
-
- public String getInReplyToScreenName() {
- return inReplyToScreenName;
- }
-
- public void setInReplyToScreenName(String inReplyToScreenName) {
- this.inReplyToScreenName = inReplyToScreenName;
- }
-
- public User getUser() {
- return user;
- }
-
- public void setUser(User user) {
- this.user = user;
- }
-
- public int compareTo(Status o) {
- return (int) ((this == o) ? 0 : id + "".compareTo(o.id + ""));
- }
-
- public void setGeo(String geo) {
- this.geo = geo;
- }
-
- public String getGeo() {
- return geo;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/domain/User.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/domain/User.java b/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/domain/User.java
deleted file mode 100644
index 9ae67c2..0000000
--- a/sandbox-providers/twitter/src/main/java/org/jclouds/twitter/domain/User.java
+++ /dev/null
@@ -1,363 +0,0 @@
-/**
- * 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.twitter.domain;
-
-import java.net.URI;
-import java.util.Date;
-
-import com.google.gson.annotations.SerializedName;
-
-/**
- *
- * @author Adrian Cole
- */
-public class User implements Comparable<User> {
- @SerializedName("created_at")
- private Date createdAt;
- private String description;
- @SerializedName("favourites_count")
- private int favouritesCount;
- @SerializedName("followers_count")
- private int followersCount;
- private boolean following;
- @SerializedName("friends_count")
- private int friendsCount;
- @SerializedName("geo_enabled")
- private boolean geoEnabled;
- private long id;
- private String location;
- private String name;
- private boolean notifications;
- @SerializedName("profile_background_color")
- private String profileBackgroundColor;
- @SerializedName("profile_background_image_url")
- private URI profileBackgroundImageUrl;
- @SerializedName("profile_background_tile")
- private boolean profileBackgroundTile;
- @SerializedName("profile_image_url")
- private URI profileImageUrl;
- @SerializedName("profile_link_color")
- private String profileLinkColor;
- @SerializedName("profile_sidebar_border_color")
- private String profileSidebarBorderColor;
- @SerializedName("profile_sidebar_fill_color")
- private String profileSidebarFillColor;
- @SerializedName("profile_text_color")
- private String profileTextColor;
- @SerializedName("protected")
- private boolean isProtected;
- @SerializedName("screen_name")
- private String screenName;
- @SerializedName("statuses_count")
- private int statusesCount;
- @SerializedName("time_zone")
- private String timeZone;
- private URI url;
- @SerializedName("utc_offset")
- private int utcOffset;
- private boolean verified;
-
- public User() {
-
- }
-
- public User(Date createdAt, String description, int favouritesCount, int followersCount,
- boolean following, int friendsCount, boolean geoEnabled, long id, String location,
- String name, boolean notifications, String profileBackgroundColor,
- URI profileBackgroundImageUrl, boolean profileBackgroundTile, URI profileImageUrl,
- String profileLinkColor, String profileSidebarBorderColor,
- String profileSidebarFillColor, String profileTextColor, boolean isProtected,
- String screenName, int statusesCount, String timeZone, URI url, int utcOffset,
- boolean verified) {
- this.createdAt = createdAt;
- this.description = description;
- this.favouritesCount = favouritesCount;
- this.followersCount = followersCount;
- this.following = following;
- this.friendsCount = friendsCount;
- this.setGeoEnabled(geoEnabled);
- this.id = id;
- this.location = location;
- this.name = name;
- this.notifications = notifications;
- this.profileBackgroundColor = profileBackgroundColor;
- this.profileBackgroundImageUrl = profileBackgroundImageUrl;
- this.profileBackgroundTile = profileBackgroundTile;
- this.profileImageUrl = profileImageUrl;
- this.profileLinkColor = profileLinkColor;
- this.profileSidebarBorderColor = profileSidebarBorderColor;
- this.profileSidebarFillColor = profileSidebarFillColor;
- this.profileTextColor = profileTextColor;
- this.isProtected = isProtected;
- this.screenName = screenName;
- this.statusesCount = statusesCount;
- this.timeZone = timeZone;
- this.url = url;
- this.utcOffset = utcOffset;
- this.verified = verified;
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + (int) (id ^ (id >>> 32));
- result = prime * result + ((name == null) ? 0 : name.hashCode());
- result = prime * result + ((screenName == null) ? 0 : screenName.hashCode());
- return result;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- User other = (User) obj;
- if (id != other.id)
- return false;
- if (name == null) {
- if (other.name != null)
- return false;
- } else if (!name.equals(other.name))
- return false;
- if (screenName == null) {
- if (other.screenName != null)
- return false;
- } else if (!screenName.equals(other.screenName))
- return false;
- return true;
- }
-
- public long getId() {
- return id;
- }
-
- public void setId(long id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getScreenName() {
- return screenName;
- }
-
- public void setScreenName(String screenName) {
- this.screenName = screenName;
- }
-
- public String getLocation() {
- return location;
- }
-
- public void setLocation(String location) {
- this.location = location;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public URI getProfileImageUrl() {
- return profileImageUrl;
- }
-
- public void setProfileImageUrl(URI profileImageUrl) {
- this.profileImageUrl = profileImageUrl;
- }
-
- public URI getUrl() {
- return url;
- }
-
- public void setUrl(URI url) {
- this.url = url;
- }
-
- public boolean isProtected() {
- return isProtected;
- }
-
- public void setProtected(boolean isProtected) {
- this.isProtected = isProtected;
- }
-
- public int getFollowersCount() {
- return followersCount;
- }
-
- public void setFollowersCount(int followersCount) {
- this.followersCount = followersCount;
- }
-
- public String getProfileBackgroundColor() {
- return profileBackgroundColor;
- }
-
- public void setProfileBackgroundColor(String profileBackgroundColor) {
- this.profileBackgroundColor = profileBackgroundColor;
- }
-
- public String getProfileTextColor() {
- return profileTextColor;
- }
-
- public void setProfileTextColor(String profileTextColor) {
- this.profileTextColor = profileTextColor;
- }
-
- public String getProfileLinkColor() {
- return profileLinkColor;
- }
-
- public void setProfileLinkColor(String profileLinkColor) {
- this.profileLinkColor = profileLinkColor;
- }
-
- public String getProfileSidebarFillColor() {
- return profileSidebarFillColor;
- }
-
- public void setProfileSidebarFillColor(String profileSidebarFillColor) {
- this.profileSidebarFillColor = profileSidebarFillColor;
- }
-
- public String getProfileSidebarBorderColor() {
- return profileSidebarBorderColor;
- }
-
- public void setProfileSidebarBorderColor(String profileSidebarBorderColor) {
- this.profileSidebarBorderColor = profileSidebarBorderColor;
- }
-
- public int getFriendsCount() {
- return friendsCount;
- }
-
- public void setFriendsCount(int friendsCount) {
- this.friendsCount = friendsCount;
- }
-
- public Date getCreatedAt() {
- return createdAt;
- }
-
- public void setCreatedAt(Date createdAt) {
- this.createdAt = createdAt;
- }
-
- public int getFavouritesCount() {
- return favouritesCount;
- }
-
- public void setFavouritesCount(int favouritesCount) {
- this.favouritesCount = favouritesCount;
- }
-
- public int getUtcOffset() {
- return utcOffset;
- }
-
- public void setUtcOffset(int utcOffset) {
- this.utcOffset = utcOffset;
- }
-
- public String getTimeZone() {
- return timeZone;
- }
-
- public void setTimeZone(String timeZone) {
- this.timeZone = timeZone;
- }
-
- public URI getProfileBackgroundImageUrl() {
- return profileBackgroundImageUrl;
- }
-
- public void setProfileBackgroundImageUrl(URI profileBackgroundImageUrl) {
- this.profileBackgroundImageUrl = profileBackgroundImageUrl;
- }
-
- public boolean isProfileBackgroundTile() {
- return profileBackgroundTile;
- }
-
- public void setProfileBackgroundTile(boolean profileBackgroundTile) {
- this.profileBackgroundTile = profileBackgroundTile;
- }
-
- public int getStatusesCount() {
- return statusesCount;
- }
-
- public void setStatusesCount(int statusesCount) {
- this.statusesCount = statusesCount;
- }
-
- public boolean isNotifications() {
- return notifications;
- }
-
- public void setNotifications(boolean notifications) {
- this.notifications = notifications;
- }
-
- public boolean isFollowing() {
- return following;
- }
-
- public void setFollowing(boolean following) {
- this.following = following;
- }
-
- public boolean isVerified() {
- return verified;
- }
-
- public void setVerified(boolean verified) {
- this.verified = verified;
- }
-
- public int compareTo(User o) {
- if (screenName == null)
- return -1;
- return (this == o) ? 0 : screenName.compareTo(o.screenName);
- }
-
- public void setGeoEnabled(boolean geoEnabled) {
- this.geoEnabled = geoEnabled;
- }
-
- public boolean isGeoEnabled() {
- return geoEnabled;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/twitter/src/test/java/org/jclouds/twitter/TwitterAsyncClientTest.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/twitter/src/test/java/org/jclouds/twitter/TwitterAsyncClientTest.java b/sandbox-providers/twitter/src/test/java/org/jclouds/twitter/TwitterAsyncClientTest.java
deleted file mode 100644
index 9af3006..0000000
--- a/sandbox-providers/twitter/src/test/java/org/jclouds/twitter/TwitterAsyncClientTest.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/**
- * 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.twitter;
-
-import static org.testng.Assert.assertEquals;
-
-import java.io.IOException;
-import java.lang.reflect.Method;
-import java.util.Properties;
-
-import org.jclouds.http.HttpRequest;
-import org.jclouds.http.RequiresHttp;
-import org.jclouds.http.filters.BasicAuthentication;
-import org.jclouds.http.functions.ParseJson;
-import org.jclouds.rest.ConfiguresRestClient;
-import org.jclouds.rest.RestClientTest;
-import org.jclouds.rest.RestContextFactory;
-import org.jclouds.rest.RestContextSpec;
-import org.jclouds.rest.internal.RestAnnotationProcessor;
-import org.jclouds.twitter.config.TwitterRestClientModule;
-import org.testng.annotations.Test;
-
-import com.google.common.collect.Iterables;
-import com.google.inject.Module;
-import com.google.inject.TypeLiteral;
-
-/**
- * Tests annotation parsing of {@code TwitterAsyncClient}
- *
- * @author Adrian Cole
- */
-@Test(groups = "unit")
-public class TwitterAsyncClientTest extends RestClientTest<TwitterAsyncClient> {
- public void testGetMyMentions() throws SecurityException, NoSuchMethodException, IOException {
- Method method = TwitterAsyncClient.class.getMethod("getMyMentions");
- HttpRequest httpRequest = processor.createRequest(method);
-
- assertRequestLineEquals(httpRequest, "GET http://api.twitter.com/statuses/mentions.json HTTP/1.1");
- assertNonPayloadHeadersEqual(httpRequest, "Accept: application/json\n");
- assertPayloadEquals(httpRequest, null, null, false);
-
- // now make sure request filters apply by replaying
- httpRequest = Iterables.getOnlyElement(httpRequest.getFilters()).filter(httpRequest);
- httpRequest = Iterables.getOnlyElement(httpRequest.getFilters()).filter(httpRequest);
-
- assertRequestLineEquals(httpRequest, "GET http://api.twitter.com/statuses/mentions.json HTTP/1.1");
- // for example, using basic authentication, we should get "only one"
- // header
- assertNonPayloadHeadersEqual(httpRequest, "Accept: application/json\nAuthorization: Basic Zm9vOmJhcg==\n");
- assertPayloadEquals(httpRequest, null, null, false);
-
- assertResponseParserClassEquals(method, httpRequest, ParseJson.class);
- assertSaxResponseParserClassEquals(method, null);
- assertExceptionParserClassEquals(method, null);
-
- checkFilters(httpRequest);
-
- }
-
- @Override
- protected void checkFilters(HttpRequest request) {
- assertEquals(request.getFilters().size(), 1);
- assertEquals(request.getFilters().get(0).getClass(), BasicAuthentication.class);
- }
-
- @Override
- protected TypeLiteral<RestAnnotationProcessor<TwitterAsyncClient>> createTypeLiteral() {
- return new TypeLiteral<RestAnnotationProcessor<TwitterAsyncClient>>() {
- };
- }
-
- @Override
- protected Module createModule() {
- return new TwitterRestClientModuleExtension();
- }
-
- @RequiresHttp
- @ConfiguresRestClient
- public static class TwitterRestClientModuleExtension extends TwitterRestClientModule {
-
- // Override here
- }
-
- @Override
- public RestContextSpec<TwitterClient, TwitterAsyncClient> createContextSpec() {
- // TODO take this out, when the service is registered in jclouds-core/rest.properties
- Properties restProperties = new Properties();
- restProperties.setProperty("twitter.contextbuilder", "org.jclouds.twitter.TwitterContextBuilder");
- restProperties.setProperty("twitter.propertiesbuilder", "org.jclouds.twitter.TwitterPropertiesBuilder");
-
- Properties props = new Properties();
- props.setProperty("twitter.endpoint", "http://api.twitter.com");
- return new RestContextFactory(restProperties).createContextSpec("twitter", "foo", "bar", props);
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/twitter/src/test/java/org/jclouds/twitter/TwitterClientLiveTest.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/twitter/src/test/java/org/jclouds/twitter/TwitterClientLiveTest.java b/sandbox-providers/twitter/src/test/java/org/jclouds/twitter/TwitterClientLiveTest.java
deleted file mode 100644
index 0ac3cf8..0000000
--- a/sandbox-providers/twitter/src/test/java/org/jclouds/twitter/TwitterClientLiveTest.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/**
- * 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.twitter;
-
-import static com.google.common.base.Preconditions.checkNotNull;
-import static org.testng.Assert.assertTrue;
-
-import java.util.Properties;
-import java.util.SortedSet;
-
-import org.jclouds.Constants;
-import org.jclouds.logging.log4j.config.Log4JLoggingModule;
-import org.jclouds.rest.RestContext;
-import org.jclouds.rest.RestContextFactory;
-import org.jclouds.twitter.domain.Status;
-import org.testng.annotations.AfterGroups;
-import org.testng.annotations.BeforeGroups;
-import org.testng.annotations.Test;
-
-import com.google.common.collect.ImmutableSet;
-import com.google.inject.Module;
-
-/**
- * Tests behavior of {@code TwitterClient}
- *
- * @author Adrian Cole
- */
-@Test(groups = "live", sequential = true)
-public class TwitterClientLiveTest {
-
- protected TwitterClient client;
- protected RestContext<TwitterClient, TwitterAsyncClient> context;
-
- protected String provider = "twitter";
- protected String identity;
- protected String credential;
- protected String endpoint;
- protected String apiVersion;
-
- protected void setupCredentials() {
- identity = checkNotNull(System.getProperty("test." + provider + ".identity"), "test." + provider + ".identity");
- credential = System.getProperty("test." + provider + ".credential");
- endpoint = System.getProperty("test." + provider + ".endpoint");
- apiVersion = System.getProperty("test." + provider + ".api-version");
- }
-
- protected Properties setupProperties() {
- Properties overrides = new Properties();
- overrides.setProperty(Constants.PROPERTY_TRUST_ALL_CERTS, "true");
- overrides.setProperty(Constants.PROPERTY_RELAX_HOSTNAME, "true");
- overrides.setProperty(provider + ".identity", identity);
- if (credential != null)
- overrides.setProperty(provider + ".credential", credential);
- if (endpoint != null)
- overrides.setProperty(provider + ".endpoint", endpoint);
- if (apiVersion != null)
- overrides.setProperty(provider + ".api-version", apiVersion);
- return overrides;
- }
-
- @BeforeGroups(groups = "live")
- public void setupClient() {
- setupCredentials();
- Properties overrides = setupProperties();
-
- //TODO take this out, when the service is registered in jclouds-core/rest.properties
- Properties restProperties = new Properties();
- restProperties.setProperty("twitter.contextbuilder", "org.jclouds.twitter.TwitterContextBuilder");
- restProperties.setProperty("twitter.propertiesbuilder", "org.jclouds.twitter.TwitterPropertiesBuilder");
-
- context = new RestContextFactory(restProperties).createContext(provider, ImmutableSet.<Module> of(new Log4JLoggingModule()),
- overrides);
-
- client = context.getApi();
- }
-
- @AfterGroups(groups = "live")
- void tearDown() {
- if (context != null)
- context.close();
- }
-
- public void testGetMyMentions() throws Exception {
- SortedSet<Status> response = client.getMyMentions();
- assert null != response;
- long mentions = response.size();
- assertTrue(mentions >= 0);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/twitter/src/test/resources/log4j.xml
----------------------------------------------------------------------
diff --git a/sandbox-providers/twitter/src/test/resources/log4j.xml b/sandbox-providers/twitter/src/test/resources/log4j.xml
deleted file mode 100644
index 34f9bf6..0000000
--- a/sandbox-providers/twitter/src/test/resources/log4j.xml
+++ /dev/null
@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-
- <!--
- For more configuration infromation and examples see the Apache Log4j
- website: http://logging.apache.org/log4j/
- -->
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
- debug="false">
-
- <!-- A time/date based rolling appender -->
- <appender name="WIREFILE" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="target/test-data/jclouds-wire.log" />
- <param name="Append" value="true" />
-
- <!-- Rollover at midnight each day -->
- <param name="DatePattern" value="'.'yyyy-MM-dd" />
-
- <param name="Threshold" value="TRACE" />
-
- <layout class="org.apache.log4j.PatternLayout">
- <!-- The default pattern: Date Priority [Category] Message\n -->
- <param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n" />
-
- <!--
- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
- <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x)
- %m%n"/>
- -->
- </layout>
- </appender>
-
- <!-- A time/date based rolling appender -->
- <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="target/test-data/jclouds.log" />
- <param name="Append" value="true" />
-
- <!-- Rollover at midnight each day -->
- <param name="DatePattern" value="'.'yyyy-MM-dd" />
-
- <param name="Threshold" value="TRACE" />
-
- <layout class="org.apache.log4j.PatternLayout">
- <!-- The default pattern: Date Priority [Category] Message\n -->
- <param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n" />
-
- <!--
- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
- <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x)
- %m%n"/>
- -->
- </layout>
- </appender>
-
- <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
- <appender-ref ref="FILE" />
- </appender>
-
- <appender name="ASYNCWIRE" class="org.apache.log4j.AsyncAppender">
- <appender-ref ref="WIREFILE" />
- </appender>
-
- <!-- ================ -->
- <!-- Limit categories -->
- <!-- ================ -->
-
- <category name="org.jclouds">
- <priority value="DEBUG" />
- <appender-ref ref="ASYNC" />
- </category>
-
- <category name="jclouds.headers">
- <priority value="DEBUG" />
- <appender-ref ref="ASYNCWIRE" />
- </category><!--
-
- <category name="jclouds.wire">
- <priority value="DEBUG" />
- <appender-ref ref="ASYNCWIRE" />
- </category>
-
- --><!-- ======================= -->
- <!-- Setup the Root category -->
- <!-- ======================= -->
-
- <root>
- <priority value="WARN" />
- </root>
-
-</log4j:configuration>
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/twitter/src/test/resources/test_mentions.json
----------------------------------------------------------------------
diff --git a/sandbox-providers/twitter/src/test/resources/test_mentions.json b/sandbox-providers/twitter/src/test/resources/test_mentions.json
deleted file mode 100644
index 19e6deb..0000000
--- a/sandbox-providers/twitter/src/test/resources/test_mentions.json
+++ /dev/null
@@ -1,77 +0,0 @@
-[ { "created_at" : "Sat Oct 31 09:35:27 +0000 2009",
- "favorited" : false,
- "geo" : null,
- "id" : 5310690603,
- "in_reply_to_screen_name" : null,
- "in_reply_to_status_id" : null,
- "in_reply_to_user_id" : null,
- "source" : "<a href=\"http://www.tweetdeck.com/\" rel=\"nofollow\">TweetDeck</a>",
- "text" : "RT @jclouds: live multi #cloud demo of jclouds connecting to 3 storage clouds from google appengine http://is.gd/4IXMh",
- "truncated" : false,
- "user" : { "created_at" : "Tue Apr 28 15:29:42 +0000 2009",
- "description" : "Some random guy who seems to care about cloud collisions at siliconANGLE.com",
- "favourites_count" : 245,
- "followers_count" : 572,
- "following" : false,
- "friends_count" : 325,
- "geo_enabled" : false,
- "id" : 36093693,
- "location" : "San Francisco ",
- "name" : "James Watters",
- "notifications" : false,
- "profile_background_color" : "C6E2EE",
- "profile_background_image_url" : "http://a1.twimg.com/profile_background_images/24067016/17361976.jpg",
- "profile_background_tile" : true,
- "profile_image_url" : "http://a3.twimg.com/profile_images/445071063/tiktaalik-transitional-fossil_normal.png",
- "profile_link_color" : "1F98C7",
- "profile_sidebar_border_color" : "C6E2EE",
- "profile_sidebar_fill_color" : "DAECF4",
- "profile_text_color" : "663B12",
- "protected" : false,
- "screen_name" : "wattersjames",
- "statuses_count" : 1964,
- "time_zone" : "Pacific Time (US & Canada)",
- "url" : "http://siliconangle.net/ver2/author/jwatters/",
- "utc_offset" : -28800,
- "verified" : false
- }
- },
- { "created_at" : "Sat Oct 31 01:45:14 +0000 2009",
- "favorited" : false,
- "geo" : null,
- "id" : 5303839785,
- "in_reply_to_screen_name" : null,
- "in_reply_to_status_id" : null,
- "in_reply_to_user_id" : null,
- "source" : "<a href=\"http://www.tweetdeck.com/\" rel=\"nofollow\">TweetDeck</a>",
- "text" : "RT @jclouds: come find out about #cloud storage and how to access it from #java in palo alto this Tuesday: http://is.gd/4IFA9",
- "truncated" : false,
- "user" : { "created_at" : "Sat Apr 26 06:13:08 +0000 2008",
- "description" : "Jack of All Trades: Dad to anZel and Arden, VMware, vCloud, Security, Compliance, Former Developer",
- "favourites_count" : 0,
- "followers_count" : 474,
- "following" : false,
- "friends_count" : 199,
- "geo_enabled" : false,
- "id" : 14540593,
- "location" : "Bay Area, CA",
- "name" : "Jian Zhen",
- "notifications" : false,
- "profile_background_color" : "C6E2EE",
- "profile_background_image_url" : "http://s.twimg.com/a/1256778767/images/themes/theme2/bg.gif",
- "profile_background_tile" : false,
- "profile_image_url" : "http://a3.twimg.com/profile_images/64445411/30b8b19_bigger_normal.jpg",
- "profile_link_color" : "1F98C7",
- "profile_sidebar_border_color" : "C6E2EE",
- "profile_sidebar_fill_color" : "DAECF4",
- "profile_text_color" : "663B12",
- "protected" : false,
- "screen_name" : "zhenjl",
- "statuses_count" : 1981,
- "time_zone" : "Pacific Time (US & Canada)",
- "url" : "http://zhen.org",
- "utc_offset" : -28800,
- "verified" : false
- }
- }
-]
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/virtacore-publiccloud-lax/pom.xml
----------------------------------------------------------------------
diff --git a/sandbox-providers/virtacore-publiccloud-lax/pom.xml b/sandbox-providers/virtacore-publiccloud-lax/pom.xml
deleted file mode 100644
index e41a961..0000000
--- a/sandbox-providers/virtacore-publiccloud-lax/pom.xml
+++ /dev/null
@@ -1,125 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- 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.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.jclouds</groupId>
- <artifactId>jclouds-project</artifactId>
- <version>1.5.0-SNAPSHOT</version>
- <relativePath>../../project/pom.xml</relativePath>
- </parent>
- <groupId>org.jclouds.provider</groupId>
- <artifactId>virtacore-publiccloud-lax</artifactId>
- <name>jclouds Virtacore Public Cloud LAX provider</name>
- <description>vCloud implementation targeted to Virtacore's LAX datacenter</description>
-
- <properties>
- <test.virtacore-publiccloud-lax.endpoint>https://cloud.lax.virtacore.com/api/</test.virtacore-publiccloud-lax.endpoint>
- <test.virtacore-publiccloud-lax.api-version>1.0</test.virtacore-publiccloud-lax.api-version>
- <test.virtacore-publiccloud-lax.build-version>1.5.0.464915</test.virtacore-publiccloud-lax.build-version>
- <test.virtacore-publiccloud-lax.identity>FIXME_IDENTITY</test.virtacore-publiccloud-lax.identity>
- <test.virtacore-publiccloud-lax.credential>FIXME_CREDENTIAL</test.virtacore-publiccloud-lax.credential>
- <test.virtacore-publiccloud-lax.image-id></test.virtacore-publiccloud-lax.image-id>
-
- <jclouds.osgi.export>org.jclouds.virtacore.publiccloud*;version="${project.version}"</jclouds.osgi.export>
- <jclouds.osgi.import>org.jclouds*;version="${project.version}",*</jclouds.osgi.import>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.jclouds.api</groupId>
- <artifactId>vcloud</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jclouds.api</groupId>
- <artifactId>vcloud</artifactId>
- <version>${project.version}</version>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jclouds</groupId>
- <artifactId>jclouds-core</artifactId>
- <version>${project.version}</version>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jclouds</groupId>
- <artifactId>jclouds-compute</artifactId>
- <version>${project.version}</version>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jclouds.driver</groupId>
- <artifactId>jclouds-log4j</artifactId>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jclouds.driver</groupId>
- <artifactId>jclouds-sshj</artifactId>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <profiles>
- <profile>
- <id>live</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <executions>
- <execution>
- <id>integration</id>
- <phase>integration-test</phase>
- <goals>
- <goal>test</goal>
- </goals>
- <configuration>
- <systemPropertyVariables>
- <test.virtacore-publiccloud-lax.endpoint>${test.virtacore-publiccloud-lax.endpoint}</test.virtacore-publiccloud-lax.endpoint>
- <test.virtacore-publiccloud-lax.api-version>${test.virtacore-publiccloud-lax.api-version}</test.virtacore-publiccloud-lax.api-version>
- <test.virtacore-publiccloud-lax.build-version>${test.virtacore-publiccloud-lax.build-version}</test.virtacore-publiccloud-lax.build-version>
- <test.virtacore-publiccloud-lax.identity>${test.virtacore-publiccloud-lax.identity}</test.virtacore-publiccloud-lax.identity>
- <test.virtacore-publiccloud-lax.credential>${test.virtacore-publiccloud-lax.credential}</test.virtacore-publiccloud-lax.credential>
- <test.virtacore-publiccloud-lax.image-id>${test.virtacore-publiccloud-lax.image-id}</test.virtacore-publiccloud-lax.image-id>
- <test.virtacore-publiccloud-lax.image-id>${test.virtacore-publiccloud-lax.image-id}</test.virtacore-publiccloud-lax.image-id>
- <test.virtacore-publiccloud-lax.image.login-user>${test.virtacore-publiccloud-lax.image.login-user}</test.virtacore-publiccloud-lax.image.login-user>
- <test.virtacore-publiccloud-lax.image.authenticate-sudo>${test.virtacore-publiccloud-lax.image.authenticate-sudo}</test.virtacore-publiccloud-lax.image.authenticate-sudo>
- </systemPropertyVariables>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-</project>
-
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXContextBuilder.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXContextBuilder.java b/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXContextBuilder.java
deleted file mode 100644
index 15ce9ef..0000000
--- a/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXContextBuilder.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * 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.virtacore.publiccloud;
-
-import java.util.List;
-import java.util.Properties;
-
-import org.jclouds.vcloud.VCloudContextBuilder;
-import org.jclouds.virtacore.publiccloud.config.VirtacorePublicCloudLAXComputeServiceContextModule;
-import org.jclouds.virtacore.publiccloud.config.VirtacorePublicCloudLAXRestClientModule;
-
-import com.google.inject.Module;
-
-/**
- *
- * @author Adrian Cole
- *
- */
-public class VirtacorePublicCloudLAXContextBuilder extends VCloudContextBuilder {
-
- public VirtacorePublicCloudLAXContextBuilder(Properties props) {
- super(props);
- }
-
- @Override
- protected void addContextModule(List<Module> modules) {
- modules.add(new VirtacorePublicCloudLAXComputeServiceContextModule());
- }
-
- @Override
- protected void addClientModule(List<Module> modules) {
- modules.add(new VirtacorePublicCloudLAXRestClientModule());
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXPropertiesBuilder.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXPropertiesBuilder.java b/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXPropertiesBuilder.java
deleted file mode 100644
index 804de5c..0000000
--- a/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXPropertiesBuilder.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * 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.virtacore.publiccloud;
-
-import static org.jclouds.Constants.PROPERTY_BUILD_VERSION;
-import static org.jclouds.Constants.PROPERTY_ENDPOINT;
-import static org.jclouds.Constants.PROPERTY_ISO3166_CODES;
-import static org.jclouds.vcloud.reference.VCloudConstants.PROPERTY_VCLOUD_DEFAULT_CATALOG;
-import static org.jclouds.vcloud.reference.VCloudConstants.PROPERTY_VCLOUD_DEFAULT_NETWORK;
-
-import java.util.Properties;
-
-import org.jclouds.vcloud.VCloudPropertiesBuilder;
-
-/**
- *
- * @author Adrian Cole
- */
-public class VirtacorePublicCloudLAXPropertiesBuilder extends VCloudPropertiesBuilder {
- @Override
- protected Properties defaultProperties() {
- Properties properties = super.defaultProperties();
- properties.setProperty(PROPERTY_ISO3166_CODES, "US-CA");
- properties.setProperty(PROPERTY_ENDPOINT, "https://cloud.lax.virtacore.com/api");
- properties.setProperty(PROPERTY_BUILD_VERSION, "1.5.0.464915");
- properties.setProperty(PROPERTY_VCLOUD_DEFAULT_NETWORK, ".*-Public");
- properties.setProperty(PROPERTY_VCLOUD_DEFAULT_CATALOG, "Virtacore Templates - .*");
- return properties;
- }
-
- public VirtacorePublicCloudLAXPropertiesBuilder(Properties properties) {
- super(properties);
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXProviderMetadata.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXProviderMetadata.java b/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXProviderMetadata.java
deleted file mode 100644
index 1f06295..0000000
--- a/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXProviderMetadata.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/**
- * 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.virtacore.publiccloud;
-
-import com.google.common.collect.ImmutableSet;
-
-import java.net.URI;
-import java.util.Set;
-
-import org.jclouds.providers.BaseProviderMetadata;
-import org.jclouds.providers.ProviderMetadata;
-
-/**
- * Implementation of {@link org.jclouds.types.ProviderMetadata} for Virtacore Public Cloud LAX
- *
- * @author Adrian Cole
- */
-public class VirtacorePublicCloudLAXProviderMetadata extends BaseProviderMetadata {
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String getId() {
- return "virtacore-publiccloud-lax";
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String getType() {
- return ProviderMetadata.COMPUTE_TYPE;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String getName() {
- return "Virtacore Public Cloud LAX";
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String getIdentityName() {
- return "User at Organization (user@org)";
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String getCredentialName() {
- return "Password";
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public URI getHomepage() {
- return URI.create("http://www.virtacore.com/vcloud_express.cfm");
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public URI getConsole() {
- return URI.create("https://www.virtacore.com/vcloudlogin.cfm");
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public URI getApiDocumentation() {
- return URI.create("http://kb.virtacore.com/questions/100/Does+the+Virtacore+Public+Cloud+have+an+API%3F");
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Set<String> getLinkedServices() {
- return ImmutableSet.of("virtacore-publiccloud-lax", "virtacore-publiccloud-iad");
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Set<String> getIso3166Codes() {
- return ImmutableSet.of("US-CA");
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/config/VirtacorePublicCloudLAXComputeServiceContextModule.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/config/VirtacorePublicCloudLAXComputeServiceContextModule.java b/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/config/VirtacorePublicCloudLAXComputeServiceContextModule.java
deleted file mode 100644
index d139aaf..0000000
--- a/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/config/VirtacorePublicCloudLAXComputeServiceContextModule.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * 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.virtacore.publiccloud.config;
-
-import static org.jclouds.compute.domain.OsFamily.RHEL;
-
-import org.jclouds.compute.domain.TemplateBuilder;
-import org.jclouds.compute.options.TemplateOptions;
-import org.jclouds.vcloud.compute.config.VCloudComputeServiceContextModule;
-import org.jclouds.vcloud.compute.options.VCloudTemplateOptions;
-import org.jclouds.vcloud.domain.network.IpAddressAllocationMode;
-
-import com.google.inject.Injector;
-
-/**
- *
- * @author Adrian Cole
- */
-public class VirtacorePublicCloudLAXComputeServiceContextModule extends VCloudComputeServiceContextModule {
-
- // CIM ostype does not include version info
- @Override
- protected TemplateBuilder provideTemplate(Injector injector, TemplateBuilder template) {
- return template.osFamily(RHEL).os64Bit(true);
- }
-
- @Override
- protected TemplateOptions provideTemplateOptions(Injector injector, TemplateOptions options) {
- return options.as(VCloudTemplateOptions.class).ipAddressAllocationMode(IpAddressAllocationMode.POOL);
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/config/VirtacorePublicCloudLAXRestClientModule.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/config/VirtacorePublicCloudLAXRestClientModule.java b/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/config/VirtacorePublicCloudLAXRestClientModule.java
deleted file mode 100644
index e089e92..0000000
--- a/sandbox-providers/virtacore-publiccloud-lax/src/main/java/org/jclouds/virtacore/publiccloud/config/VirtacorePublicCloudLAXRestClientModule.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * 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.virtacore.publiccloud.config;
-
-import org.jclouds.http.RequiresHttp;
-import org.jclouds.rest.ConfiguresRestClient;
-import org.jclouds.vcloud.config.VCloudRestClientModule;
-
-/**
- *
- * @author Adrian Cole
- */
-@RequiresHttp
-@ConfiguresRestClient
-public class VirtacorePublicCloudLAXRestClientModule extends VCloudRestClientModule {
-
- @Override
- protected void configure() {
- super.configure();
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/virtacore-publiccloud-lax/src/main/resources/META-INF/services/org.jclouds.providers.ProviderMetadata
----------------------------------------------------------------------
diff --git a/sandbox-providers/virtacore-publiccloud-lax/src/main/resources/META-INF/services/org.jclouds.providers.ProviderMetadata b/sandbox-providers/virtacore-publiccloud-lax/src/main/resources/META-INF/services/org.jclouds.providers.ProviderMetadata
deleted file mode 100644
index 5290e8f..0000000
--- a/sandbox-providers/virtacore-publiccloud-lax/src/main/resources/META-INF/services/org.jclouds.providers.ProviderMetadata
+++ /dev/null
@@ -1 +0,0 @@
-org.jclouds.virtacore.publiccloud.VirtacorePublicCloudLAXProviderMetadata
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/virtacore-publiccloud-lax/src/test/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXProviderTest.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/virtacore-publiccloud-lax/src/test/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXProviderTest.java b/sandbox-providers/virtacore-publiccloud-lax/src/test/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXProviderTest.java
deleted file mode 100644
index 687b7d9..0000000
--- a/sandbox-providers/virtacore-publiccloud-lax/src/test/java/org/jclouds/virtacore/publiccloud/VirtacorePublicCloudLAXProviderTest.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * 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.virtacore.publiccloud;
-
-import org.jclouds.providers.BaseProviderMetadataTest;
-import org.jclouds.providers.ProviderMetadata;
-import org.jclouds.virtacore.publiccloud.VirtacorePublicCloudLAXProviderMetadata;
-import org.testng.annotations.Test;
-
-/**
- *
- * @author Adrian Cole
- */
-@Test(groups = "unit", testName = "VirtacorePublicCloudLAXProviderTest")
-public class VirtacorePublicCloudLAXProviderTest extends BaseProviderMetadataTest {
-
- public VirtacorePublicCloudLAXProviderTest() {
- super(new VirtacorePublicCloudLAXProviderMetadata(), ProviderMetadata.COMPUTE_TYPE);
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/virtacore-publiccloud-lax/src/test/java/org/jclouds/virtacore/publiccloud/compute/VirtacorePublicCloudLAXComputeServiceLiveTest.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/virtacore-publiccloud-lax/src/test/java/org/jclouds/virtacore/publiccloud/compute/VirtacorePublicCloudLAXComputeServiceLiveTest.java b/sandbox-providers/virtacore-publiccloud-lax/src/test/java/org/jclouds/virtacore/publiccloud/compute/VirtacorePublicCloudLAXComputeServiceLiveTest.java
deleted file mode 100644
index ae8c153..0000000
--- a/sandbox-providers/virtacore-publiccloud-lax/src/test/java/org/jclouds/virtacore/publiccloud/compute/VirtacorePublicCloudLAXComputeServiceLiveTest.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * 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.virtacore.publiccloud.compute;
-
-import org.jclouds.vcloud.compute.VCloudComputeServiceLiveTest;
-import org.testng.annotations.Test;
-
-/**
- *
- *
- * @author Adrian Cole
- */
-@Test(groups = "live", enabled = true, singleThreaded = true)
-public class VirtacorePublicCloudLAXComputeServiceLiveTest extends VCloudComputeServiceLiveTest {
- public VirtacorePublicCloudLAXComputeServiceLiveTest() {
- provider = "virtacore-publiccloud-lax";
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/virtacore-publiccloud-lax/src/test/java/org/jclouds/virtacore/publiccloud/compute/VirtacorePublicCloudLAXTemplateBuilderLiveTest.java
----------------------------------------------------------------------
diff --git a/sandbox-providers/virtacore-publiccloud-lax/src/test/java/org/jclouds/virtacore/publiccloud/compute/VirtacorePublicCloudLAXTemplateBuilderLiveTest.java b/sandbox-providers/virtacore-publiccloud-lax/src/test/java/org/jclouds/virtacore/publiccloud/compute/VirtacorePublicCloudLAXTemplateBuilderLiveTest.java
deleted file mode 100644
index 4f8b410..0000000
--- a/sandbox-providers/virtacore-publiccloud-lax/src/test/java/org/jclouds/virtacore/publiccloud/compute/VirtacorePublicCloudLAXTemplateBuilderLiveTest.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
- * 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.virtacore.publiccloud.compute;
-
-import static org.jclouds.compute.util.ComputeServiceUtils.getCores;
-import static org.testng.Assert.assertEquals;
-
-import java.io.IOException;
-import java.util.Set;
-
-import org.jclouds.compute.BaseTemplateBuilderLiveTest;
-import org.jclouds.compute.domain.OsFamily;
-import org.jclouds.compute.domain.OsFamilyVersion64Bit;
-import org.jclouds.compute.domain.Template;
-import org.testng.annotations.Test;
-
-import com.google.common.base.Predicate;
-import com.google.common.base.Predicates;
-import com.google.common.collect.ImmutableSet;
-
-/**
- *
- * @author Adrian Cole
- */
-@Test(groups = "live")
-public class VirtacorePublicCloudLAXTemplateBuilderLiveTest extends BaseTemplateBuilderLiveTest {
-
- public VirtacorePublicCloudLAXTemplateBuilderLiveTest() {
- provider = "virtacore-publiccloud-lax";
- }
-
- @Override
- protected Predicate<OsFamilyVersion64Bit> defineUnsupportedOperatingSystems() {
- return Predicates.not(new Predicate<OsFamilyVersion64Bit>() {
-
- @Override
- public boolean apply(OsFamilyVersion64Bit input) {
- switch (input.family) {
- case RHEL:
- return input.version.equals("");
- case SUSE:
- // vCloud Connector
- return input.version.equals("") && input.is64Bit;
- default:
- return false;
- }
- }
-
- });
- }
-
- // NOTE: almost all virtacore templates are dual-network
- @Override
- public void testDefaultTemplateBuilder() throws IOException {
- Template defaultTemplate = context.getComputeService().templateBuilder().build();
- assertEquals(defaultTemplate.getImage().getName(), "RHEL 5.6 64bit");
- assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), "");
- assertEquals(defaultTemplate.getImage().getOperatingSystem().is64Bit(), true);
- assertEquals(defaultTemplate.getImage().getOperatingSystem().getFamily(), OsFamily.RHEL);
- assertEquals(getCores(defaultTemplate.getHardware()), 2.0d);
- }
-
- @Override
- protected Set<String> getIso3166Codes() {
- return ImmutableSet.<String> of("US-CA");
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/46e2f006/sandbox-providers/virtacore-publiccloud-lax/src/test/resources/log4j.xml
----------------------------------------------------------------------
diff --git a/sandbox-providers/virtacore-publiccloud-lax/src/test/resources/log4j.xml b/sandbox-providers/virtacore-publiccloud-lax/src/test/resources/log4j.xml
deleted file mode 100644
index 63810d3..0000000
--- a/sandbox-providers/virtacore-publiccloud-lax/src/test/resources/log4j.xml
+++ /dev/null
@@ -1,151 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-
- <!--
- For more configuration infromation and examples see the Apache
- Log4j website: http://logging.apache.org/log4j/
- -->
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
- debug="false">
-
- <!-- A time/date based rolling appender -->
- <appender name="WIREFILE" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="target/test-data/jclouds-wire.log" />
- <param name="Append" value="true" />
-
- <!-- Rollover at midnight each day -->
- <param name="DatePattern" value="'.'yyyy-MM-dd" />
-
- <param name="Threshold" value="TRACE" />
-
- <layout class="org.apache.log4j.PatternLayout">
- <!-- The default pattern: Date Priority [Category] Message\n -->
- <param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n" />
-
- <!--
- The full pattern: Date MS Priority [Category]
- (Thread:NDC) Message\n <param name="ConversionPattern"
- value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
- -->
- </layout>
- </appender>
-
- <!-- A time/date based rolling appender -->
- <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="target/test-data/jclouds.log" />
- <param name="Append" value="true" />
-
- <!-- Rollover at midnight each day -->
- <param name="DatePattern" value="'.'yyyy-MM-dd" />
-
- <param name="Threshold" value="TRACE" />
-
- <layout class="org.apache.log4j.PatternLayout">
- <!-- The default pattern: Date Priority [Category] Message\n -->
- <param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n" />
-
- <!--
- The full pattern: Date MS Priority [Category]
- (Thread:NDC) Message\n <param name="ConversionPattern"
- value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
- -->
- </layout>
- </appender>
-
- <!-- A time/date based rolling appender -->
- <appender name="COMPUTEFILE" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="target/test-data/jclouds-compute.log" />
- <param name="Append" value="true" />
-
- <!-- Rollover at midnight each day -->
- <param name="DatePattern" value="'.'yyyy-MM-dd" />
-
- <param name="Threshold" value="TRACE" />
-
- <layout class="org.apache.log4j.PatternLayout">
- <!-- The default pattern: Date Priority [Category] Message\n -->
- <param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n" />
-
- <!--
- The full pattern: Date MS Priority [Category]
- (Thread:NDC) Message\n <param name="ConversionPattern"
- value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
- -->
- </layout>
- </appender>
-
- <!-- A time/date based rolling appender -->
- <appender name="SSHFILE" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="target/test-data/jclouds-ssh.log" />
- <param name="Append" value="true" />
-
- <!-- Rollover at midnight each day -->
- <param name="DatePattern" value="'.'yyyy-MM-dd" />
-
- <param name="Threshold" value="TRACE" />
-
- <layout class="org.apache.log4j.PatternLayout">
- <!-- The default pattern: Date Priority [Category] Message\n -->
- <param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n" />
-
- <!--
- The full pattern: Date MS Priority [Category]
- (Thread:NDC) Message\n <param name="ConversionPattern"
- value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
- -->
- </layout>
- </appender>
-
- <appender name="ASYNCCOMPUTE" class="org.apache.log4j.AsyncAppender">
- <appender-ref ref="COMPUTEFILE" />
- </appender>
-
- <appender name="ASYNCSSH" class="org.apache.log4j.AsyncAppender">
- <appender-ref ref="SSHFILE" />
- </appender>
-
- <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
- <appender-ref ref="FILE" />
- </appender>
-
- <appender name="ASYNCWIRE" class="org.apache.log4j.AsyncAppender">
- <appender-ref ref="WIREFILE" />
- </appender>
-
- <!-- ================ -->
- <!-- Limit categories -->
- <!-- ================ -->
-
- <category name="org.jclouds">
- <priority value="DEBUG" />
- <appender-ref ref="ASYNC" />
- </category>
-
- <category name="jclouds.headers">
- <priority value="DEBUG" />
- <appender-ref ref="ASYNCWIRE" />
- </category>
-
- <category name="jclouds.ssh">
- <priority value="DEBUG" />
- <appender-ref ref="ASYNCSSH" />
- </category>
-
- <category name="jclouds.wire">
- <priority value="DEBUG" />
- <appender-ref ref="ASYNCWIRE" />
- </category>
-
- <category name="jclouds.compute">
- <priority value="TRACE" />
- <appender-ref ref="ASYNCCOMPUTE" />
- </category>
- <!-- ======================= -->
- <!-- Setup the Root category -->
- <!-- ======================= -->
-
- <root>
- <priority value="WARN" />
- </root>
-
-</log4j:configuration>