moved to FWS
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/ishealth-monitor-widget@81414 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
fc4800181e
commit
f0d07bcc2d
|
@ -17,5 +17,11 @@
|
|||
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="war/WEB-INF/classes"/>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
|
4
.project
4
.project
|
@ -26,12 +26,12 @@
|
|||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#Sun Dec 30 01:00:27 CET 2012
|
||||
eclipse.preferences.version=1
|
||||
entryPointModules=
|
||||
filesCopiedToWebInfLib=
|
||||
gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+SU5GTzwvbG9nLWxldmVsPjxvdXRwdXQtc3R5bGU+T0JGVVNDQVRFRDwvb3V0cHV0LXN0eWxlPjxleHRyYS1hcmdzPjwhW0NEQVRBW11dPjwvZXh0cmEtYXJncz48dm0tYXJncz48IVtDREFUQVstWG14NTEybV1dPjwvdm0tYXJncz48ZW50cnktcG9pbnQtbW9kdWxlPm9yZy5nY3ViZS5wb3J0bGV0cy5hZG1pbi5pc2hlYWx0aG1vbml0b3IuUmVzb3VyY2VfaXNoZWFsdGhfbW9uaXRvcjwvZW50cnktcG9pbnQtbW9kdWxlPjwvZ3d0LWNvbXBpbGUtc2V0dGluZ3M+
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
disabled=06target
|
||||
eclipse.preferences.version=1
|
20
pom.xml
20
pom.xml
|
@ -10,7 +10,7 @@
|
|||
|
||||
<groupId>org.gcube.portlets.admin</groupId>
|
||||
<artifactId>ishealth-monitor-widget</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.1.0-SNAPSHOT</version>
|
||||
<name>gCube IS Health Monitor Widget</name>
|
||||
<description>
|
||||
gCube IS Health Monitor Widget.
|
||||
|
@ -22,7 +22,7 @@
|
|||
</scm>
|
||||
<properties>
|
||||
<!-- Convenience property to set the GWT version -->
|
||||
<gwtVersion>2.4.0</gwtVersion>
|
||||
<gwtVersion>2.5.1</gwtVersion>
|
||||
<distroDirectory>distro</distroDirectory>
|
||||
<!-- GWT needs at least java 1.6 -->
|
||||
<maven.compiler.source>1.6</maven.compiler.source>
|
||||
|
@ -59,22 +59,10 @@
|
|||
<artifactId>highcharts-gxt</artifactId>
|
||||
<version>1.2.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.core</groupId>
|
||||
<artifactId>gcf</artifactId>
|
||||
<version>[1.4.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.distribution</groupId>
|
||||
<artifactId>ghn-client-runtime</artifactId>
|
||||
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.admin</groupId>
|
||||
<artifactId>rmp-common-library</artifactId>
|
||||
<version>[1.1.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
@ -174,7 +162,7 @@
|
|||
<artifactId>gwt-maven-plugin</artifactId>
|
||||
<!-- TODO: Update version to 2.5.0 once gwt-maven-plugin 2.5.0 final
|
||||
is released (post-GWT 2.5.0) -->
|
||||
<version>2.4.0</version>
|
||||
<version>${gwtVersion}</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
|
|
@ -8,8 +8,9 @@ import org.gcube.portlets.admin.ishealthmonitor.client.highchartsjs.HighchartsBu
|
|||
import com.google.gwt.core.client.EntryPoint;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
|
||||
|
||||
/**
|
||||
* Entry point classes define <code>onModuleLoad()</code>.
|
||||
* It will not show if RMP is NOT in STANDALONE MODE
|
||||
*/
|
||||
public class Resource_ishealth_monitor implements EntryPoint {
|
||||
public void onModuleLoad() {
|
||||
|
|
|
@ -3,12 +3,13 @@ package org.gcube.portlets.admin.ishealthmonitor.server;
|
|||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.gcube.common.core.scope.GCUBEScope;
|
||||
import org.gcube.common.core.utils.logging.GCUBEClientLog;
|
||||
import org.gcube.common.scope.impl.ScopeBean;
|
||||
import org.gcube.portlets.admin.ishealthmonitor.client.async.ISMonitorService;
|
||||
import org.gcube.resourcemanagement.support.server.gcube.CacheManager;
|
||||
import org.gcube.resourcemanagement.support.server.gcube.ISClientRequester;
|
||||
import org.gcube.resourcemanagement.support.server.managers.scope.ScopeManager;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
|
||||
|
||||
|
@ -18,7 +19,7 @@ import com.google.gwt.user.server.rpc.RemoteServiceServlet;
|
|||
@SuppressWarnings("serial")
|
||||
public class ISMonitorServiceImpl extends RemoteServiceServlet implements ISMonitorService {
|
||||
|
||||
static GCUBEClientLog _log = new GCUBEClientLog(ISMonitorServiceImpl.class);
|
||||
private static final Logger _log = LoggerFactory.getLogger(ISMonitorServiceImpl.class);
|
||||
|
||||
|
||||
@Override
|
||||
|
@ -26,9 +27,7 @@ public class ISMonitorServiceImpl extends RemoteServiceServlet implements ISMoni
|
|||
CacheManager cm = new CacheManager();
|
||||
cm.setUseCache(false);
|
||||
try {
|
||||
GCUBEScope gscope = ScopeManager.getScope(scope);
|
||||
|
||||
//GCUBEScope gscope = GCUBEScope.getScope(scope);
|
||||
ScopeBean gscope = ScopeManager.getScope(scope);
|
||||
HashMap<String, ArrayList<String>> results = ISClientRequester.getResourcesTree(cm, gscope);
|
||||
return results;
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue