public interface MasterMessageServer extends ShutdownListener
Modifier and Type | Field and Description |
---|---|
static int |
MAX_BODY_SIZE |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkTransHeaderExists(VirtualDB layer,
long transNr) |
void |
connect()
Connect to the JMS server
|
java.lang.String |
getCurrentClientID()
The current the client ID
|
static MasterMessageServer |
make(MasterDB master)
if jms_context is SQS then the jms_provider_url format is expected to be:-
accessKey=xxxxxxxxxxxxxx,secretKey=yyyyyyyyyyyyyyyyyy,region=ap-southeast-2,queue=DEV_TRANSACTIONS
|
static java.lang.String |
makeClear(MasterMessageServer mms)
make the clear Message
|
static java.lang.String |
makeMSG(MasterMessageServer mms,
MutableDataSource mds,
long transNr,
DBObject[] list,
long transMS)
Make the XML MSG.
|
void |
send(MutableDataSource mds,
long transNr,
DBObject[] list,
long transMS)
sends a message
|
void |
sendClear()
Send clear Message
|
shutdown
static final int MAX_BODY_SIZE
void connect() throws java.lang.Exception
java.lang.Exception
- A serious problem.void send(@Nonnull MutableDataSource mds, @Nonnegative long transNr, @Nonnull DBObject[] list, @Nonnegative long transMS) throws java.lang.Exception
mds
- the datasourcetransNr
- the transaction numberlist
- the object listtransMS
- transaction time.java.lang.Exception
- a serious problem@Nonnull @CheckReturnValue java.lang.String getCurrentClientID()
void sendClear() throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull static MasterMessageServer make(@Nonnull MasterDB master) throws java.lang.Exception
master
- The current master.java.lang.Exception
- a serious problem.static boolean checkTransHeaderExists(@Nonnull VirtualDB layer, @Nonnegative long transNr)
static java.lang.String makeMSG(@Nonnull MasterMessageServer mms, @Nonnull MutableDataSource mds, @Nonnegative long transNr, @Nonnull DBObject[] list, @Nonnegative long transMS) throws java.lang.Exception
mms
- the clientmds
- transNr
- list
- transMS
- java.lang.Exception
@Nonnull @CheckReturnValue static java.lang.String makeClear(@Nonnull MasterMessageServer mms) throws java.lang.Exception
mms
- the clientjava.lang.Exception
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.