Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove now unused views and sessions code.

  • Loading branch information...
commit efdba0369ea051a293bd4fc96c3480ac263c05f5 1 parent 1b92130
Tomaz Muraus Kami authored
3  src/main/java/com/rackspacecloud/client/service_registry/Client.java
View
@@ -31,7 +31,6 @@
public class Client {
private final ServicesClient services;
private final ConfigurationClient configuration;
- private final ViewsClient views;
private final EventsClient events;
private final AccountClient account;
@@ -59,14 +58,12 @@ protected ClientConnectionManager createClientConnectionManager() {
this.services = new ServicesClient(authClient);
this.configuration = new ConfigurationClient(authClient);
- this.views = new ViewsClient(authClient);
this.events = new EventsClient(authClient);
this.account = new AccountClient(authClient);
}
public ServicesClient getServicesClient() { return this.services; }
public ConfigurationClient getConfigurationClient() { return this.configuration; }
- public ViewsClient getViewsClient() { return this.views; }
public EventsClient getEventsClient () { return this.events; }
public AccountClient getAccountClient() { return this.account; }
}
1  src/main/java/com/rackspacecloud/client/service_registry/clients/ServicesClient.java
View
@@ -25,7 +25,6 @@
import com.rackspacecloud.client.service_registry.containers.ServicesContainer;
import com.rackspacecloud.client.service_registry.objects.HeartbeatToken;
import com.rackspacecloud.client.service_registry.objects.Service;
-import com.rackspacecloud.client.service_registry.objects.Session;
import org.apache.http.NameValuePair;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpGet;
43 src/main/java/com/rackspacecloud/client/service_registry/clients/ViewsClient.java
View
@@ -1,43 +0,0 @@
-/**
- * Copyright 2012 Rackspace
- *
- * Licensed 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 com.rackspacecloud.client.service_registry.clients;
-
-import com.google.gson.reflect.TypeToken;
-import com.rackspacecloud.client.service_registry.ClientResponse;
-import com.rackspacecloud.client.service_registry.PaginationOptions;
-import com.rackspacecloud.client.service_registry.containers.OverviewContainer;
-import com.rackspacecloud.client.service_registry.objects.Overview;
-import org.apache.http.client.methods.HttpGet;
-
-import java.lang.reflect.Type;
-import java.util.List;
-import java.util.Map;
-
-public class ViewsClient extends BaseClient {
- public ViewsClient(AuthClient authClient) {
- super(authClient);
- }
-
- public List<Overview> getOverview(PaginationOptions paginationOptions) throws Exception {
- Type type = new TypeToken<OverviewContainer>() {}.getType();
- ClientResponse response = this.performListRequest(paginationOptions, "/views/overview", null, new HttpGet(), true, type);
-
- OverviewContainer container = (OverviewContainer)response.getBody();
- return container.getValues();
- }
-}
30 src/main/java/com/rackspacecloud/client/service_registry/containers/OverviewContainer.java
View
@@ -1,30 +0,0 @@
-/**
- * Copyright 2012 Rackspace
- *
- * Licensed 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 com.rackspacecloud.client.service_registry.containers;
-
-import com.rackspacecloud.client.service_registry.objects.Overview;
-
-import java.util.List;
-
-public class OverviewContainer {
- private List<Overview> values;
-
- public List<Overview> getValues() {
- return values;
- }
-}
30 src/main/java/com/rackspacecloud/client/service_registry/containers/SessionsContainer.java
View
@@ -1,30 +0,0 @@
-/**
- * Copyright 2012 Rackspace
- *
- * Licensed 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 com.rackspacecloud.client.service_registry.containers;
-
-import com.rackspacecloud.client.service_registry.objects.Session;
-
-import java.util.List;
-
-public class SessionsContainer extends Container {
- private List<Session> values;
-
- public List<Session> getValues() {
- return values;
- }
-}
25 src/main/java/com/rackspacecloud/client/service_registry/objects/Overview.java
View
@@ -1,25 +0,0 @@
-/**
- * Copyright 2012 Rackspace
- *
- * Licensed 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 com.rackspacecloud.client.service_registry.objects;
-
-import java.util.List;
-
-public class Overview {
- private Session session;
- private List<Service> services;
-}
54 src/main/java/com/rackspacecloud/client/service_registry/objects/Session.java
View
@@ -1,54 +0,0 @@
-/**
- * Copyright 2012 Rackspace
- *
- * Licensed 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 com.rackspacecloud.client.service_registry.objects;
-
-import com.google.gson.annotations.SerializedName;
-
-import java.util.Map;
-
-public class Session {
- private String id;
- private Integer lastSeen = null;
- @SerializedName("heartbeat_timeout")
- private Integer heartbeatTimeout;
- private Map<String, String> metadata;
-
- public Session(String id, Integer heartbeatTimeout, Integer lastSeen,
- Map<String, String> metadata) {
- this.id = id;
- this.heartbeatTimeout = heartbeatTimeout;
- this.lastSeen = lastSeen;
- this.metadata = metadata;
- }
-
- public String getId() {
- return id;
- }
-
- public Integer getLastSeen() {
- return lastSeen;
- }
-
- public Integer getHeartbeatTimeout() {
- return heartbeatTimeout;
- }
-
- public Map<String, String> getMetadata() {
- return metadata;
- }
-}
Please sign in to comment.
Something went wrong with that request. Please try again.