public class XALdifDstService extends Object implements IXAWritableService
Constructor and Description |
---|
XALdifDstService(TaskType task) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(LscModifications lm)
Apply lsc modifications.
|
void |
commit(String xid) |
void |
end(String xid) |
IBean |
getBean(String pivotName,
LscDatasets pivotAttributes,
boolean fromSameService)
The simple object getter according to its identifier.
|
String |
getId()
Return the service unique identifier
The identifier must be unique to distinguish it from the other XA resource manager
|
Map<String,LscDatasets> |
getListPivots()
Returns a list of all the objects' identifiers.
|
List<String> |
getWriteDatasetIds() |
int |
prepare(String xid) |
void |
rollback(String xid) |
void |
setTransactionManager(TransactionManager xaTM) |
String |
start()
Ask for a Xid to the XA resource manager
|
void |
submit(String xid,
LscModifications lm) |
public XALdifDstService(TaskType task) throws LscServiceException
LscServiceException
public String getId()
IXAWritableService
getId
in interface IXAWritableService
public String start() throws LscServiceException
IXAWritableService
start
in interface IXAWritableService
LscServiceInitializationException
LscServiceException
public void submit(String xid, LscModifications lm) throws LscServiceException
submit
in interface IXAWritableService
LscServiceException
public void commit(String xid) throws LscServiceException
commit
in interface IXAWritableService
LscServiceException
public void end(String xid) throws LscServiceException
end
in interface IXAWritableService
LscServiceException
public int prepare(String xid) throws LscServiceException
prepare
in interface IXAWritableService
LscServiceException
public void rollback(String xid) throws LscServiceException
rollback
in interface IXAWritableService
LscServiceException
public boolean apply(LscModifications lm) throws LscServiceException
IWritableService
apply
in interface IWritableService
lm
- Modifications to apply in a LscModifications
object.LscServiceException
- thrown if an error is encounteredpublic IBean getBean(String pivotName, LscDatasets pivotAttributes, boolean fromSameService) throws LscServiceException
IService
getBean
in interface IService
pivotName
- Name of the entry to be returned, which is the name returned by
IService.getListPivots()
(used for display only)pivotAttributes
- Map of attribute names and values, which is the data identifier in the
source such as returned by IService.getListPivots()
. It must identify a unique
entry in the source.fromSameService
- are the pivot attributes provided by the same serviceLscServiceException
public Map<String,LscDatasets> getListPivots() throws LscServiceException
IService
getListPivots
in interface IService
LscServiceException
public void setTransactionManager(TransactionManager xaTM)
setTransactionManager
in interface IXAWritableService
public List<String> getWriteDatasetIds()
getWriteDatasetIds
in interface IWritableService
Copyright © 2005-2024 LSC project. All Rights Reserved.