|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.stratos.lb.common.conf.util.LoadBalancerConfigUtil
public final class LoadBalancerConfigUtil
Utility methods for Autoscale mediator
| Method Summary | |
|---|---|
static byte[] |
getBytesFromFile(File file)
Returns the contents of the file in a byte array |
static String |
getDomain(String str)
Deprecated. Extract the domain part given a string which is in <sub_domain>#<domain> format. |
static String |
getSubDomain(String str)
Deprecated. Extract the sub_domain part given a string which is in <sub_domain>#<domain> format. |
static List<TenantDomainContext> |
getTenantDomainContexts(String tenantRange,
String domain,
String subDomain)
|
static List<Integer> |
getTenantIds(String tenantRange)
This method will read the tenant range string and return a list of tenant ids which is derived from tenant range string. |
static String |
getUserData(String payloadFileName)
|
static void |
handleException(String msg)
handles the exception |
static void |
handleException(String msg,
Exception e)
handles the exception |
static String |
replaceVariables(String text)
Replaces the variables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void handleException(String msg)
msg - exception message
public static void handleException(String msg,
Exception e)
msg - exception messagee - exceptionpublic static String replaceVariables(String text)
text - input string
public static String getUserData(String payloadFileName)
public static byte[] getBytesFromFile(File file)
throws IOException
file - - Input File
IOException - , if retrieving the file contents failed.public static String getDomain(String str)
str - in <sub_domain>#<domain> format.
public static String getSubDomain(String str)
str - in <sub_domain>#<domain> format.
null.
public static List<TenantDomainContext> getTenantDomainContexts(String tenantRange,
String domain,
String subDomain)
public static List<Integer> getTenantIds(String tenantRange)
tenantRange -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||