Skip to content

Commit

Permalink
blob handling is too slow #235
Browse files Browse the repository at this point in the history
  • Loading branch information
abstratt committed Sep 5, 2017
1 parent 5c66a31 commit d5734e8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Import-Package: com.abstratt.kirra.auth,
com.abstratt.nodestore,
com.abstratt.nodestore.jdbc,
com.abstratt.nodestore.inmemory,
com.abstratt.blobstore,
com.abstratt.simpleblobstore,
com.abstratt.resman,
javax.servlet,
javax.servlet.http,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package com.abstratt.kirra.tests.mdd.runtime;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

import org.eclipse.core.runtime.CoreException;

import com.abstratt.blobstore.IBlobStoreCatalog;
import com.abstratt.kirra.Repository;
import com.abstratt.kirra.SchemaManagement;
import com.abstratt.mdd.core.IRepository;
Expand All @@ -16,6 +13,10 @@
import com.abstratt.pluginutils.ISharedContextRunnable;
import com.abstratt.resman.Resource;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

public class RepositoryServiceTests extends AbstractRepositoryBuildingTests {

public static Test suite() {
Expand All @@ -36,6 +37,7 @@ public Object runInContext(IRepository context) {
current.getFeature(SchemaManagement.class);
current.getFeature(Repository.class);
current.getFeature(INodeStoreCatalog.class);
current.getFeature(IBlobStoreCatalog.class);
return null;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Bundle-Version: 2.2.201606.qualifier
Require-Bundle: com.abstratt.mdd.runtime.core;visibility:=reexport,
com.abstratt.mdd.frontend.textuml.core,
com.abstratt.mdd.core.tests.harness;visibility:=reexport,
com.abstratt.blobstore,
com.abstratt.simpleblobstore,
com.abstratt.nodestore,
com.abstratt.nodestore.jdbc,
com.abstratt.nodestore.inmemory,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import java.util.Map.Entry;
import java.util.Properties;

import junit.framework.TestCase;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.uml2.uml.Class;
import org.eclipse.uml2.uml.Classifier;
Expand All @@ -25,8 +23,8 @@
import com.abstratt.mdd.core.tests.harness.AbstractRepositoryBuildingTests;
import com.abstratt.mdd.core.util.FeatureUtils;
import com.abstratt.nodestore.INodeStoreCatalog;
import com.abstratt.nodestore.INodeStoreFactory;
import com.abstratt.nodestore.NodeStores;

import junit.framework.TestCase;

public class AbstractRuntimeTests extends AbstractRepositoryBuildingTests {

Expand Down Expand Up @@ -141,10 +139,6 @@ protected SchemaManagement getKirraSchema() {
return RepositoryService.DEFAULT.getCurrentResource().getFeature(SchemaManagement.class);
}

protected INodeStoreFactory getNodeStoreFactory() {
return NodeStores.get().getDefaultFactory();
}

protected Map<String, Object> getNodeStoreSettings() {
return new HashMap<String, Object>();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ public void setEnvironment(String environment) {
this.environment = environment;
}

public void init() {
try {
Files.createDirectories(getBasePath());
} catch (IOException e) {
throw new BlobStoreException(e);
}
}

private Path getBasePath() {
return REPOSITORY_ROOT.resolve(catalogName).resolve(environment);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public void activateContext(Resource<?> resource) {
TaskModeSelector taskModeSelector = resource.getFeature(TaskModeSelector.class);
String environment = taskModeSelector.getEnvironment().toLowerCase();
blobStoreCatalog.setEnvironment(environment);
blobStoreCatalog.init();
}

@Override
Expand Down

0 comments on commit d5734e8

Please sign in to comment.