X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.procore%2Fsrc%2Ffi%2Fvtt%2Fsimantics%2Fprocore%2Finternal%2FClusterStreamVirtual.java;h=d0e455113dec3077e9d0658c4c7d39ef21ab2af9;hp=95bd42946c451d7c7de36dc13c409594a57b97ca;hb=ee53d30622180b7d36010b518ff032f340c70fdb;hpb=969bd23cab98a79ca9101af33334000879fb60c5 diff --git a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/ClusterStreamVirtual.java b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/ClusterStreamVirtual.java index 95bd42946..d0e455113 100644 --- a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/ClusterStreamVirtual.java +++ b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/ClusterStreamVirtual.java @@ -1,75 +1,75 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package fi.vtt.simantics.procore.internal; - - -public final class ClusterStreamVirtual { /*extends ClusterStream { - ClusterStreamVirtual(GraphSession graphSession) { - super(graphSession); - } - void setOff(boolean value) { - } - void createResource(int operationIndex, long operationId, long clusterId) { - if(DEBUG) - System.out.println("ClusterStream.createResource oIndex=" + operationIndex + ", oId=" + operationId + ", cId=" + clusterId); - } - void addStatementIndex(int operationIndex, long operationId, long clusterId, byte op) { - if(DEBUG) - System.out.println("ClusterStream.addStatementIndex oIndex=" + operationIndex + ", oId=" + operationId + ", cId=" + clusterId + ", op=" + op); - } - void addStatement() { - if(DEBUG) - System.out.println("ClusterStream.addStatement."); - } - void cancelStatement() { - if(DEBUG) - System.out.println("ClusterStream.cancelStatement."); - } - void removeStatement(long clusterId) { - if(DEBUG) - System.out.println("ClusterStream.removeStatement cid=" + clusterId); - } - void cancelValue() { - if(DEBUG) - System.out.println("ClusterStream.cancelValue."); - } - void removeValue(long clusterId) { - if(DEBUG) - System.out.println("ClusterStream.removeValue cid=" + clusterId); - } - void setValue(long clusterId, byte[] bytes) { - if(DEBUG) - System.out.println("ClusterStream.setValue cid=" + clusterId + ", bytes=" + Arrays.toString(bytes)); - } - public void corruptCluster(long clusterId) throws DatabaseException { - if(DEBUG) - System.out.println("ClusterStream.corrupt cid=" + clusterId + "."); - } - void killFile(int resourceIndex, long clusterId) - throws DatabaseException { - if (DEBUG) - System.out.println("kill file ri=" + resourceIndex + " cid=" + clusterId); - } - void modiFile(int resourceIndex, long clusterId, byte[] bytes, int offset, boolean lastSegment) - throws DatabaseException { - if (DEBUG) - System.out.println("kill file ri=" + resourceIndex + " cid=" + clusterId); - } - boolean isEmpty() { - return true; - } - void accept() { - if (DEBUG) - System.out.println("ClusterStream.accept."); - } - */ -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package fi.vtt.simantics.procore.internal; + + +public final class ClusterStreamVirtual { /*extends ClusterStream { + ClusterStreamVirtual(GraphSession graphSession) { + super(graphSession); + } + void setOff(boolean value) { + } + void createResource(int operationIndex, long operationId, long clusterId) { + if(DEBUG) + System.out.println("ClusterStream.createResource oIndex=" + operationIndex + ", oId=" + operationId + ", cId=" + clusterId); + } + void addStatementIndex(int operationIndex, long operationId, long clusterId, byte op) { + if(DEBUG) + System.out.println("ClusterStream.addStatementIndex oIndex=" + operationIndex + ", oId=" + operationId + ", cId=" + clusterId + ", op=" + op); + } + void addStatement() { + if(DEBUG) + System.out.println("ClusterStream.addStatement."); + } + void cancelStatement() { + if(DEBUG) + System.out.println("ClusterStream.cancelStatement."); + } + void removeStatement(long clusterId) { + if(DEBUG) + System.out.println("ClusterStream.removeStatement cid=" + clusterId); + } + void cancelValue() { + if(DEBUG) + System.out.println("ClusterStream.cancelValue."); + } + void removeValue(long clusterId) { + if(DEBUG) + System.out.println("ClusterStream.removeValue cid=" + clusterId); + } + void setValue(long clusterId, byte[] bytes) { + if(DEBUG) + System.out.println("ClusterStream.setValue cid=" + clusterId + ", bytes=" + Arrays.toString(bytes)); + } + public void corruptCluster(long clusterId) throws DatabaseException { + if(DEBUG) + System.out.println("ClusterStream.corrupt cid=" + clusterId + "."); + } + void killFile(int resourceIndex, long clusterId) + throws DatabaseException { + if (DEBUG) + System.out.println("kill file ri=" + resourceIndex + " cid=" + clusterId); + } + void modiFile(int resourceIndex, long clusterId, byte[] bytes, int offset, boolean lastSegment) + throws DatabaseException { + if (DEBUG) + System.out.println("kill file ri=" + resourceIndex + " cid=" + clusterId); + } + boolean isEmpty() { + return true; + } + void accept() { + if (DEBUG) + System.out.println("ClusterStream.accept."); + } + */ +}