Class CwConfiguration
- java.lang.Object
-
- org.apache.camel.component.aws.cw.CwConfiguration
-
-
Constructor Summary
Constructors Constructor Description CwConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CwConfiguration
copy()
String
getAccessKey()
com.amazonaws.services.cloudwatch.AmazonCloudWatch
getAmazonCwClient()
String
getName()
String
getNamespace()
String
getProxyHost()
Integer
getProxyPort()
com.amazonaws.Protocol
getProxyProtocol()
String
getRegion()
String
getSecretKey()
Date
getTimestamp()
String
getUnit()
Double
getValue()
boolean
isAutoDiscoverClient()
void
setAccessKey(String accessKey)
Amazon AWS Access Keyvoid
setAmazonCwClient(com.amazonaws.services.cloudwatch.AmazonCloudWatch amazonCwClient)
To use the AmazonCloudWatch as the clientvoid
setAutoDiscoverClient(boolean autoDiscoverClient)
Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking.void
setName(String name)
The metric namevoid
setNamespace(String namespace)
The metric namespacevoid
setProxyHost(String proxyHost)
To define a proxy host when instantiating the CW clientvoid
setProxyPort(Integer proxyPort)
To define a proxy port when instantiating the CW clientvoid
setProxyProtocol(com.amazonaws.Protocol proxyProtocol)
To define a proxy protocol when instantiating the CW clientvoid
setRegion(String region)
The region in which CW client needs to work.void
setSecretKey(String secretKey)
Amazon AWS Secret Keyvoid
setTimestamp(Date timestamp)
The metric timestampvoid
setUnit(String unit)
The metric unitvoid
setValue(Double value)
The metric value
-
-
-
Method Detail
-
getAccessKey
public String getAccessKey()
-
setAccessKey
public void setAccessKey(String accessKey)
Amazon AWS Access Key
-
getSecretKey
public String getSecretKey()
-
setSecretKey
public void setSecretKey(String secretKey)
Amazon AWS Secret Key
-
getName
public String getName()
-
setName
public void setName(String name)
The metric name
-
getValue
public Double getValue()
-
setValue
public void setValue(Double value)
The metric value
-
getUnit
public String getUnit()
-
setUnit
public void setUnit(String unit)
The metric unit
-
getNamespace
public String getNamespace()
-
setNamespace
public void setNamespace(String namespace)
The metric namespace
-
setTimestamp
public void setTimestamp(Date timestamp)
The metric timestamp
-
getTimestamp
public Date getTimestamp()
-
getAmazonCwClient
public com.amazonaws.services.cloudwatch.AmazonCloudWatch getAmazonCwClient()
-
setAmazonCwClient
public void setAmazonCwClient(com.amazonaws.services.cloudwatch.AmazonCloudWatch amazonCwClient)
To use the AmazonCloudWatch as the client
-
getProxyProtocol
public com.amazonaws.Protocol getProxyProtocol()
-
setProxyProtocol
public void setProxyProtocol(com.amazonaws.Protocol proxyProtocol)
To define a proxy protocol when instantiating the CW client
-
getProxyHost
public String getProxyHost()
-
setProxyHost
public void setProxyHost(String proxyHost)
To define a proxy host when instantiating the CW client
-
getProxyPort
public Integer getProxyPort()
-
setProxyPort
public void setProxyPort(Integer proxyPort)
To define a proxy port when instantiating the CW client
-
getRegion
public String getRegion()
-
setRegion
public void setRegion(String region)
The region in which CW client needs to work. When using this parameter, the configuration will expect the capitalized name of the region (for example AP_EAST_1) You'll need to use the name Regions.EU_WEST_1.name()
-
isAutoDiscoverClient
public boolean isAutoDiscoverClient()
-
setAutoDiscoverClient
public void setAutoDiscoverClient(boolean autoDiscoverClient)
Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking.
-
copy
public CwConfiguration copy()
-
-