removed static method to instance WsThredds. Commented tests
This commit is contained in:
parent
6568ba7495
commit
129d07b736
|
@ -0,0 +1 @@
|
||||||
|
/target/
|
|
@ -1,6 +1,6 @@
|
||||||
# gCube Ws Thredds Sync Widget
|
# gCube Ws Thredds Sync Widget
|
||||||
|
|
||||||
gCube ws-thredds-sync-widget is a widget to use and interact with ws-thredds facility in order to synchronize the Workspace folders with Thredds Reporitory folders
|
gCube ws-thredds-sync-widget is a widget to use and interact with ws-thredds facility in order to synchronize the Workspace folders with Thredds repository folders
|
||||||
|
|
||||||
## Built With
|
## Built With
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package org.gcube.portlets.widgets.wsthreddssync;
|
package org.gcube.portlets.widgets.wsthreddssync;
|
||||||
|
|
||||||
|
import org.gcube.portal.wssynclibrary.thredds.WorkspaceThreddsSynchronize;
|
||||||
|
import org.gcube.portlets.widgets.wsthreddssync.server.SyncronizeWithThredds;
|
||||||
import org.gcube.usecases.ws.thredds.SyncEngine;
|
import org.gcube.usecases.ws.thredds.SyncEngine;
|
||||||
import org.gcube.usecases.ws.thredds.engine.impl.ProcessDescriptor;
|
import org.gcube.usecases.ws.thredds.engine.impl.ProcessDescriptor;
|
||||||
import org.gcube.usecases.ws.thredds.engine.impl.ProcessStatus;
|
import org.gcube.usecases.ws.thredds.engine.impl.ProcessStatus;
|
||||||
|
@ -27,13 +29,13 @@ public class TestWsThreddsEngine {
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
|
|
||||||
// GET ENGINE : SINGLETON INSTANCE
|
// GET ENGINE : SINGLETON INSTANCE
|
||||||
SyncEngine engine=SyncEngine.get();
|
SyncronizeWithThredds engine = new SyncronizeWithThredds();
|
||||||
|
|
||||||
|
|
||||||
// FOLDER CONFIGURATION BEAN
|
// FOLDER CONFIGURATION BEAN
|
||||||
//SynchFolderConfiguration config=TestCommons.getSynchConfig();
|
//SynchFolderConfiguration config=TestCommons.getSynchConfig();
|
||||||
|
|
||||||
String filter = "";
|
/*String filter = "";
|
||||||
String remotePersistence = "";
|
String remotePersistence = "";
|
||||||
String remotePath = "";
|
String remotePath = "";
|
||||||
String targetToken = "";
|
String targetToken = "";
|
||||||
|
@ -91,6 +93,8 @@ public class TestWsThreddsEngine {
|
||||||
|
|
||||||
// INVOKE WHEN PORTAL SHUTS DOWN TO FREE RESOURCES AND STOP SYNC PROCESSES
|
// INVOKE WHEN PORTAL SHUTS DOWN TO FREE RESOURCES AND STOP SYNC PROCESSES
|
||||||
engine.shutDown();
|
engine.shutDown();
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue