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.List;
18: import java.util.Map;
19:
20: public final class PassiveServerTransactionFactory implements
21: ServerTransactionFactory {
22:
23: public ServerTransaction createServerTransaction(
24: GlobalTransactionIDGenerator gtxm, TxnBatchID batchID,
25: TransactionID txnID, SequenceID sequenceID, LockID[] locks,
26: NodeID source, List dnas,
27: ObjectStringSerializer serializer, Map newRoots,
28: TxnType txnType, List notifies, DmiDescriptor[] dmis) {
29: return new PassiveServerTransactionImpl(gtxm, batchID, txnID,
30: sequenceID, locks, source, dnas, serializer, newRoots,
31: txnType, notifies, dmis);
32: }
33: }
|