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