TML Messaging Suite  1.1.5
for Java
 All Classes Namespaces Functions Variables Groups Pages
Functions
Load balancing

Balance command calls. More...

Functions

int com.tmlsidex.jni.Tml.tml_Bal_Get_MaxConnectionFailCount (long coreHandle) throws TmlSidexException
 get the maximum load balancing connection fail count More...
 
long com.tmlsidex.jni.Tml.tml_Bal_Get_Subscribed_MessageDestinations (long coreHandle, String sProfile) throws TmlSidexException
 get load balanced command receiver list More...
 
void com.tmlsidex.jni.Tml.tml_Bal_Send_AsyncMessage (long coreHandle, long cmdHandle, String sProfile, long iTimeout) throws TmlSidexException
 send a load balanced asynchronous message More...
 
void com.tmlsidex.jni.Tml.tml_Bal_Send_SubscriptionRequest (long coreHandle, String sProfile, String sSourceHost, String sSourcePort, String sDestHost, String sDestPort, long timeout) throws TmlSidexException
 send a load balancing subscription request More...
 
void com.tmlsidex.jni.Tml.tml_Bal_Send_SyncMessage (long coreHandle, long cmdHandle, String sProfile, long iTimeout) throws TmlSidexException
 send a load balanced synchronous message More...
 
void com.tmlsidex.jni.Tml.tml_Bal_Send_UnsubscriptionRequest (long coreHandle, String sProfile, String sSourceHost, String sSourcePort, String sDestHost, String sDestPort, long timeout) throws TmlSidexException
 unregister a load balancing message receiver. More...
 
void com.tmlsidex.jni.Tml.tml_Bal_Set_MaxConnectionFailCount (long coreHandle, int iCount) throws TmlSidexException
 set the maximum load balancing connection fail count More...
 
void com.tmlsidex.jni.Tml.tml_Bal_Set_OnBusyStatusRequest (long coreHandle, String profile, TmlJniBalBusyStatusRequestHandlerIF cbInstance, Object cbData) throws TmlSidexException
 register a busy status request handler More...
 
void com.tmlsidex.jni.Tml.tml_Bal_Set_OnCalculation (long coreHandle, String profile, TmlJniBalCalculationHandlerIF cbInstance, Object cbData) throws TmlSidexException
 register load balancing calculation handler More...
 
void com.tmlsidex.jni.Tml.tml_Bal_Set_OnPeerRegister (long coreHandle, String profile, TmlJniBalPeerRegisterHandlerIF cbInstance, Object cbData) throws TmlSidexException
 register handler for load balancing subscription requests More...
 
void com.tmlsidex.jni.Tml.tml_Bal_Set_OnPopulate (long coreHandle, String profile, TmlJniBalPopulateHandlerIF cbInstance, Object cbData) throws TmlSidexException
 register on populate handler (balancer) More...
 
void com.tmlsidex.jni.Tml.tml_Bal_Subscribe_MessageDestination (long coreHandle, String sProfile, String sIP, String sPort) throws TmlSidexException
 add a command receiver for load balanced calls More...
 
void com.tmlsidex.jni.Tml.tml_Bal_Unsubscribe_All_MessageDestinations (long coreHandle, String sProfile) throws TmlSidexException
 clear command receiver list More...
 
void com.tmlsidex.jni.Tml.tml_Bal_Unsubscribe_MessageDestination (long coreHandle, String sProfile, String sIP, String sPort) throws TmlSidexException
 unsubscribe a command receiver More...
 

Detailed Description

Balance command calls.

For backup and load balancing TML provides an API to call a group of peers instead of a specific peer to process a command. If one peer fails the remaining will still handle the command.