01: /*
02: * All content copyright (c) 2003-2006 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.GlobalTransaction;
11: import com.tc.object.lockmanager.api.LockID;
12: import com.tc.object.tx.ServerTransactionID;
13: import com.tc.object.tx.TransactionID;
14: import com.tc.object.tx.TxnBatchID;
15: import com.tc.object.tx.TxnType;
16:
17: import java.util.Collection;
18: import java.util.List;
19: import java.util.Map;
20: import java.util.Set;
21:
22: /**
23: * Represents an atomic change to the states of objects on the server
24: *
25: * @author steve
26: */
27:
28: public interface ServerTransaction extends GlobalTransaction {
29:
30: public TxnBatchID getBatchID();
31:
32: public ObjectStringSerializer getSerializer();
33:
34: public LockID[] getLockIDs();
35:
36: public NodeID getSourceID();
37:
38: public TransactionID getTransactionID();
39:
40: public ServerTransactionID getServerTransactionID();
41:
42: public List getChanges();
43:
44: public Map getNewRoots();
45:
46: public TxnType getTransactionType();
47:
48: public Set getObjectIDs();
49:
50: public Set getNewObjectIDs();
51:
52: public Collection getNotifies();
53:
54: public DmiDescriptor[] getDmiDescriptors();
55:
56: public boolean needsBroadcast();
57:
58: }
|