1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package fi.vtt.simantics.procore.internal;
15 public final class ClusterStreamVirtual { /*extends ClusterStream {
16 ClusterStreamVirtual(GraphSession graphSession) {
19 void setOff(boolean value) {
21 void createResource(int operationIndex, long operationId, long clusterId) {
23 System.out.println("ClusterStream.createResource oIndex=" + operationIndex + ", oId=" + operationId + ", cId=" + clusterId);
25 void addStatementIndex(int operationIndex, long operationId, long clusterId, byte op) {
27 System.out.println("ClusterStream.addStatementIndex oIndex=" + operationIndex + ", oId=" + operationId + ", cId=" + clusterId + ", op=" + op);
31 System.out.println("ClusterStream.addStatement.");
33 void cancelStatement() {
35 System.out.println("ClusterStream.cancelStatement.");
37 void removeStatement(long clusterId) {
39 System.out.println("ClusterStream.removeStatement cid=" + clusterId);
43 System.out.println("ClusterStream.cancelValue.");
45 void removeValue(long clusterId) {
47 System.out.println("ClusterStream.removeValue cid=" + clusterId);
49 void setValue(long clusterId, byte[] bytes) {
51 System.out.println("ClusterStream.setValue cid=" + clusterId + ", bytes=" + Arrays.toString(bytes));
53 public void corruptCluster(long clusterId) throws DatabaseException {
55 System.out.println("ClusterStream.corrupt cid=" + clusterId + ".");
57 void killFile(int resourceIndex, long clusterId)
58 throws DatabaseException {
60 System.out.println("kill file ri=" + resourceIndex + " cid=" + clusterId);
62 void modiFile(int resourceIndex, long clusterId, byte[] bytes, int offset, boolean lastSegment)
63 throws DatabaseException {
65 System.out.println("kill file ri=" + resourceIndex + " cid=" + clusterId);
72 System.out.println("ClusterStream.accept.");