X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.acorn%2Fsrc%2Forg%2Fsimantics%2Facorn%2Flru%2FChangeSetInfo.java;h=235b26418be7f610a3d79d6e1760f176d331ccaa;hp=a19a8540b48d3faafcf002541a622032046396a8;hb=e5c006a3e29dcb1f29ae5bcc21ac28573bd37648;hpb=cb5fc8d606d8b322563e9345c441eecfa7f01753 diff --git a/bundles/org.simantics.acorn/src/org/simantics/acorn/lru/ChangeSetInfo.java b/bundles/org.simantics.acorn/src/org/simantics/acorn/lru/ChangeSetInfo.java index a19a8540b..235b26418 100644 --- a/bundles/org.simantics.acorn/src/org/simantics/acorn/lru/ChangeSetInfo.java +++ b/bundles/org.simantics.acorn/src/org/simantics/acorn/lru/ChangeSetInfo.java @@ -4,27 +4,31 @@ import java.nio.file.Path; import java.util.ArrayList; import java.util.Arrays; +import org.simantics.acorn.FileCache; import org.simantics.acorn.exception.AcornAccessVerificationException; import org.simantics.acorn.exception.IllegalAcornStateException; import org.simantics.db.service.Bytes; import org.simantics.utils.datastructures.Pair; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import gnu.trove.list.array.TByteArrayList; public class ChangeSetInfo extends LRUObject { + private static final Logger LOGGER = LoggerFactory.getLogger(ChangeSetInfo.class); private byte[] metadataBytes; private ArrayList clusterChangeSetIds; // Stub - public ChangeSetInfo(LRU LRU, Path readDir, Long revision, int offset, int length) throws AcornAccessVerificationException { - super(LRU, revision, readDir, "clusterStream", offset, length, false, false); + public ChangeSetInfo(LRU LRU, FileCache fileCache, Path readDir, Long revision, int offset, int length) throws AcornAccessVerificationException { + super(LRU, fileCache, revision, readDir, "clusterStream", offset, length, false, false); LRU.map(this); } // New - public ChangeSetInfo(LRU LRU, Long revision, byte[] bytes, ArrayList clusterChangeSetIds) throws AcornAccessVerificationException { - super(LRU, revision, LRU.getDirectory(), "clusterStream", true, true); + public ChangeSetInfo(LRU LRU, FileCache fileCache, Long revision, byte[] bytes, ArrayList clusterChangeSetIds) throws AcornAccessVerificationException { + super(LRU, fileCache, revision, LRU.getDirectory(), "clusterStream", true, true); this.metadataBytes = bytes; this.metadataBytes = bytes; this.clusterChangeSetIds = clusterChangeSetIds; @@ -110,4 +114,8 @@ public class ChangeSetInfo extends LRUObject { return false; } + @Override + public Logger getLogger() { + return LOGGER; + } } \ No newline at end of file