01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.objectserver.tx;
06:
07: import com.tc.net.groups.NodeID;
08: import com.tc.object.dmi.DmiDescriptor;
09: import com.tc.object.dna.impl.ObjectStringSerializer;
10: import com.tc.object.gtx.GlobalTransactionIDGenerator;
11: import com.tc.object.lockmanager.api.LockID;
12: import com.tc.object.tx.TransactionID;
13: import com.tc.object.tx.TxnBatchID;
14: import com.tc.object.tx.TxnType;
15: import com.tc.util.SequenceID;
16:
17: import java.util.Collection;
18: import java.util.Collections;
19: import java.util.List;
20: import java.util.Map;
21:
22: public class PassiveServerTransactionImpl extends ServerTransactionImpl
23: implements ServerTransaction {
24:
25: public PassiveServerTransactionImpl(
26: GlobalTransactionIDGenerator gtxm, TxnBatchID batchID,
27: TransactionID txID, SequenceID sequenceID,
28: LockID[] lockIDs, NodeID source, List dnas,
29: ObjectStringSerializer serializer, Map newRoots,
30: TxnType transactionType, Collection notifies,
31: DmiDescriptor[] dmis) {
32: super (gtxm, batchID, txID, sequenceID, lockIDs, source, dnas,
33: serializer, newRoots, transactionType, notifies, dmis);
34: }
35:
36: public SequenceID getClientSequenceID() {
37: throw new UnsupportedOperationException();
38: }
39:
40: public DmiDescriptor[] getDmiDescriptors() {
41: throw new UnsupportedOperationException();
42: }
43:
44: public Collection getNotifies() {
45: return Collections.EMPTY_LIST;
46: }
47:
48: public ObjectStringSerializer getSerializer() {
49: throw new UnsupportedOperationException();
50: }
51:
52: public boolean needsBroadcast() {
53: return false;
54: }
55:
56: public String toString() {
57: return "PassiveServerTransactionImpl [ " + super .toString()
58: + " ]";
59: }
60: }
|