1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package fulmine.event;
17
18 import fulmine.Domain;
19 import fulmine.IDomain;
20 import fulmine.IType;
21 import fulmine.Type;
22 import fulmine.model.component.AbstractComponent;
23 import fulmine.protocol.wire.IWireIdentity;
24 import fulmine.protocol.wire.operation.IOperationScope;
25 import fulmine.util.log.AsyncLog;
26
27
28
29
30
31
32
33
34 public class EventSource extends AbstractComponent
35 {
36 private final static AsyncLog LOG = new AsyncLog(EventSource.class);
37
38
39
40
41
42
43
44 public EventSource(String identity)
45 {
46 super(identity, Type.SYSTEM, Domain.FRAMEWORK);
47 }
48
49
50
51
52
53
54
55
56
57
58
59 protected EventSource(String identity, IType type, IDomain domain)
60 {
61 super(identity, type, domain);
62 }
63
64 @Override
65 protected boolean doReadState(IOperationScope scope, byte[] buffer,
66 int start, int numberOfBytes) throws Exception
67 {
68 return true;
69 }
70
71 @Override
72 protected boolean doWriteState(IOperationScope scope, IWireIdentity wireId,
73 byte[][] headerBuffer, int[] headerBufferPosition, byte[][] dataBuffer,
74 int[] dataBufferPosition, boolean completeState) throws Exception
75 {
76 return true;
77 }
78
79 @Override
80 protected AsyncLog getLog()
81 {
82 return LOG;
83 }
84 }