01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2006 Bull S.A.S.
04: * Contact: jonas-team@objectweb.org
05: * Copyright (C) 2006 Distributed Systems Lab.
06: * Universidad Politécnica de Madrid (Spain)
07: * Contact: http://lsd.ls.fi.upm.es/lsd
08: *
09: * This library is free software; you can redistribute it and/or
10: * modify it under the terms of the GNU Lesser General Public
11: * License as published by the Free Software Foundation; either
12: * version 2.1 of the License, or any later version.
13: *
14: * This library is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17: * Lesser General Public License for more details.
18: *
19: * You should have received a copy of the GNU Lesser General Public
20: * License along with this library; if not, write to the Free Software
21: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22: * USA
23: *
24: * --------------------------------------------------------------------------
25: *
26: * --------------------------------------------------------------------------
27: */package org.objectweb.jonas_ejb.container;
28:
29: import java.io.Serializable;
30:
31: import org.objectweb.carol.cmi.ObjectId;
32:
33: /**
34: * Object ID for a replicated sfsb
35: * @author Francisco Perez-Sorrosal (fpsorrosal@no-spam@fi.upm.es)
36: * @author Alberto Paz-Jimenez (apaz@no-spam@fi.upm.es)
37: */
38: public class JRepStatefulObjectId implements Serializable {
39:
40: private static final long serialVersionUID = 1L;
41:
42: /**
43: * Local Home jndi
44: */
45: private String jndi = null;
46:
47: /**
48: * object id in the cluster
49: */
50: private ObjectId clusterOId = null;
51:
52: /**
53: * Default constructor
54: * @param jndi the jndi
55: * @param oid the clusterOId
56: */
57: public JRepStatefulObjectId(String jndi, ObjectId oid) {
58: this .jndi = jndi;
59: this .clusterOId = oid;
60: }
61:
62: /**
63: * gets the jndi
64: * @return the jndi
65: */
66: public String getJndi() {
67: return jndi;
68: }
69:
70: /**
71: * gets the clusterOId
72: * @return the clusterOId
73: */
74: public ObjectId getClusterOId() {
75: return clusterOId;
76: }
77: }
|