com.ibm.commerce.messaging.util
Class RunTimeProfile

java.lang.Object
  |
  +--com.ibm.commerce.messaging.util.RunTimeProfile

public class RunTimeProfile
extends java.lang.Object

Creates the Profiles for the given message type and store.


Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
RunTimeProfile()
          Constructs the RunTimeProfile object.
 
Method Summary
 java.util.Properties getCSForProfile(int profile_num)
          Returns the Connection Spec configuration for the specified profile id.
 java.util.Properties getISForProfile(int profile_num)
          Returns the Interaction Spec configuration based on the profile id.
 java.util.Properties getMsgTypeAttributesForProfile(int profile_num)
          Returns the Message Type Attributes.
 java.util.Properties getNVPsForProfile(int profile_num)
          Returns the keys for translating certain connector attributes.
 java.util.Properties getProfileAttributesForProfile(int profile_num)
          Retrieves the profile configuration for the specified profile id.
 java.util.Properties getTransportAttributesForProfile(int profile_num)
          Returns the Transport configuration for the given profile id.
 int loadProfiles(int msgtypeid, int storeid, int priority)
          Loads all the profiles for the given message type and store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

RunTimeProfile

public RunTimeProfile()
Constructs the RunTimeProfile object.
Method Detail

getCSForProfile

public java.util.Properties getCSForProfile(int profile_num)
                                     throws ECSystemException
Returns the Connection Spec configuration for the specified profile id.
Parameters:
profile_num - int The profile id.
Returns:
java.util.Properties The Connection Spec properties
Throws:
ECSystemException -  

getISForProfile

public java.util.Properties getISForProfile(int profile_num)
                                     throws ECSystemException
Returns the Interaction Spec configuration based on the profile id.
Parameters:
profile_num - int The Profile Id.
Returns:
java.util.Properties The Interaction Spec properties.
Throws:
ECSystemException -  

getMsgTypeAttributesForProfile

public java.util.Properties getMsgTypeAttributesForProfile(int profile_num)
                                                    throws ECSystemException
Returns the Message Type Attributes.
Parameters:
profile_num - int The profile Id.
Returns:
java.util.Properties The Message Type Attributes
Throws:
ECSystemException -  

getNVPsForProfile

public java.util.Properties getNVPsForProfile(int profile_num)
                                       throws ECSystemException
Returns the keys for translating certain connector attributes.
Parameters:
profile_num - int The Profile Id.
Returns:
java.util.Properties The keys used for translating certain connector attributes.
Throws:
ECSystemException -  

getProfileAttributesForProfile

public java.util.Properties getProfileAttributesForProfile(int profile_num)
                                                    throws ECSystemException
Retrieves the profile configuration for the specified profile id.
Parameters:
profile_num - int The profile id.
Returns:
java.util.Properties The profile configuration.
Throws:
ECSystemException -  

getTransportAttributesForProfile

public java.util.Properties getTransportAttributesForProfile(int profile_num)
                                                      throws ECSystemException
Returns the Transport configuration for the given profile id.
Parameters:
profile_num - int The profile id.
Returns:
java.util.Properties The Transport configuration.
Throws:
ECSystemException -  

loadProfiles

public int loadProfiles(int msgtypeid,
                        int storeid,
                        int priority)
                 throws ECSystemException
Loads all the profiles for the given message type and store.
Parameters:
msgtype - int The Message Type Id.
storeid - int The Store Id.
priority - int The Priority.
Returns:
int The number of profiles for the given message type and store.