-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- * VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package fi.vtt.simantics.procore.internal;\r
-\r
-\r
-public final class ClusterStreamVirtual { /*extends ClusterStream {\r
- ClusterStreamVirtual(GraphSession graphSession) {\r
- super(graphSession);\r
- }\r
- void setOff(boolean value) {\r
- }\r
- void createResource(int operationIndex, long operationId, long clusterId) {\r
- if(DEBUG)\r
- System.out.println("ClusterStream.createResource oIndex=" + operationIndex + ", oId=" + operationId + ", cId=" + clusterId);\r
- }\r
- void addStatementIndex(int operationIndex, long operationId, long clusterId, byte op) {\r
- if(DEBUG)\r
- System.out.println("ClusterStream.addStatementIndex oIndex=" + operationIndex + ", oId=" + operationId + ", cId=" + clusterId + ", op=" + op);\r
- }\r
- void addStatement() {\r
- if(DEBUG)\r
- System.out.println("ClusterStream.addStatement.");\r
- }\r
- void cancelStatement() {\r
- if(DEBUG)\r
- System.out.println("ClusterStream.cancelStatement.");\r
- }\r
- void removeStatement(long clusterId) {\r
- if(DEBUG)\r
- System.out.println("ClusterStream.removeStatement cid=" + clusterId);\r
- }\r
- void cancelValue() {\r
- if(DEBUG)\r
- System.out.println("ClusterStream.cancelValue.");\r
- }\r
- void removeValue(long clusterId) {\r
- if(DEBUG)\r
- System.out.println("ClusterStream.removeValue cid=" + clusterId);\r
- }\r
- void setValue(long clusterId, byte[] bytes) {\r
- if(DEBUG)\r
- System.out.println("ClusterStream.setValue cid=" + clusterId + ", bytes=" + Arrays.toString(bytes));\r
- }\r
- public void corruptCluster(long clusterId) throws DatabaseException {\r
- if(DEBUG)\r
- System.out.println("ClusterStream.corrupt cid=" + clusterId + ".");\r
- }\r
- void killFile(int resourceIndex, long clusterId)\r
- throws DatabaseException {\r
- if (DEBUG)\r
- System.out.println("kill file ri=" + resourceIndex + " cid=" + clusterId);\r
- }\r
- void modiFile(int resourceIndex, long clusterId, byte[] bytes, int offset, boolean lastSegment)\r
- throws DatabaseException {\r
- if (DEBUG)\r
- System.out.println("kill file ri=" + resourceIndex + " cid=" + clusterId);\r
- }\r
- boolean isEmpty() {\r
- return true;\r
- }\r
- void accept() {\r
- if (DEBUG)\r
- System.out.println("ClusterStream.accept.");\r
- }\r
- */\r
-}\r
+/*******************************************************************************
+ * 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.");
+ }
+ */
+}