|
SAP NetWeaver 7.30 (SP05) Process Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.aii.af.service.idmap.MessageIDMapper
public class MessageIDMapper
MessageIDMapper is a singleton that allows applications to create id mappings in a transactional
manner.
MessageIDMapper mapper = MessageIDMapper.getInstance();
mapper.createIDMap(mid1, mid2);
| Method Summary | |
|---|---|
void |
createIDMap(MessageKey mkey1,
MessageKey mkey2,
long archiveAfter,
boolean callPMIAgent,
boolean transactional)
Creates a map between two message keys. |
void |
createIDMap(String mid1,
String mid2,
long archiveAfter)
|
void |
createIDMap(String mid1,
String mid2,
long archiveAfter,
boolean transactional)
Creates a map between two message ids. |
void |
decrementDuplicateCount(String mid1,
int duplicateThreshold)
Decrements the duplicate count for message id MSG_ID1 |
void |
decrementDuplicateCount(String mid1,
int duplicateThreshold,
boolean transactional)
Decrements the duplicate count for message id MSG_ID1 |
com.sap.aii.af.service.idmap.IDMap |
getIDMapExt(String mid)
Get ID Map Extended. |
static MessageIDMapper |
getInstance()
Gets the singleton MessageIDMapper |
String |
getMappedId(String mid)
Retrieves a message id from the mapped message ids. |
MessageKey |
getMappedKey(MessageKey mkey)
Retrieves a message key from the mapped message keys. |
void |
incrementDuplicateCount(String mid1)
Increments the duplicate count for message id MSG_ID1 |
void |
incrementDuplicateCount(String mid1,
boolean transactional)
Increments the duplicate count for message id MSG_ID1 |
LinkedList<String[]> |
readIDMapEntries()
Reads all IDMap entries available in the DB and returnes them as a LinkedList of IDMap objects. |
String |
remove(String mid)
|
String |
remove(String mid,
boolean transactional)
Removes the message id map entry for this id. |
void |
removeExpiredIDMaps()
|
void |
removeExpiredIDMaps(Timestamp timeStamp)
Deletes all IDMapper entries, where the persist duration has already expired. |
void |
removeExpiredIDMaps(Timestamp timeStamp,
int bulkLimit)
Deletes all IDMapper entries, where the persist duration has already expired. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MessageIDMapper getInstance()
MessageIDMapper
public String getMappedId(String mid)
mid - the message id.
public com.sap.aii.af.service.idmap.IDMap getIDMapExt(String mid)
mid - the message id (MSG_ID1).
public MessageKey getMappedKey(MessageKey mkey)
mkey - the message key.
public String remove(String mid,
boolean transactional)
mid - the messasge id for which to remove the map.
public String remove(String mid)
public void createIDMap(String mid1,
String mid2,
long archiveAfter)
throws UtilException
UtilException
public void createIDMap(String mid1,
String mid2,
long archiveAfter,
boolean transactional)
throws UtilException
mid1 - the first message id.mid2 - the second message id.archiveAfter - a point in time represented in milliseconds as per the java standard after which this message
id mapping will no longer be required and can be archived.transactional - specifies if the IDMap entry should be written in an existing transactional context
MessagingException - if one of the ids already exists in the database.
UtilException
public void createIDMap(MessageKey mkey1,
MessageKey mkey2,
long archiveAfter,
boolean callPMIAgent,
boolean transactional)
throws UtilException
mkey1 - the first message key.mkey2 - the second message key.archiveAfter - a point in time represented in milliseconds as per the java standard after which this message
id mapping will no longer be required and can be archived.transactional - specifies if the IDMap entry should be created as part or a transactional contextcallPMIAgent - specifies if the IDMapping PMI agent should be called
MessagingException - if one of the ids already exists in the database.
UtilException
public void incrementDuplicateCount(String mid1)
throws UtilException
mid1 - the first message id.
UtilException
public void incrementDuplicateCount(String mid1,
boolean transactional)
throws UtilException
mid1 - the first message id.transactional - specifies if the IDMap entry should be written in an existing transactional context
UtilException - in case of any exception
public void decrementDuplicateCount(String mid1,
int duplicateThreshold)
throws UtilException
mid1 - the first message id.threshold - limit for duplicate messages
UtilException
public void decrementDuplicateCount(String mid1,
int duplicateThreshold,
boolean transactional)
throws UtilException
mid1 - the first message id.threshold - limit for duplicate messagestransactional - specifies if the IDMap entry should be written in an existing transactional context
UtilException - in case of any exceptionpublic void removeExpiredIDMaps(Timestamp timeStamp)
public void removeExpiredIDMaps(Timestamp timeStamp,
int bulkLimit)
public void removeExpiredIDMaps()
public LinkedList<String[]> readIDMapEntries()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.svc.facade
|
api
|
BC-XI
|
|
SAP NetWeaver 7.30 (SP05) Process Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||