01: // $Id: GetStateEvent.java,v 1.6 2006/03/17 09:04:55 belaban Exp $
02:
03: package org.jgroups;
04:
05: /**
06: * Represents a GetState event.
07: * Gives access to the requestor.
08: */
09: public class GetStateEvent {
10: Object requestor = null;
11: String state_id = null;
12:
13: public GetStateEvent(Object requestor, String state_id) {
14: this .requestor = requestor;
15: this .state_id = state_id;
16: }
17:
18: public Object getRequestor() {
19: return requestor;
20: }
21:
22: public String getStateId() {
23: return state_id;
24: }
25:
26: public String toString() {
27: return "GetStateEvent[requestor=" + requestor + ", state_id="
28: + state_id + ']';
29: }
30: }
|