public final class DafGeneralInfoHelper extends com.bea.wlcp.wlng.api.management.WLNGMBeanDelegate implements DafConfigurationsMBean, com.bea.wlcp.wlng.util.MbeanRefreshInterface
Modifier and Type | Field and Description |
---|---|
static String |
KEY_BLACKLIST_MTD
Black list method key.
|
static String |
KEY_BLACKLIST_PKG
Black list package key.
|
static String |
KEY_CALLOUT_RETRY_TIMES
CalloutRetryTimes key.
|
static String |
KEY_CONNECT_TIMEOUT_MS
ConnectTimeoutMS key.
|
static String |
KEY_CONTINUE_SOUTH_RESPONSE_CALLFLOW
Continue the response call flow.
|
static String |
KEY_CS_CONFIG
Communication service plugin configuration key.
|
static String |
KEY_ENABLE_SOUTH_COOKIE
enable south cookie Key.
|
static String |
KEY_KEEP_NORTH_SESSION
keepNorthSession key.
|
static String |
KEY_MAX_TOTAL_CONNECTIONS
MaxTotalConnections key.
|
static String |
KEY_REUSE_ADDRESS
ReuseAddress key.
|
static String |
KEY_SLA_ERROR_CODE
Configuration key for integer status code to use for SLA violations.
|
static String |
KEY_SLA_ERROR_MSG
Configuration key for String message to use in HTTP responses for SLA violations.
|
static String |
KEY_SOCKET_TIMEOUT_MS
SocketTimeoutMS key.
|
static String |
KEY_SOUTH_CHUNCKED_SETTING
South bound chunked setting.
|
static String |
KEY_SOUTH_CONNECT_CLOSE_HEADER
South bound connection close header setting.
|
static String |
KEY_SOUTH_CONNECT_CLOSE_THRESHOLD
South bound connection close header request pay load threshold in byte.
|
static String |
KEY_USE_SESSION
use session key.
|
static String |
KEY_WHITELIST_MTD
White list method key.
|
static String |
KEY_WHITELIST_PKG
White list package key.
|
static String |
MODULE_NAME
Store module name.
|
static String |
SERVICE_NAME
Service name for this mbean.
|
static String |
SHARED_STORE
store shared name.
|
callOutRetryTimes, connectTimeoutMs, continueResponseCallFlow, enableSouthCookie, installerVersion, keepNorthSession, maxTotalConnections, reuseAddress, sendSouthConnCloseThreshold, sendSouthConnectionCloseHeader, SLAValidationErrorCode, SLAValidationErrorMessage, socketTimeoutMs, southBoundChunkedSetting, useSession
Constructor and Description |
---|
DafGeneralInfoHelper()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getCachedKeepNorthSession()
Get Cached keepNorthSession value.
|
int |
getCallOutRetryTimes()
Gets the retry times when failed to call on south bound service.
|
int |
getConnectTimeoutMs()
Get configured performance parameter connectTimeoutMs.
|
String[] |
getDenyCodeDefinitions() |
boolean |
getEnableSouthCookie()
Get configured performance parameter enableSouthCookie.
|
String |
getInstallerVersion()
Get current installer version.
|
boolean |
getKeepNorthSession()
Get configured performance parameter keepNorthSession.
|
String |
getMapping(int denyCode) |
String[] |
getMappings(int offset,
int limit) |
int |
getMaxTotalConnections()
Get configured performance parameter maxTotalConnections.
|
boolean |
getReuseAddress()
Get configured performance parameter reuseAddress.
|
int |
getSendSouthConnCloseThreshold()
Gets the sendSouthConnCloseThreshold value.
|
int |
getSLAValidationErrorCode()
Override the default HTTP response message to use for SLA validation errors.
|
String |
getSLAValidationErrorMessage()
Override the default HTTP response message to use for SLA validation errors.
|
int |
getSocketTimeoutMs()
Get configured performance parameter socketTimeoutMs.
|
String |
getSouthBoundChunkedSetting()
Return the configured southBoundChunkedSetting.
|
boolean |
getUseSession()
Get configured performance parameter useSession.
|
boolean |
isContinueResponseCallFlow()
Gets continueResponseCallflow value.
|
boolean |
isSendSouthConnectionCloseHeader()
Gets the sendSouthConnectionCloseHeader value.
|
void |
refresh() |
String |
removeMapping(int denyCode) |
String |
retrieveAvailableDafCSConfigurations()
Get the configurations of deployed and enabled communication services.
|
String |
retrieveBlackMethodList()
Retrieve the black method list.
|
String |
retrieveBlackPackageList()
Retrieve the black package list.
|
String |
retrieveDafCSConfigurations()
Get the configurations of communication services.
|
Map<String,List<String>> |
retrieveListAll()
Get all of the black and white list.
|
Map<String,String> |
retrievePerformanceSets()
Get all of the performance settings.
|
String |
retrieveWhiteMethodList()
Retrieve the white method list.
|
String |
retrieveWhitePackageList()
Retrieve the white package list.
|
void |
setCallOutRetryTimes(int callOutRetryTimes)
Sets the retry times when failed to call on south bound service.
|
void |
setConnectTimeoutMs(int ctm)
Set configured performance parameter connectTimeoutMs.
|
void |
setContinueResponseCallFlow(boolean value)
Sets break or not break the response action call flow when OCSG does not
get the response from the southbound services.
|
void |
setEnableSouthCookie(boolean esc)
Set configured performance parameter enableSouthCookie.
|
void |
setKeepNorthSession(boolean kns)
Set configured performance parameter keepNorthSession.
|
String |
setMapping(int denyCode,
int httpCode,
String contentType,
String httpBody) |
void |
setMaxTotalConnections(int mtc)
Set configured performance parameter maxTotalConnections.
|
void |
setReuseAddress(boolean ra)
Set configured performance parameter reuseAddress.
|
void |
setSendSouthConnCloseThreshold(int value)
Sets the sendSouthConnCloseThreshold value.
|
void |
setSendSouthConnectionCloseHeader(boolean value)
Sets the sendSouthConnectionCloseHeader value.
|
void |
setSLAValidationErrorCode(int code)
Override the default HTTP status code to use for SLA validation errors.
|
void |
setSLAValidationErrorMessage(String message)
Override the default HTTP body in error response when SLA is violated.
|
void |
setSocketTimeoutMs(int stm)
Set configured performance parameter socketTimeoutMs.
|
void |
setSouthBoundChunkedSetting(String value)
Set the southBoundChunkedSetting configuration.
|
void |
setUseSession(boolean us)
Set configured performance parameter useSession.
|
String |
updateBlackMethodList(String s)
Update the black method list.
|
String |
updateBlackPackageList(String s)
Update the black package list.
|
void |
updateDafCSConfigurations(String configurations)
Set the configurations of communication services.
|
String |
updateWhiteMethodList(String s)
Update the white method list.
|
String |
updateWhitePackageList(String s)
Update the white package list.
|
addNotificationListener, getNotificationInfo, removeNotificationListener, removeNotificationListener, sendNotification
getDescription, getDescription, getDescription, getParameterName, invoke
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
public static final String SERVICE_NAME
public static final String MODULE_NAME
public static final String SHARED_STORE
public static final String KEY_WHITELIST_MTD
public static final String KEY_WHITELIST_PKG
public static final String KEY_BLACKLIST_MTD
public static final String KEY_BLACKLIST_PKG
public static final String KEY_KEEP_NORTH_SESSION
public static final String KEY_ENABLE_SOUTH_COOKIE
public static final String KEY_CONTINUE_SOUTH_RESPONSE_CALLFLOW
public static final String KEY_USE_SESSION
public static final String KEY_REUSE_ADDRESS
public static final String KEY_MAX_TOTAL_CONNECTIONS
public static final String KEY_SOCKET_TIMEOUT_MS
public static final String KEY_CONNECT_TIMEOUT_MS
public static final String KEY_SLA_ERROR_CODE
public static final String KEY_SLA_ERROR_MSG
public static final String KEY_CALLOUT_RETRY_TIMES
public static final String KEY_CS_CONFIG
public static final String KEY_SOUTH_CHUNCKED_SETTING
public static final String KEY_SOUTH_CONNECT_CLOSE_HEADER
public static final String KEY_SOUTH_CONNECT_CLOSE_THRESHOLD
public DafGeneralInfoHelper() throws NotCompliantMBeanException
NotCompliantMBeanException
- - Will be thrown when fails.public void refresh() throws Exception
refresh
in interface com.bea.wlcp.wlng.util.MbeanRefreshInterface
Exception
public String updateBlackMethodList(String s) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
updateBlackMethodList
in interface DafConfigurationsMBean
s
- - The black list method separated by semicolon.com.bea.wlcp.wlng.api.management.ManagementException
- - If update failed.public String updateBlackPackageList(String s) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
updateBlackPackageList
in interface DafConfigurationsMBean
s
- - The black package list separated by semicolon.com.bea.wlcp.wlng.api.management.ManagementException
- - If update failed.public String updateWhiteMethodList(String s) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
updateWhiteMethodList
in interface DafConfigurationsMBean
s
- - The white method list separated by semicolon.com.bea.wlcp.wlng.api.management.ManagementException
- - If update failed.public String updateWhitePackageList(String s) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
updateWhitePackageList
in interface DafConfigurationsMBean
s
- - The white package list separated by semicolon.com.bea.wlcp.wlng.api.management.ManagementException
- - If update failed.public String retrieveWhiteMethodList() throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
retrieveWhiteMethodList
in interface DafConfigurationsMBean
com.bea.wlcp.wlng.api.management.ManagementException
- - If retrieving failed.public String retrieveWhitePackageList() throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
retrieveWhitePackageList
in interface DafConfigurationsMBean
com.bea.wlcp.wlng.api.management.ManagementException
- - If retrieving failed.public String retrieveBlackMethodList() throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
retrieveBlackMethodList
in interface DafConfigurationsMBean
com.bea.wlcp.wlng.api.management.ManagementException
- - If retrieving failed.public String retrieveBlackPackageList() throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
retrieveBlackPackageList
in interface DafConfigurationsMBean
com.bea.wlcp.wlng.api.management.ManagementException
- - If retrieving failed.public Map<String,List<String>> retrieveListAll() throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
retrieveListAll
in interface DafConfigurationsMBean
com.bea.wlcp.wlng.api.management.ManagementException
- - Exception will be thrown if fails.public boolean getKeepNorthSession()
DafConfigurationsMBean
getKeepNorthSession
in interface DafConfigurationsMBean
public void setKeepNorthSession(boolean kns) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
setKeepNorthSession
in interface DafConfigurationsMBean
kns
- - keepNorthSession.com.bea.wlcp.wlng.api.management.ManagementException
- - Exception will be thrown if fails.public boolean getReuseAddress()
DafConfigurationsMBean
getReuseAddress
in interface DafConfigurationsMBean
public void setReuseAddress(boolean ra) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
setReuseAddress
in interface DafConfigurationsMBean
ra
- - reuseAddress.com.bea.wlcp.wlng.api.management.ManagementException
- - Exception will be thrown if fails.public boolean getEnableSouthCookie()
DafConfigurationsMBean
getEnableSouthCookie
in interface DafConfigurationsMBean
public void setEnableSouthCookie(boolean esc) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
setEnableSouthCookie
in interface DafConfigurationsMBean
esc
- - enableSouthCookie.com.bea.wlcp.wlng.api.management.ManagementException
- - Exception will be thrown if fails.public boolean isContinueResponseCallFlow()
DafConfigurationsMBean
isContinueResponseCallFlow
in interface DafConfigurationsMBean
public void setContinueResponseCallFlow(boolean value) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
setContinueResponseCallFlow
in interface DafConfigurationsMBean
value
- True, continue; False: break.com.bea.wlcp.wlng.api.management.ManagementException
- If continueResponseCallflow could not be saved or invalid.public boolean isSendSouthConnectionCloseHeader()
DafConfigurationsMBean
isSendSouthConnectionCloseHeader
in interface DafConfigurationsMBean
public void setSendSouthConnectionCloseHeader(boolean value) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
setSendSouthConnectionCloseHeader
in interface DafConfigurationsMBean
value
- true or false.com.bea.wlcp.wlng.api.management.ManagementException
- If sendSthConnectionCloseHeader could not be saved or invalid.public int getSendSouthConnCloseThreshold()
DafConfigurationsMBean
getSendSouthConnCloseThreshold
in interface DafConfigurationsMBean
public void setSendSouthConnCloseThreshold(int value) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
setSendSouthConnCloseThreshold
in interface DafConfigurationsMBean
value
- True, send it; False: not send.com.bea.wlcp.wlng.api.management.ManagementException
- If sendSouthConnCloseThreshold could not be saved or invalid.public boolean getUseSession()
DafConfigurationsMBean
getUseSession
in interface DafConfigurationsMBean
public void setUseSession(boolean us) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
setUseSession
in interface DafConfigurationsMBean
us
- - useSession.com.bea.wlcp.wlng.api.management.ManagementException
- - Exception will be thrown if fails.public int getMaxTotalConnections()
DafConfigurationsMBean
getMaxTotalConnections
in interface DafConfigurationsMBean
public void setMaxTotalConnections(int mtc) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
setMaxTotalConnections
in interface DafConfigurationsMBean
mtc
- - maxTotalConnections.com.bea.wlcp.wlng.api.management.ManagementException
- - Exception will be thrown if fails.public int getSocketTimeoutMs()
DafConfigurationsMBean
getSocketTimeoutMs
in interface DafConfigurationsMBean
public void setSocketTimeoutMs(int stm) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
setSocketTimeoutMs
in interface DafConfigurationsMBean
stm
- - socketTimeoutMs.com.bea.wlcp.wlng.api.management.ManagementException
- - Exception will be thrown if fails.public int getConnectTimeoutMs()
DafConfigurationsMBean
getConnectTimeoutMs
in interface DafConfigurationsMBean
public void setConnectTimeoutMs(int ctm) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
setConnectTimeoutMs
in interface DafConfigurationsMBean
ctm
- - connectTimeoutMs.com.bea.wlcp.wlng.api.management.ManagementException
- - Exception will be thrown if fails.public Map<String,String> retrievePerformanceSets() throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
retrievePerformanceSets
in interface DafConfigurationsMBean
com.bea.wlcp.wlng.api.management.ManagementException
- - Exception will be thrown if fails.public boolean getCachedKeepNorthSession()
public int getSLAValidationErrorCode() throws com.bea.wlcp.wlng.api.management.ManagementException
getSLAValidationErrorCode
in interface DafConfigurationsMBean
com.bea.wlcp.wlng.api.management.ManagementException
- If error code could not be fetched.public void setSLAValidationErrorCode(int code) throws com.bea.wlcp.wlng.api.management.ManagementException
setSLAValidationErrorCode
in interface DafConfigurationsMBean
code
- HTTP error code, eg 401. Use -1 to reset to default error codes.com.bea.wlcp.wlng.api.management.ManagementException
- If error code could not be saved.public String getSLAValidationErrorMessage() throws com.bea.wlcp.wlng.api.management.ManagementException
getSLAValidationErrorMessage
in interface DafConfigurationsMBean
com.bea.wlcp.wlng.api.management.ManagementException
- If error code could not be fetched.public String[] getDenyCodeDefinitions() throws com.bea.wlcp.wlng.api.management.ManagementException
getDenyCodeDefinitions
in interface oracle.ocsg.daf.store.DenyCodeMappingsOperations
com.bea.wlcp.wlng.api.management.ManagementException
public String[] getMappings(int offset, int limit) throws com.bea.wlcp.wlng.api.management.ManagementException
getMappings
in interface oracle.ocsg.daf.store.DenyCodeMappingsOperations
com.bea.wlcp.wlng.api.management.ManagementException
public String getMapping(int denyCode) throws com.bea.wlcp.wlng.api.management.ManagementException
getMapping
in interface oracle.ocsg.daf.store.DenyCodeMappingsOperations
com.bea.wlcp.wlng.api.management.ManagementException
public String setMapping(int denyCode, int httpCode, String contentType, String httpBody) throws com.bea.wlcp.wlng.api.management.ManagementException
setMapping
in interface oracle.ocsg.daf.store.DenyCodeMappingsOperations
com.bea.wlcp.wlng.api.management.ManagementException
public String removeMapping(int denyCode) throws com.bea.wlcp.wlng.api.management.ManagementException
removeMapping
in interface oracle.ocsg.daf.store.DenyCodeMappingsOperations
com.bea.wlcp.wlng.api.management.ManagementException
public void setSLAValidationErrorMessage(String message) throws com.bea.wlcp.wlng.api.management.ManagementException
setSLAValidationErrorMessage
in interface DafConfigurationsMBean
message
- HTTP message to send in HTTP response, or empty String to reset to default error messages.com.bea.wlcp.wlng.api.management.ManagementException
- If error message could not be saved.public int getCallOutRetryTimes() throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
getCallOutRetryTimes
in interface DafConfigurationsMBean
com.bea.wlcp.wlng.api.management.ManagementException
- - Exception will be thrown if fails.public void setCallOutRetryTimes(int callOutRetryTimes) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
setCallOutRetryTimes
in interface DafConfigurationsMBean
callOutRetryTimes
- The retry times.com.bea.wlcp.wlng.api.management.ManagementException
- - Exception will be thrown if fails.public String getInstallerVersion()
DafConfigurationsMBean
getInstallerVersion
in interface DafConfigurationsMBean
public void updateDafCSConfigurations(String configurations) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
updateDafCSConfigurations
in interface DafConfigurationsMBean
configurations
- the configurations of communication services.com.bea.wlcp.wlng.api.management.ManagementException
- .public String retrieveDafCSConfigurations() throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
retrieveDafCSConfigurations
in interface DafConfigurationsMBean
com.bea.wlcp.wlng.api.management.ManagementException
- .public String retrieveAvailableDafCSConfigurations() throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
retrieveAvailableDafCSConfigurations
in interface DafConfigurationsMBean
com.bea.wlcp.wlng.api.management.ManagementException
- .public String getSouthBoundChunkedSetting() throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
getSouthBoundChunkedSetting
in interface DafConfigurationsMBean
com.bea.wlcp.wlng.api.management.ManagementException
- If southBoundChunkedSetting could not be fetched from storage.public void setSouthBoundChunkedSetting(String value) throws com.bea.wlcp.wlng.api.management.ManagementException
DafConfigurationsMBean
setSouthBoundChunkedSetting
in interface DafConfigurationsMBean
value
- - the southBoundChunkedSetting to be set.com.bea.wlcp.wlng.api.management.ManagementException
- If southBoundChunkedSetting could not be saved or invalid.