diff options
Diffstat (limited to 'plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/ClusterRestApplication.java')
-rw-r--r-- | plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/ClusterRestApplication.java | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/ClusterRestApplication.java b/plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/ClusterRestApplication.java deleted file mode 100644 index 48450d60dfa..00000000000 --- a/plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/ClusterRestApplication.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2007 Boeing. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Boeing - initial API and implementation - *******************************************************************************/ -package org.eclipse.osee.cluster.rest.internal; - -import java.util.HashSet; -import java.util.Set; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; -import org.eclipse.osee.cluster.ClusterService; -import org.eclipse.osee.cluster.Member; - -/** - * A service for clients to obtain information about the cluster. - * - * @author Roberto E. Escobar - */ -@ApplicationPath("cluster") -public class ClusterRestApplication extends Application { - - private static ClusterService clusterService; - - public void setClusterService(ClusterService clusterService) { - ClusterRestApplication.clusterService = clusterService; - } - - public static ClusterService getClusterService() { - return clusterService; - } - - public static Set<Member> getMembers() { - ClusterService service = ClusterRestApplication.getClusterService(); - return service.getCluster().getMembers(); - } - - @Override - public Set<Class<?>> getClasses() { - Set<Class<?>> resources = new HashSet<>(); - resources.add(MembersResource.class); - resources.add(JobsResource.class); - return resources; - } -} |