[jboss-svn-commits] JBL Code SVN: r23171 - in labs/jbosstm/trunk/XTS/WS-T/dev: src11/com/arjuna/wst11/messaging/engines and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Sep 29 06:11:21 EDT 2008
Author: adinn
Date: 2008-09-29 06:11:20 -0400 (Mon, 29 Sep 2008)
New Revision: 23171
Modified:
labs/jbosstm/trunk/XTS/WS-T/dev/src10/com/arjuna/wst/messaging/engines/ParticipantEngine.java
labs/jbosstm/trunk/XTS/WS-T/dev/src11/com/arjuna/wst11/messaging/engines/ParticipantEngine.java
Log:
added getters for recovered field to aid scripting of recovery tests
Modified: labs/jbosstm/trunk/XTS/WS-T/dev/src10/com/arjuna/wst/messaging/engines/ParticipantEngine.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/dev/src10/com/arjuna/wst/messaging/engines/ParticipantEngine.java 2008-09-29 09:31:52 UTC (rev 23170)
+++ labs/jbosstm/trunk/XTS/WS-T/dev/src10/com/arjuna/wst/messaging/engines/ParticipantEngine.java 2008-09-29 10:11:20 UTC (rev 23171)
@@ -821,4 +821,31 @@
final String messageId = MessageId.getMessageId() ;
return AddressingContext.createRequestContext(coordinator, messageId) ;
}
+
+ /**
+ * Get the coordinator id.
+ * @return The coordinator id.
+ */
+ public String getId()
+ {
+ return id ;
+ }
+
+ /**
+ * Is the participant persisted to disk?
+ * @return true if persisted, false otherwise.
+ */
+ public boolean isPersisted()
+ {
+ return persisted ;
+ }
+
+ /**
+ * Is the participant recovered?
+ * @return true if recovered, false otherwise.
+ */
+ public boolean isRecovered()
+ {
+ return recovered ;
+ }
}
Modified: labs/jbosstm/trunk/XTS/WS-T/dev/src11/com/arjuna/wst11/messaging/engines/ParticipantEngine.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/dev/src11/com/arjuna/wst11/messaging/engines/ParticipantEngine.java 2008-09-29 09:31:52 UTC (rev 23170)
+++ labs/jbosstm/trunk/XTS/WS-T/dev/src11/com/arjuna/wst11/messaging/engines/ParticipantEngine.java 2008-09-29 10:11:20 UTC (rev 23171)
@@ -790,8 +790,35 @@
return AddressingHelper.createNotificationContext(messageId) ;
}
+ /**
+ * Get the coordinator id.
+ * @return The coordinator id.
+ */
+ public String getId()
+ {
+ return id ;
+ }
+
public W3CEndpointReference getCoordinator()
{
return coordinator;
}
+
+ /**
+ * Is the participant persisted to disk?
+ * @return true if persisted, false otherwise.
+ */
+ public boolean isPersisted()
+ {
+ return persisted ;
+ }
+
+ /**
+ * Is the participant recovered?
+ * @return true if recovered, false otherwise.
+ */
+ public boolean isRecovered()
+ {
+ return recovered ;
+ }
}
More information about the jboss-svn-commits
mailing list