]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/ClusterStreamVirtual.java
Fixed CollectionSupportImpl.ResourceList iteration order
[simantics/platform.git] / bundles / org.simantics.db.procore / src / fi / vtt / simantics / procore / internal / ClusterStreamVirtual.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package fi.vtt.simantics.procore.internal;
13
14
15 public final class ClusterStreamVirtual { /*extends ClusterStream {
16         ClusterStreamVirtual(GraphSession graphSession) {
17             super(graphSession);
18         }
19         void setOff(boolean value) {
20         }
21         void createResource(int operationIndex, long operationId, long clusterId) {
22             if(DEBUG)
23                 System.out.println("ClusterStream.createResource oIndex=" + operationIndex + ", oId=" + operationId + ", cId=" + clusterId);
24         }
25         void addStatementIndex(int operationIndex, long operationId, long clusterId, byte op) {
26         if(DEBUG)
27             System.out.println("ClusterStream.addStatementIndex oIndex=" + operationIndex + ", oId=" + operationId + ", cId=" + clusterId + ", op=" + op);
28         }
29         void addStatement() {
30         if(DEBUG)
31             System.out.println("ClusterStream.addStatement.");
32         }
33         void cancelStatement() {
34         if(DEBUG)
35             System.out.println("ClusterStream.cancelStatement.");
36         }
37         void removeStatement(long clusterId) {
38         if(DEBUG)
39             System.out.println("ClusterStream.removeStatement cid=" + clusterId);
40         }
41         void cancelValue() {
42         if(DEBUG)
43             System.out.println("ClusterStream.cancelValue.");
44         }
45         void removeValue(long clusterId) {
46         if(DEBUG)
47             System.out.println("ClusterStream.removeValue cid=" + clusterId);
48         }
49         void setValue(long clusterId, byte[] bytes) {
50         if(DEBUG)
51             System.out.println("ClusterStream.setValue cid=" + clusterId + ", bytes=" + Arrays.toString(bytes));
52         }
53     public void corruptCluster(long clusterId) throws DatabaseException {
54         if(DEBUG)
55             System.out.println("ClusterStream.corrupt cid=" + clusterId + ".");
56     }
57     void killFile(int resourceIndex, long clusterId)
58     throws DatabaseException {
59         if (DEBUG)
60             System.out.println("kill file ri=" + resourceIndex + " cid=" + clusterId);
61     }
62     void modiFile(int resourceIndex, long clusterId, byte[] bytes, int offset, boolean lastSegment)
63     throws DatabaseException {
64         if (DEBUG)
65             System.out.println("kill file ri=" + resourceIndex + " cid=" + clusterId);
66     }
67     boolean isEmpty() {
68         return true;
69     }
70     void accept() {
71         if (DEBUG)
72             System.out.println("ClusterStream.accept.");
73     }
74     */
75 }