Class HornetqJournalStore
java.lang.Object
com.arjuna.ats.internal.arjuna.objectstore.hornetq.HornetqJournalStore
Implementation of the tx store backed by the Artemis journal.
This is a bean suitable for hooking into the app server lifecycle.
- Author:
- Jonathan Halliday (jonathan.halliday@redhat.com), 2010-03
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
String[]
Uid[]
getUidsForType
(String typeName) read_committed
(Uid uid, String typeName) Read the object's committed state.boolean
remove_committed
(Uid uid, String typeName) Remove the object's committed state.void
start()
void
stop()
boolean
write_committed
(Uid uid, String typeName, OutputObjectState txData) Write a new copy of the object's committed state.
-
Constructor Details
-
HornetqJournalStore
- Throws:
IOException
-
-
Method Details
-
stop
- Throws:
Exception
-
start
- Throws:
Exception
-
remove_committed
Remove the object's committed state.- Parameters:
uid
- The object to work on.typeName
- The type of the object to work on.- Returns:
true
if no errors occurred,false
otherwise.- Throws:
ObjectStoreException
- if things go wrong.
-
write_committed
public boolean write_committed(Uid uid, String typeName, OutputObjectState txData) throws ObjectStoreException Write a new copy of the object's committed state.- Parameters:
uid
- The object to work on.typeName
- The type of the object to work on.txData
- The state to write.- Returns:
true
if no errors occurred,false
otherwise.- Throws:
ObjectStoreException
- if things go wrong.
-
read_committed
Read the object's committed state.- Parameters:
uid
- The object to work on.typeName
- The type of the object to work on.- Returns:
- the state of the object.
- Throws:
ObjectStoreException
- if things go wrong.
-
contains
-
getStoreName
- Returns:
- the "name" of the object store. Where in the hierarchy it appears, e.g., /ObjectStore/MyName/...
-
getKnownTypes
-
getUidsForType
-