From 072b132ed500ada34eab5c0a8d56d2e4136fc22a Mon Sep 17 00:00:00 2001 From: shilmy hasan Date: Mon, 17 Sep 2018 16:59:10 +0530 Subject: [PATCH 01/16] adding apim-analytics client --- .../apim-analytics-client/build.xml | 87 +++++ .../apim-analytics-client/pom.xml | 65 ++++ .../wso2/carbon/sample/apimevent/Client.java | 303 ++++++++++++++++++ .../sample/apimevent/DataPublisherUtil.java | 81 +++++ .../carbon/sample/apimevent/FaultDTO.java | 24 ++ .../carbon/sample/apimevent/RequestDTO.java | 41 +++ .../sample/apimevent/ThrottledOutDTO.java | 41 +++ .../main/resources/Throttled_Out_Summry.csv | 0 .../src/main/resources/client-truststore.jks | Bin 0 -> 1512 bytes .../src/main/resources/data.agent.config.yaml | 131 ++++++++ .../src/main/resources/log4j.properties | 34 ++ .../src/main/resources/master-keys.yaml | 6 + .../src/main/resources/secrets.properties | 2 + .../src/main/resources/securevault.jks | Bin 0 -> 33498 bytes .../resources/sync.data.agent.config.yaml | 131 ++++++++ .../src/main/resources/wso2carbon.jks | Bin 0 -> 2201 bytes 16 files changed, 946 insertions(+) create mode 100644 modules/samples/sample-clients/apim-analytics-client/build.xml create mode 100644 modules/samples/sample-clients/apim-analytics-client/pom.xml create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/resources/Throttled_Out_Summry.csv create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/resources/client-truststore.jks create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/resources/data.agent.config.yaml create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/resources/log4j.properties create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/resources/master-keys.yaml create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/resources/secrets.properties create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/resources/securevault.jks create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/resources/sync.data.agent.config.yaml create mode 100644 modules/samples/sample-clients/apim-analytics-client/src/main/resources/wso2carbon.jks diff --git a/modules/samples/sample-clients/apim-analytics-client/build.xml b/modules/samples/sample-clients/apim-analytics-client/build.xml new file mode 100644 index 000000000..d6a60a7bf --- /dev/null +++ b/modules/samples/sample-clients/apim-analytics-client/build.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Configure -Dprotocol and -Dhost and -Dport and -Dusername and -Dpassword. + + + + + + + + + + diff --git a/modules/samples/sample-clients/apim-analytics-client/pom.xml b/modules/samples/sample-clients/apim-analytics-client/pom.xml new file mode 100644 index 000000000..951f34b71 --- /dev/null +++ b/modules/samples/sample-clients/apim-analytics-client/pom.xml @@ -0,0 +1,65 @@ + + + + + + + org.wso2.sp + sample-clients + 4.3.1-SNAPSHOT + ../pom.xml + + + 4.0.0 + WSO2 Stream Processor - Sample - WSO2Event Client + apimevent-client + pom + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + + + + + + + + org.wso2.carbon.analytics-common + org.wso2.carbon.databridge.commons + + + org.wso2.carbon.analytics-common + org.wso2.carbon.databridge.commons.thrift + + + org.wso2.carbon.analytics-common + org.wso2.carbon.databridge.commons.binary + + + org.wso2.carbon.analytics-common + org.wso2.carbon.databridge.agent + + + + + \ No newline at end of file diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java b/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java new file mode 100644 index 000000000..e03e6edd9 --- /dev/null +++ b/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java @@ -0,0 +1,303 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.wso2.carbon.sample.apimevent; + +import com.sun.org.apache.xpath.internal.operations.Bool; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.wso2.carbon.databridge.agent.AgentHolder; +import org.wso2.carbon.databridge.agent.DataPublisher; +import org.wso2.carbon.databridge.commons.Event; +import org.wso2.carbon.databridge.commons.utils.DataBridgeCommonsUtils; + +import java.sql.Timestamp; +import java.util.Arrays; +import java.util.concurrent.ThreadLocalRandom; + +/** + * WSO2Event Client Publisher. + */ +public class Client { + private static Log log = LogFactory.getLog(Client.class); + private static final String STREAM_NAME = "org.wso2.apimgt.statistics.throttle"; + private static final String FAULT_STREAM = "org.wso2.apimgt.statistics.fault"; + private static final String REQUEST_STREAM = "org.wso2.apimgt.statistics.request"; + private static final String VERSION = "3.0.0"; + private static String agentConfigFileName = "sync.data.agent.config.yaml"; + + private static String[] username = {"admin", "smith", "finch", "starc", "maxwell", "haddin", "warner", "faulkner", "marsh"}; + private static String[] tenantDomain = {"carbon.super", "loc.super","range.com"}; + private static String[] apiName = {"ceylan", "NDB", "Commercial", "BOC", "Peoples", "LG", "Abans", "Singer", "Damro"}; + private static String[] apiCreator = {"admin", "rohan", "Jeevan"}; + private static String[] apiMethod = {"GET","POST","PUT"}; + private static String[] applicationId = {"1", "2", "3"}; + private static String[] applicationName = {"default", "app1", "app2"}; + private static String[] applicationCK = {"default", "app1", "app2"}; + private static String[] applicationOwner = {"Michael", "clarke", "cook"}; + private static String[] userIp = {"10.100.8.14","10.100.8.26","10.100.3.64"}; + + public static void main(String[] args) { + + DataPublisherUtil.setKeyStoreParams(); + DataPublisherUtil.setTrustStoreParams(); + + log.info("These are the provided configurations: " + Arrays.deepToString(args)); + + String protocol = args[0]; + String host = args[1]; + String port = args[2]; + int sslPort = Integer.parseInt(port) + 100; + String username = args[3]; + String password = args[4]; + String numberOfEventsStr = args[5]; + int numberOfEvents = Integer.parseInt(numberOfEventsStr); + + + try { + log.info("Starting WSO2 Event Client"); + + AgentHolder.setConfigPath(DataPublisherUtil.getDataAgentConfigPath(agentConfigFileName)); + DataPublisher dataPublisher = new DataPublisher(protocol, "tcp://" + host + ":" + port, + "ssl://" + host + ":" + sslPort, username, password); + Event event = new Event(); + event.setStreamId(DataBridgeCommonsUtils.generateStreamId(STREAM_NAME, VERSION)); + event.setCorrelationData(null); + + Event faultEvent = new Event(); + faultEvent.setStreamId(DataBridgeCommonsUtils.generateStreamId(FAULT_STREAM, VERSION)); + faultEvent.setCorrelationData(null); + + Event requestEvent = new Event(); + requestEvent.setStreamId(DataBridgeCommonsUtils.generateStreamId(REQUEST_STREAM, VERSION)); + event.setCorrelationData(null); + + String meta_ClientType="mozilla"; + + for (int i = 0; i < numberOfEvents; i++) { + /*int metaClientType = ThreadLocalRandom.current().nextInt(metaTenantIdMinBound, metaTenantIdMaxBound); + */ + event.setMetaData(new Object[]{meta_ClientType}); + faultEvent.setMetaData(new Object[]{meta_ClientType}); + requestEvent.setMetaData(new Object[]{meta_ClientType}); + + Object[] data = getObject(); + Object[] faultData = getFaultStream(); + Object[] requestData = getRequestStream(); + + event.setPayloadData(data); + faultEvent.setPayloadData(faultData); + requestEvent.setPayloadData(requestData); + + dataPublisher.publish(event); + dataPublisher.publish(faultEvent); + dataPublisher.publish(requestEvent); + + } + + try { + Thread.sleep(5000); + } catch (InterruptedException e) { + log.error(e); + } + dataPublisher.shutdown(); + log.info("Events published successfully"); + + } catch (Throwable e) { + log.error(e); + } + } + + private static Object[] getObject() { + + ThrottledOutDTO throttledObj = new ThrottledOutDTO(); + + String[] username = {"admin", "smith", "finch", "starc", "maxwell", "haddin", "warner", "faulkner", "marsh"}; + String[] userTenantDomain = {"carbon.super", "loc.super"}; + String[] apiCreator = {"admin", "rohan", "Jeevan"}; + String[] applicationId = {"1", "2", "3"}; + String[] applicationName = {"default", "app1", "app2"}; + String[] subscriber = {"Michael", "clarke", "cook"}; + String[] throttledOutReason = {"SUBSCRIPTION_LIMIT_EXCEEDED", "APPLICATION_LIMIT_EXCEEDED"}; + + int index = ThreadLocalRandom.current().nextInt(0, 9); + + //throttledObj.meta_clientType = "mozilla"; + throttledObj.username = username[index % 9]; + throttledObj.userTenantDomain = "carbon.super"; + throttledObj.apiName = apiName[index % 9]; + throttledObj.apiVersion = "1.0"; + throttledObj.apiContext = throttledObj.apiName + "/" + throttledObj.apiVersion; + throttledObj.apiCreator = apiCreator[index % 3]; + throttledObj.apiCreatorTenantDomain = "carbon.super"; + throttledObj.applicationId = applicationId[index % 3]; + throttledObj.applicationName = applicationName[index % 3]; + throttledObj.subscriber = subscriber[index % 2]; + throttledObj.throttledOutReason = throttledOutReason[index % 2]; + throttledObj.gatewayType = "g1"; + throttledObj.throttledOutTimestamp = new Timestamp(System.currentTimeMillis()).getTime(); + throttledObj.hostname = "localhost"; + + return (new Object[]{ + throttledObj.username, + throttledObj.userTenantDomain, + throttledObj.apiName, + throttledObj.apiVersion, + throttledObj.apiContext, + throttledObj.apiCreator, + throttledObj.apiCreatorTenantDomain, + throttledObj.applicationId, + throttledObj.applicationName, + throttledObj.subscriber, + throttledObj.throttledOutReason, + throttledObj.gatewayType, + throttledObj.throttledOutTimestamp, + throttledObj.hostname + }); + } + + private static Object[] getFaultStream() + { + int index = ThreadLocalRandom.current().nextInt(0, 9); + FaultDTO faultObj = new FaultDTO(); + faultObj.applicationConsumerKey = applicationCK[index % applicationCK.length]; + faultObj.apiName = apiName[index % 3]; + faultObj.apiVersion = "1.0"; + faultObj.apiContext = "get"; + faultObj.apiResourcePath = "/temp"; + faultObj.apiMethod = apiMethod[index % apiMethod.length]; + faultObj.apiCreator = apiCreator[index % apiCreator.length]; + faultObj.username = username[index % username.length]; + faultObj.userTenantDomain = tenantDomain[index % tenantDomain.length]; + faultObj.apiCreatorTenantDomain = tenantDomain[index % tenantDomain.length]; + faultObj.hostname="loca"; + faultObj.applicationId = applicationId[index % applicationName.length]; + faultObj.applicationName = applicationName[index % applicationName.length]; + faultObj.protocol="https"; + faultObj.errorCode="403"; + faultObj.errorMessage="notfound"; + faultObj.requestTimestamp = new Timestamp(System.currentTimeMillis()).getTime(); + + return( new Object[]{ + faultObj.applicationConsumerKey, + faultObj.apiName, + faultObj.apiVersion, + faultObj.apiContext, + faultObj.apiResourcePath, + faultObj.apiMethod, + faultObj.apiCreator, + faultObj.username, + faultObj.userTenantDomain, + faultObj.apiCreatorTenantDomain, + faultObj.hostname, + faultObj.applicationId, + faultObj.applicationName, + faultObj.protocol, + faultObj.errorCode, + faultObj.errorMessage, + faultObj.requestTimestamp + }); + + } + + public static Object[] getRequestStream() + { + RequestDTO requestObj = new RequestDTO(); + Boolean[] throttledOut = {true, false, true, true, true, true, true, true, true}; + long[] responseTime = {1,6,2}; + int[] responseCode = {200,403,200,200,200,200,200,200,550}; + + int index = ThreadLocalRandom.current().nextInt(0, 9); + + requestObj.applicationConsumerKey = applicationCK[index % 3]; + requestObj.applicationName = applicationName[index % 3]; + requestObj.applicationId = applicationId[index % 3]; + requestObj.applicationOwner = applicationOwner[index % 3]; + requestObj.apiContext = apiName[index % 9]+"/"+"1.0"; + requestObj.apiName = apiName[index % 9]; + requestObj.apiVersion = "1.0"; + requestObj.apiResourcePath = requestObj.apiName+"/"+apiMethod[index % 3]; + requestObj.apiResourceTemplate = requestObj.apiName+"/"+apiMethod[index % 3]; + requestObj.apiMethod = apiMethod[index % 3]; + requestObj.apiCreator = apiCreator[index % 3]; + requestObj.apiCreatorTenantDomain = tenantDomain[index % 3]; + requestObj.apiTier = "unlimited"; + requestObj.apiHostname = "localhost"; + requestObj.username = "default"; + requestObj.userTenantDomain = requestObj.apiCreatorTenantDomain; + requestObj.userIp = userIp[index % userIp.length]; + requestObj.userAgent = "Mozilla"; + requestObj.requestTimestamp = new Timestamp(System.currentTimeMillis()).getTime(); + requestObj.throttledOut = throttledOut[index % 9]; + requestObj.responseTime = responseTime[index % 3]; + requestObj.serviceTime = (long)2; + requestObj.backendTime= (long)2; + requestObj.responseCacheHit = false; + requestObj.responseSize = (long)2; + requestObj.protocol = "Https"; + requestObj.responseCode = responseCode[index % 3]; + requestObj.destination = "www.loc.com"; + requestObj.securityLatency = (long)2; + requestObj.throttlingLatency = (long)2; + requestObj.requestMedLat = (long)2; + requestObj.responseMedLat = (long)2; + requestObj.backendLatency = (long)2; + requestObj.otherLatency = (long)2; + requestObj.gatewayType = "SYNAPSE"; + requestObj.label = "SYNAPSE"; + + return (new Object[]{ + requestObj.applicationConsumerKey, + requestObj.applicationName, + requestObj.applicationId, + requestObj.applicationOwner, + requestObj.apiContext, + requestObj.apiName, + requestObj.apiVersion, + requestObj.apiResourcePath, + requestObj.apiResourceTemplate, + requestObj.apiMethod, + requestObj.apiCreator, + requestObj.apiCreatorTenantDomain, + requestObj.apiTier, + requestObj.apiHostname, + requestObj.username, + requestObj.userTenantDomain, + requestObj.userIp, + requestObj.userAgent, + requestObj.requestTimestamp, + requestObj.throttledOut, + requestObj.responseTime, + requestObj.serviceTime, + requestObj.backendTime, + requestObj.responseCacheHit , + requestObj.responseSize , + requestObj.protocol , + requestObj.responseCode , + requestObj.destination , + requestObj.securityLatency , + requestObj.throttlingLatency , + requestObj.requestMedLat , + requestObj.responseMedLat , + requestObj.backendLatency , + requestObj.otherLatency , + requestObj.gatewayType , + requestObj.label + }); + } +} diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java b/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java new file mode 100644 index 000000000..ffe3dcd69 --- /dev/null +++ b/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.wso2.carbon.sample.apimevent; + +import java.io.File; + +/** + * Datapublisher Util Implementataion. + */ +public class DataPublisherUtil { + + public static void setTrustStoreParams() { + File filePath = new File("src" + File.separator + "main" + File.separator + "resources"); + if (!filePath.exists()) { + filePath = new File("modules" + File.separator + "samples" + File.separator + + "sample-clients" + File.separator + "apimevent-client" + File.separator + "src" + + File.separator + "main" + File.separator + "resources"); + } + if (!filePath.exists()) { + filePath = new File("resources"); + } + if (!filePath.exists()) { + filePath = new File("test" + File.separator + "resources"); + } + String trustStore = filePath.getAbsolutePath(); + System.setProperty("javax.net.ssl.trustStore", trustStore + File.separator + "client-truststore.jks"); + System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon"); + + } + + public static void setKeyStoreParams() { + File filePath = new File("src" + File.separator + "main" + File.separator + "resources"); + if (!filePath.exists()) { + filePath = new File("modules" + File.separator + "samples" + File.separator + + "sample-clients" + File.separator + "apimevent-client" + File.separator + "src" + + File.separator + "main" + File.separator + "resources"); + } + if (!filePath.exists()) { + filePath = new File("resources"); + } + if (!filePath.exists()) { + filePath = new File("test" + File.separator + "resources"); + } + String keyStore = filePath.getAbsolutePath(); + System.setProperty("Security.KeyStore.Location", keyStore + File.separator + "wso2carbon.jks"); + System.setProperty("Security.KeyStore.Password", "wso2carbon"); + } + + public static String getDataAgentConfigPath(String fileName) { + File filePath = new File("src" + File.separator + "main" + File.separator + "resources"); + if (!filePath.exists()) { + filePath = new File("modules" + File.separator + "samples" + File.separator + + "sample-clients" + File.separator + "apimevent-client" + File.separator + "src" + + File.separator + "main" + File.separator + "resources"); + } + if (!filePath.exists()) { + filePath = new File("resources"); + } + if (!filePath.exists()) { + filePath = new File("test" + File.separator + "resources"); + } + return filePath.getAbsolutePath() + File.separator + fileName; + } + +} diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java b/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java new file mode 100644 index 000000000..ae49f443f --- /dev/null +++ b/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java @@ -0,0 +1,24 @@ +package org.wso2.carbon.sample.apimevent; + +import java.sql.Timestamp; + +public class FaultDTO { + + String applicationConsumerKey; + String apiName; + String apiVersion; + String apiContext; + String apiResourcePath; + String apiMethod; + String apiCreator; + String username; + String userTenantDomain; + String apiCreatorTenantDomain; + String hostname; + String applicationId; + String applicationName; + String protocol; + String errorCode; + String errorMessage; + Long requestTimestamp; +} diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java b/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java new file mode 100644 index 000000000..a69bc8ec5 --- /dev/null +++ b/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java @@ -0,0 +1,41 @@ +package org.wso2.carbon.sample.apimevent; + +public class RequestDTO { + + String applicationConsumerKey; + String applicationName; + String applicationId; + String applicationOwner; + String apiContext; + String apiName; + String apiVersion; + String apiResourcePath; + String apiResourceTemplate; + String apiMethod; + String apiCreator; + String apiCreatorTenantDomain; + String apiTier; + String apiHostname; + String username; + String userTenantDomain; + String userIp; + String userAgent; + Long requestTimestamp; + Boolean throttledOut; + Long responseTime; + Long serviceTime; + Long backendTime; + Boolean responseCacheHit; + Long responseSize; + String protocol; + int responseCode; + String destination; + Long securityLatency; + Long throttlingLatency; + Long requestMedLat; + Long responseMedLat; + Long backendLatency; + Long otherLatency; + String gatewayType; + String label; +} diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java b/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java new file mode 100644 index 000000000..4595b0eb8 --- /dev/null +++ b/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.wso2.carbon.sample.apimevent; + +/* + * DTO for Throttled Out stream +*/ +public class ThrottledOutDTO { + + //public String meta_clientType; + public String username; + public String userTenantDomain; + public String apiName; + public String apiVersion; + public String apiContext; + public String apiCreator; + public String apiCreatorTenantDomain; + public String applicationId; + public String applicationName; + public String subscriber; + public String throttledOutReason; + public String gatewayType; + public Long throttledOutTimestamp; + public String hostname; +} diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/Throttled_Out_Summry.csv b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/Throttled_Out_Summry.csv new file mode 100644 index 000000000..e69de29bb diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/client-truststore.jks b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/client-truststore.jks new file mode 100644 index 0000000000000000000000000000000000000000..f6bc282d08fe477cccd2f0272ac824d2fc03d1ca GIT binary patch literal 1512 zcmezO_TO6u1_mZLW-BkwH_9w#U|>w}TJdc?18anysevU>g{46glc_-ykM91b2PXGcRZ0}+r6I}fjK zeraAwVrHH~SY~RuA+G^9NSup@B|O;Q$WX{Y0K{eH;mpZTPRz;3FD@~V6X!KFFfcN- zG%z6210y&gU;r95ovD zTIp>#bI!PJ4SUAYZF?tZ^*ryMHdXAs>4#H(x|6g&Y*zO-T{>m<`wYH72KLMxhuOdT zS$j9cU6Pgyyj&?aM}JQJ;pk&A1=&xY7g<^D+TF5Y{nd$YcRW}ziKF-r%jWcMgG-j5k?}tZ3o{eT2V^G$ql6jg*62C> z?%TDmY>-|3NZY+n$tlF`Nz0+sGTWA3{!>inZ*4qaCf}d<<=N5Qee*SWr8RtBL>$%K zx^3sg3%3AIBd|nBwE6DqBQZy z)-cZ#N0w|ovuQ)P{x0DQ+DBym_+MLny4^zyoVK_?=_)y~C@DV=l(t-o>OR5K7PGHG z6SF5UeHlX2mdnE_!pI)s#+|l=k<*qij_JfCYGUMP0Ol_)rY1&4hPl6QD&OsODbd`y^h@Y1uGP0cUFKSoURk{3bgcaD1NNVLxAE~_>fCou?9;w2Mzgaf+w8xvVA7?a z6VfJ!6g#6+ z*P6+)eD;C47lJi;vuxD3B zvg8d7-{lIdO5ZK|(6RVXzuI)^H!t=Ey`47U=xYD#%tu!2`7e^N-|c_>lmy9DE?V_s z@=9M$?7TjC;ermmd|HeSb#=aP5Kopboh6G85s+$A4oAqOHbl>h^gkzt17-2dU3K7C)Kxw~(%ij#B$bCNg$Zdqq_NSM98{?5MaYt_IS^%21AT$5~ literal 0 HcmV?d00001 diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/data.agent.config.yaml b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/data.agent.config.yaml new file mode 100644 index 000000000..fb1e5b1cd --- /dev/null +++ b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/data.agent.config.yaml @@ -0,0 +1,131 @@ +################################################################################ +# Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + + # Configuration of the Data Agents - to publish events through databridge +data.agent.config: + # Data agent configurations + # THIS IS A MANDATORY FIELD + agents: + - + # Data agent configuration + agentConfiguration: + # Data agent name + # THIS IS A MANDATORY FIELD + name: Thrift + # Data endpoint class + # THIS IS A MANDATORY FIELD + dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint + # Data publisher strategy + publishingStrategy: async + # Trust store path + trustStorePath: '' + # Trust store password + trustStorePassword: '' + # Queue Size + queueSize: 32768 + # Batch Size + batchSize: 200 + # Core pool size + corePoolSize: 5 + # Socket timeout in milliseconds + socketTimeoutMS: 30000 + # Maximum pool size + maxPoolSize: 10 + # Keep alive time in pool + keepAliveTimeInPool: 20 + # Reconnection interval + reconnectionInterval: 30 + # Max transport pool size + maxTransportPoolSize: 250 + # Max idle connections + maxIdleConnections: 250 + # Eviction time interval + evictionTimePeriod: 5500 + # Min idle time in pool + minIdleTimeInPool: 5000 + # Secure max transport pool size + secureMaxTransportPoolSize: 250 + # Secure max idle connections + secureMaxIdleConnections: 250 + # secure eviction time period + secureEvictionTimePeriod: 5500 + # Secure min idle time in pool + secureMinIdleTimeInPool: 5000 + # SSL enabled protocols + sslEnabledProtocols: TLSv1,TLSv1.1,TLSv1.2 + # Ciphers + ciphers: SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA + - + # Data agent configuration + agentConfiguration: + # Data agent name + # THIS IS A MANDATORY FIELD + name: Binary + # Data endpoint class + # THIS IS A MANDATORY FIELD + dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint + # Data publisher strategy + publishingStrategy: async + # Trust store path + trustStorePath: '' + # Trust store password + trustStorePassword: '' + # Queue Size + queueSize: 32768 + # Batch Size + batchSize: 200 + # Core pool size + corePoolSize: 5 + # Socket timeout in milliseconds + socketTimeoutMS: 30000 + # Maximum pool size + maxPoolSize: 10 + # Keep alive time in pool + keepAliveTimeInPool: 20 + # Reconnection interval + reconnectionInterval: 30 + # Max transport pool size + maxTransportPoolSize: 250 + # Max idle connections + maxIdleConnections: 250 + # Eviction time interval + evictionTimePeriod: 5500 + # Min idle time in pool + minIdleTimeInPool: 5000 + # Secure max transport pool size + secureMaxTransportPoolSize: 250 + # Secure max idle connections + secureMaxIdleConnections: 250 + # secure eviction time period + secureEvictionTimePeriod: 5500 + # Secure min idle time in pool + secureMinIdleTimeInPool: 5000 + # SSL enabled protocols + sslEnabledProtocols: TLSv1,TLSv1.1,TLSv1.2 + # Ciphers + ciphers: SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA + +wso2.securevault: + secretRepository: + type: org.wso2.carbon.secvault.repository.DefaultSecretRepository + parameters: + privateKeyAlias: wso2carbon + keystoreLocation: src/main/resources/securevault.jks + secretPropertiesFile: src/main/resources/secrets.properties + masterKeyReader: + type: org.wso2.carbon.secvault.reader.DefaultMasterKeyReader + parameters: + masterKeyReaderFile: src/main/resources/master-keys.yaml \ No newline at end of file diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/log4j.properties b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/log4j.properties new file mode 100644 index 000000000..9ce1fc06f --- /dev/null +++ b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/log4j.properties @@ -0,0 +1,34 @@ +# +# Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + +# For the general syntax of property based configuration files see the +# documenation of org.apache.log4j.PropertyConfigurator. + +# The root category uses the appender called A1. Since no priority is +# specified, the root category assumes the default priority for root +# which is DEBUG in log4j. The root category is the only category that +# has a default priority. All other categories need not be assigned a +# priority in which case they inherit their priority from the +# hierarchy. + +#log4j.rootLogger=debug, console +log4j.rootLogger=info, console + +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +#log4j.appender.console.layout.ConversionPattern=[%t] %-5p %c %x - %m%n +log4j.appender.console.layout.ConversionPattern=[%t] %-5p %c %x - %m%n diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/master-keys.yaml b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/master-keys.yaml new file mode 100644 index 000000000..020c113ec --- /dev/null +++ b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/master-keys.yaml @@ -0,0 +1,6 @@ +permanent: true +# mastterKeys should be given in the base64 format and the data type of the +# password should be explicitly specified as binary (type !!binary). +masterKeys: + keyStorePassword: !!binary d3NvMmNhcmJvbg== + privateKeyPassword: !!binary d3NvMmNhcmJvbg== \ No newline at end of file diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/secrets.properties b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/secrets.properties new file mode 100644 index 000000000..5763d6409 --- /dev/null +++ b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/secrets.properties @@ -0,0 +1,2 @@ +wso2.sample.password1=plainText ABC@123 +wso2.sample.password2=cipherText o4NUR97O+zBXuqkVy+hjnOeCPta+QNnqRTsqf1TPT1DagtmI+ho6rfD9AMC5Ud0xstks7KOq/hKVUnc3LTa25To8zAzWUSCeccbR5A16OGQ7DXFvEZgDhsC1fBCmKncPVLFE8oHcr6K76dWCJZhQa+SStCLY+YCDNuJC4aTKhCfbU3y817mn+ozXTBG3Sac4PO/0cBDctGkd9K6BOWm4tPHpzvEmz4OpQEoEaXpoJXaiBZXTN1/LOiwN5croVBIwp9fju4haN54ekMP8/adAsKVpomSfOVLEKMPQdDj+G0sDmKZKw+uGXzCJ2I4gxF2nzCIAvH9VrNfZZBZ9ZuaGQg\=\= diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/securevault.jks b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/securevault.jks new file mode 100644 index 0000000000000000000000000000000000000000..11686670c43a58e1850e7461f1da67cb524df384 GIT binary patch literal 33498 zcmd?S1y~jP+CEHocX#JnbeDu6NT*15cPkx=q=0ltN=Qk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G)VZ3e8;NGlGZ!^;Mb z7z0-we-(dg=Y>>$gKKuTctt$(CQeotF?@gIyRPexH^=uca^zLsGU=xzL;7CE^=BUx z{)sxDa^%6Z85b5iJYwv6ug?B4m9fi3mo2q4=s=r*f?|A5Hh<1KPMP(e7D<>KDP2-5 z^Rf5N`?Wtemu;D}|ISnaxqYWkSVy%aNQO;W8QSxaW%BDxVJkbgc@al`?lIjnW1Tnv D@d|h? literal 0 HcmV?d00001 diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/sync.data.agent.config.yaml b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/sync.data.agent.config.yaml new file mode 100644 index 000000000..d906580bf --- /dev/null +++ b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/sync.data.agent.config.yaml @@ -0,0 +1,131 @@ +################################################################################ +# Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + + # Configuration of the Data Agents - to publish events through databridge +data.agent.config: + # Data agent configurations + # THIS IS A MANDATORY FIELD + agents: + - + # Data agent configuration + agentConfiguration: + # Data agent name + # THIS IS A MANDATORY FIELD + name: Thrift + # Data endpoint class + # THIS IS A MANDATORY FIELD + dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint + # Data publisher strategy + publishingStrategy: sync + # Trust store path + trustStorePath: '' + # Trust store password + trustStorePassword: '' + # Queue Size + queueSize: 32768 + # Batch Size + batchSize: 200 + # Core pool size + corePoolSize: 5 + # Socket timeout in milliseconds + socketTimeoutMS: 30000 + # Maximum pool size + maxPoolSize: 10 + # Keep alive time in pool + keepAliveTimeInPool: 20 + # Reconnection interval + reconnectionInterval: 30 + # Max transport pool size + maxTransportPoolSize: 250 + # Max idle connections + maxIdleConnections: 250 + # Eviction time interval + evictionTimePeriod: 5500 + # Min idle time in pool + minIdleTimeInPool: 5000 + # Secure max transport pool size + secureMaxTransportPoolSize: 250 + # Secure max idle connections + secureMaxIdleConnections: 250 + # secure eviction time period + secureEvictionTimePeriod: 5500 + # Secure min idle time in pool + secureMinIdleTimeInPool: 5000 + # SSL enabled protocols + sslEnabledProtocols: '' + # Ciphers + ciphers: '' + - + # Data agent configuration + agentConfiguration: + # Data agent name + # THIS IS A MANDATORY FIELD + name: Binary + # Data endpoint class + # THIS IS A MANDATORY FIELD + dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint + # Data publisher strategy + publishingStrategy: sync + # Trust store path + trustStorePath: '' + # Trust store password + trustStorePassword: '' + # Queue Size + queueSize: 32768 + # Batch Size + batchSize: 200 + # Core pool size + corePoolSize: 5 + # Socket timeout in milliseconds + socketTimeoutMS: 30000 + # Maximum pool size + maxPoolSize: 10 + # Keep alive time in pool + keepAliveTimeInPool: 20 + # Reconnection interval + reconnectionInterval: 30 + # Max transport pool size + maxTransportPoolSize: 250 + # Max idle connections + maxIdleConnections: 250 + # Eviction time interval + evictionTimePeriod: 5500 + # Min idle time in pool + minIdleTimeInPool: 5000 + # Secure max transport pool size + secureMaxTransportPoolSize: 250 + # Secure max idle connections + secureMaxIdleConnections: 250 + # secure eviction time period + secureEvictionTimePeriod: 5500 + # Secure min idle time in pool + secureMinIdleTimeInPool: 5000 + # SSL enabled protocols + sslEnabledProtocols: '' + # Ciphers + ciphers: '' + +wso2.securevault: + secretRepository: + type: org.wso2.carbon.secvault.repository.DefaultSecretRepository + parameters: + privateKeyAlias: wso2carbon + keystoreLocation: src/main/resources/securevault.jks + secretPropertiesFile: src/main/resources/secrets.properties + masterKeyReader: + type: org.wso2.carbon.secvault.reader.DefaultMasterKeyReader + parameters: + masterKeyReaderFile: src/main/resources/master-keys.yaml \ No newline at end of file diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/wso2carbon.jks b/modules/samples/sample-clients/apim-analytics-client/src/main/resources/wso2carbon.jks new file mode 100644 index 0000000000000000000000000000000000000000..1a91cb9c2978cc2e30ca56c8aa4580f0e24330c8 GIT binary patch literal 2201 zcmcJP*H@E^62Stl2YbAFLm&gFqngQ2~D!S4aR+nc(8@ zO7uOFoDKclIzb>-08N7Iqq*6*P;3AMPyq7*04oSWf~=0;B!b#Cn48j0hUy+mb%oJ* z({Rc8wodPSkC1k+fmX++&oy5*yx=4qcJ(s4;AvEc>g5CxQKemcu}e2sz2%JVpY1LlK&VGPGSyWiU#;;rw-W<|Y0i^#1I1Y^b0% zPm7so%bHUel8tFcDUkH&V2Fs;`S*XI>jlajt`dB^q`Kl+1wDh6WL!)a^{AE4txpEX zfJLtRjNVeC$lfHBfoNO-%9+Z5z4^0*YQ)T?SUcIEp=1fg+2y3kvIibjE~pB4p2n3F z_a5G9`!esCKJ)I<8xJ`$$Q;Su)wwyBPE8s*)@K7$J9&m5ZEa76O+81Xvp-iWz(Y#s z(tI4Rlz11iz zenD2v@NKPd(1-cPJ2#625V1ryO4^0jjdNB?O9QX?M?7P`;YwH}RN7=ax+W?UHu-H= za7d*`Bb=Cp-{(Jv7M?hqD0Ka-qOQugdzviGaV%rV8ZLvl(@YI+Bc*E2|Dxq7-+q*5 zUAY8u70Odt#JxpqhldlMM;qDr@LRn*EMr4`$Ox+&NQbrQKivA>y=^n&#jAM?@r)x{ z@ennmRxXV;?IT%Ee}Va&7s#Hgw{gG?On zGS;@KiJN?I)s0zI(N}6H{H#*CTsG{|i`T80F-a8fds2D{<$cc)tvfS1k#R^XmZcWc z?D5+iedWd#`uM{tv*fI(3`b|yQ=8NHu1>{T`$fwVN}uhhWJGP^qHc6Q*|S5jxP8)EIL}Y^h97??9ck$h`=kP9>W#R&?m&+|q9Nl@oM)cdUgR zD2}i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:30:49 +0530 Subject: [PATCH 02/16] change in build.xml --- modules/samples/sample-clients/apim-analytics-client/build.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/samples/sample-clients/apim-analytics-client/build.xml b/modules/samples/sample-clients/apim-analytics-client/build.xml index d6a60a7bf..519156311 100644 --- a/modules/samples/sample-clients/apim-analytics-client/build.xml +++ b/modules/samples/sample-clients/apim-analytics-client/build.xml @@ -26,7 +26,7 @@ - + From d42ba7f4072e00278a14db8778fd3d8da9411c3c Mon Sep 17 00:00:00 2001 From: shilmy hasan Date: Thu, 20 Sep 2018 19:22:08 +0530 Subject: [PATCH 03/16] fix to apim event client --- .../build.xml | 0 .../pom.xml | 0 .../wso2/carbon/sample/apimevent/Client.java | 23 +++-------- .../sample/apimevent/DataPublisherUtil.java | 2 +- .../carbon/sample/apimevent/FaultDTO.java | 39 ++++++++++++++++++ .../carbon/sample/apimevent/RequestDTO.java | 17 ++++++++ .../sample/apimevent/ThrottledOutDTO.java | 3 +- .../main/resources/Throttled_Out_Summry.csv | 0 .../src/main/resources/client-truststore.jks | Bin .../src/main/resources/data.agent.config.yaml | 0 .../src/main/resources/log4j.properties | 0 .../src/main/resources/master-keys.yaml | 0 .../src/main/resources/secrets.properties | 0 .../src/main/resources/securevault.jks | Bin .../resources/sync.data.agent.config.yaml | 0 .../src/main/resources/wso2carbon.jks | Bin 16 files changed, 63 insertions(+), 21 deletions(-) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/build.xml (100%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/pom.xml (100%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/java/org/wso2/carbon/sample/apimevent/Client.java (96%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java (98%) create mode 100644 modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java (58%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java (92%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/resources/Throttled_Out_Summry.csv (100%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/resources/client-truststore.jks (100%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/resources/data.agent.config.yaml (100%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/resources/log4j.properties (100%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/resources/master-keys.yaml (100%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/resources/secrets.properties (100%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/resources/securevault.jks (100%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/resources/sync.data.agent.config.yaml (100%) rename modules/samples/sample-clients/{apim-analytics-client => apimevent-client}/src/main/resources/wso2carbon.jks (100%) diff --git a/modules/samples/sample-clients/apim-analytics-client/build.xml b/modules/samples/sample-clients/apimevent-client/build.xml similarity index 100% rename from modules/samples/sample-clients/apim-analytics-client/build.xml rename to modules/samples/sample-clients/apimevent-client/build.xml diff --git a/modules/samples/sample-clients/apim-analytics-client/pom.xml b/modules/samples/sample-clients/apimevent-client/pom.xml similarity index 100% rename from modules/samples/sample-clients/apim-analytics-client/pom.xml rename to modules/samples/sample-clients/apimevent-client/pom.xml diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java similarity index 96% rename from modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java rename to modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java index e03e6edd9..56fd080e4 100644 --- a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java +++ b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -68,48 +68,37 @@ public static void main(String[] args) { String numberOfEventsStr = args[5]; int numberOfEvents = Integer.parseInt(numberOfEventsStr); - try { log.info("Starting WSO2 Event Client"); - AgentHolder.setConfigPath(DataPublisherUtil.getDataAgentConfigPath(agentConfigFileName)); DataPublisher dataPublisher = new DataPublisher(protocol, "tcp://" + host + ":" + port, "ssl://" + host + ":" + sslPort, username, password); Event event = new Event(); event.setStreamId(DataBridgeCommonsUtils.generateStreamId(STREAM_NAME, VERSION)); event.setCorrelationData(null); - Event faultEvent = new Event(); faultEvent.setStreamId(DataBridgeCommonsUtils.generateStreamId(FAULT_STREAM, VERSION)); faultEvent.setCorrelationData(null); - Event requestEvent = new Event(); requestEvent.setStreamId(DataBridgeCommonsUtils.generateStreamId(REQUEST_STREAM, VERSION)); event.setCorrelationData(null); - String meta_ClientType="mozilla"; + String metaClientType="mozilla"; for (int i = 0; i < numberOfEvents; i++) { - /*int metaClientType = ThreadLocalRandom.current().nextInt(metaTenantIdMinBound, metaTenantIdMaxBound); - */ - event.setMetaData(new Object[]{meta_ClientType}); - faultEvent.setMetaData(new Object[]{meta_ClientType}); - requestEvent.setMetaData(new Object[]{meta_ClientType}); - + event.setMetaData(new Object[]{metaClientType}); + faultEvent.setMetaData(new Object[]{metaClientType}); + requestEvent.setMetaData(new Object[]{metaClientType}); Object[] data = getObject(); Object[] faultData = getFaultStream(); Object[] requestData = getRequestStream(); - event.setPayloadData(data); faultEvent.setPayloadData(faultData); requestEvent.setPayloadData(requestData); - dataPublisher.publish(event); dataPublisher.publish(faultEvent); dataPublisher.publish(requestEvent); - } - try { Thread.sleep(5000); } catch (InterruptedException e) { @@ -126,7 +115,6 @@ public static void main(String[] args) { private static Object[] getObject() { ThrottledOutDTO throttledObj = new ThrottledOutDTO(); - String[] username = {"admin", "smith", "finch", "starc", "maxwell", "haddin", "warner", "faulkner", "marsh"}; String[] userTenantDomain = {"carbon.super", "loc.super"}; String[] apiCreator = {"admin", "rohan", "Jeevan"}; @@ -137,7 +125,6 @@ private static Object[] getObject() { int index = ThreadLocalRandom.current().nextInt(0, 9); - //throttledObj.meta_clientType = "mozilla"; throttledObj.username = username[index % 9]; throttledObj.userTenantDomain = "carbon.super"; throttledObj.apiName = apiName[index % 9]; diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java similarity index 98% rename from modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java rename to modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java index ffe3dcd69..17b1b5874 100644 --- a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java +++ b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except diff --git a/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java new file mode 100644 index 000000000..506beb9cf --- /dev/null +++ b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.wso2.carbon.sample.apimevent; + +public class FaultDTO { + + String applicationConsumerKey; + String apiName; + String apiVersion; + String apiContext; + String apiResourcePath; + String apiMethod; + String apiCreator; + String username; + String userTenantDomain; + String apiCreatorTenantDomain; + String hostname; + String applicationId; + String applicationName; + String protocol; + String errorCode; + String errorMessage; + Long requestTimestamp; +} diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java similarity index 58% rename from modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java rename to modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java index a69bc8ec5..be6aa9a6b 100644 --- a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java +++ b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package org.wso2.carbon.sample.apimevent; public class RequestDTO { diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java similarity index 92% rename from modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java rename to modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java index 4595b0eb8..68258a8b4 100644 --- a/modules/samples/sample-clients/apim-analytics-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java +++ b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -23,7 +23,6 @@ */ public class ThrottledOutDTO { - //public String meta_clientType; public String username; public String userTenantDomain; public String apiName; diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/Throttled_Out_Summry.csv b/modules/samples/sample-clients/apimevent-client/src/main/resources/Throttled_Out_Summry.csv similarity index 100% rename from modules/samples/sample-clients/apim-analytics-client/src/main/resources/Throttled_Out_Summry.csv rename to modules/samples/sample-clients/apimevent-client/src/main/resources/Throttled_Out_Summry.csv diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/client-truststore.jks b/modules/samples/sample-clients/apimevent-client/src/main/resources/client-truststore.jks similarity index 100% rename from modules/samples/sample-clients/apim-analytics-client/src/main/resources/client-truststore.jks rename to modules/samples/sample-clients/apimevent-client/src/main/resources/client-truststore.jks diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/data.agent.config.yaml b/modules/samples/sample-clients/apimevent-client/src/main/resources/data.agent.config.yaml similarity index 100% rename from modules/samples/sample-clients/apim-analytics-client/src/main/resources/data.agent.config.yaml rename to modules/samples/sample-clients/apimevent-client/src/main/resources/data.agent.config.yaml diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/log4j.properties b/modules/samples/sample-clients/apimevent-client/src/main/resources/log4j.properties similarity index 100% rename from modules/samples/sample-clients/apim-analytics-client/src/main/resources/log4j.properties rename to modules/samples/sample-clients/apimevent-client/src/main/resources/log4j.properties diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/master-keys.yaml b/modules/samples/sample-clients/apimevent-client/src/main/resources/master-keys.yaml similarity index 100% rename from modules/samples/sample-clients/apim-analytics-client/src/main/resources/master-keys.yaml rename to modules/samples/sample-clients/apimevent-client/src/main/resources/master-keys.yaml diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/secrets.properties b/modules/samples/sample-clients/apimevent-client/src/main/resources/secrets.properties similarity index 100% rename from modules/samples/sample-clients/apim-analytics-client/src/main/resources/secrets.properties rename to modules/samples/sample-clients/apimevent-client/src/main/resources/secrets.properties diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/securevault.jks b/modules/samples/sample-clients/apimevent-client/src/main/resources/securevault.jks similarity index 100% rename from modules/samples/sample-clients/apim-analytics-client/src/main/resources/securevault.jks rename to modules/samples/sample-clients/apimevent-client/src/main/resources/securevault.jks diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/sync.data.agent.config.yaml b/modules/samples/sample-clients/apimevent-client/src/main/resources/sync.data.agent.config.yaml similarity index 100% rename from modules/samples/sample-clients/apim-analytics-client/src/main/resources/sync.data.agent.config.yaml rename to modules/samples/sample-clients/apimevent-client/src/main/resources/sync.data.agent.config.yaml diff --git a/modules/samples/sample-clients/apim-analytics-client/src/main/resources/wso2carbon.jks b/modules/samples/sample-clients/apimevent-client/src/main/resources/wso2carbon.jks similarity index 100% rename from modules/samples/sample-clients/apim-analytics-client/src/main/resources/wso2carbon.jks rename to modules/samples/sample-clients/apimevent-client/src/main/resources/wso2carbon.jks From d615b3420d7063982576ef6be60657c90ac93d1e Mon Sep 17 00:00:00 2001 From: shilmyhasan Date: Sat, 13 Oct 2018 13:42:40 +0530 Subject: [PATCH 04/16] fix to license --- modules/samples/sample-clients/apimevent-client/build.xml | 2 +- modules/samples/sample-clients/apimevent-client/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/samples/sample-clients/apimevent-client/build.xml b/modules/samples/sample-clients/apimevent-client/build.xml index 519156311..9c6e8af00 100644 --- a/modules/samples/sample-clients/apimevent-client/build.xml +++ b/modules/samples/sample-clients/apimevent-client/build.xml @@ -1,5 +1,5 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Configure -Dprotocol and -Dhost and -Dport and -Dusername and -Dpassword. + + + + + + + + + + diff --git a/modules/samples/sample-clients/apim-event-client/pom.xml b/modules/samples/sample-clients/apim-event-client/pom.xml new file mode 100644 index 000000000..f9ba79c46 --- /dev/null +++ b/modules/samples/sample-clients/apim-event-client/pom.xml @@ -0,0 +1,65 @@ + + + + + + + org.wso2.sp + sample-clients + 4.4.0-m4-SNAPSHOT + ../pom.xml + + + 4.0.0 + WSO2 Stream Processor - Sample - apim-event-client + apim-event-client + pom + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + + + + + + + + org.wso2.carbon.analytics-common + org.wso2.carbon.databridge.commons + + + org.wso2.carbon.analytics-common + org.wso2.carbon.databridge.commons.thrift + + + org.wso2.carbon.analytics-common + org.wso2.carbon.databridge.commons.binary + + + org.wso2.carbon.analytics-common + org.wso2.carbon.databridge.agent + + + + + \ No newline at end of file diff --git a/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java b/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java new file mode 100644 index 000000000..00d7e19f8 --- /dev/null +++ b/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java @@ -0,0 +1,288 @@ +/* + * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.wso2.carbon.sample.apimevent; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.wso2.carbon.databridge.agent.AgentHolder; +import org.wso2.carbon.databridge.agent.DataPublisher; +import org.wso2.carbon.databridge.commons.Event; +import org.wso2.carbon.databridge.commons.utils.DataBridgeCommonsUtils; + +import java.sql.Timestamp; +import java.util.Arrays; +import java.util.concurrent.ThreadLocalRandom; + +/** + * WSO2Event Client Publisher. + */ +public class Client { + private static Log log = LogFactory.getLog(Client.class); + private static final String STREAM_NAME = "org.wso2.apimgt.statistics.throttle"; + private static final String FAULT_STREAM = "org.wso2.apimgt.statistics.fault"; + private static final String REQUEST_STREAM = "org.wso2.apimgt.statistics.request"; + private static final String VERSION = "3.0.0"; + private static String agentConfigFileName = "sync.data.agent.config.yaml"; + + private static String[] username = {"admin", "smith", "finch", "starc", "maxwell", "haddin", "warner", + "faulkner", "marsh"}; + private static String[] tenantDomain = {"carbon.super", "loc.super", "range.com"}; + private static String[] apiName = {"ceylan", "NDB", "Commercial", "BOC", "Peoples", "LG", "Abans", "Singer", + "Damro"}; + private static String[] apiCreator = {"admin", "rohan", "Jeevan"}; + private static String[] apiMethod = {"GET", "POST", "PUT"}; + private static String[] applicationId = {"1", "2", "3"}; + private static String[] applicationName = {"default", "app1", "app2"}; + private static String[] applicationCK = {"default", "app1", "app2"}; + private static String[] applicationOwner = {"Michael", "clarke", "cook"}; + private static String[] userIp = {"10.100.8.14", "10.100.8.26", "10.100.3.64"}; + + public static void main(String[] args) { + + DataPublisherUtil.setKeyStoreParams(); + DataPublisherUtil.setTrustStoreParams(); + + log.info("These are the provided configurations: " + Arrays.deepToString(args)); + + String protocol = args[0]; + String host = args[1]; + String port = args[2]; + int sslPort = Integer.parseInt(port) + 100; + String username = args[3]; + String password = args[4]; + String numberOfEventsStr = args[5]; + int numberOfEvents = Integer.parseInt(numberOfEventsStr); + + try { + log.info("Starting WSO2 Event Client"); + AgentHolder.setConfigPath(DataPublisherUtil.getDataAgentConfigPath(agentConfigFileName)); + DataPublisher dataPublisher = new DataPublisher(protocol, "tcp://" + host + ":" + port, + "ssl://" + host + ":" + sslPort, username, password); + Event event = new Event(); + event.setStreamId(DataBridgeCommonsUtils.generateStreamId(STREAM_NAME, VERSION)); + event.setCorrelationData(null); + Event faultEvent = new Event(); + faultEvent.setStreamId(DataBridgeCommonsUtils.generateStreamId(FAULT_STREAM, VERSION)); + faultEvent.setCorrelationData(null); + Event requestEvent = new Event(); + requestEvent.setStreamId(DataBridgeCommonsUtils.generateStreamId(REQUEST_STREAM, VERSION)); + event.setCorrelationData(null); + + String metaClientType = "mozilla"; + + for (int i = 0; i < numberOfEvents; i++) { + event.setMetaData(new Object[]{metaClientType}); + faultEvent.setMetaData(new Object[]{metaClientType}); + requestEvent.setMetaData(new Object[]{metaClientType}); + Object[] data = getObject(); + Object[] faultData = getFaultStream(); + Object[] requestData = getRequestStream(); + event.setPayloadData(data); + faultEvent.setPayloadData(faultData); + requestEvent.setPayloadData(requestData); + dataPublisher.publish(event); + dataPublisher.publish(faultEvent); + dataPublisher.publish(requestEvent); + } + try { + Thread.sleep(5000); + } catch (InterruptedException e) { + log.error(e); + } + dataPublisher.shutdown(); + log.info("Events published successfully"); + + } catch (Throwable e) { + log.error(e); + } + } + + private static Object[] getObject() { + + ThrottledOutDTO throttledObj = new ThrottledOutDTO(); + String[] username = {"admin", "smith", "finch", "starc", "maxwell", "haddin", "warner", "faulkner", "marsh"}; + String[] userTenantDomain = {"carbon.super", "loc.super"}; + String[] apiCreator = {"admin", "rohan", "Jeevan"}; + String[] applicationId = {"1", "2", "3"}; + String[] applicationName = {"default", "app1", "app2"}; + String[] subscriber = {"Michael", "clarke", "cook"}; + String[] throttledOutReason = {"SUBSCRIPTION_LIMIT_EXCEEDED", "APPLICATION_LIMIT_EXCEEDED"}; + + int index = ThreadLocalRandom.current().nextInt(0, 9); + + throttledObj.username = username[index % 9]; + throttledObj.userTenantDomain = "carbon.super"; + throttledObj.apiName = apiName[index % 9]; + throttledObj.apiVersion = "1.0"; + throttledObj.apiContext = throttledObj.apiName + "/" + throttledObj.apiVersion; + throttledObj.apiCreator = apiCreator[index % 3]; + throttledObj.apiCreatorTenantDomain = "carbon.super"; + throttledObj.applicationId = applicationId[index % 3]; + throttledObj.applicationName = applicationName[index % 3]; + throttledObj.subscriber = subscriber[index % 2]; + throttledObj.throttledOutReason = throttledOutReason[index % 2]; + throttledObj.gatewayType = "g1"; + throttledObj.throttledOutTimestamp = new Timestamp(System.currentTimeMillis()).getTime(); + throttledObj.hostname = "localhost"; + + return (new Object[]{ + throttledObj.username, + throttledObj.userTenantDomain, + throttledObj.apiName, + throttledObj.apiVersion, + throttledObj.apiContext, + throttledObj.apiCreator, + throttledObj.apiCreatorTenantDomain, + throttledObj.applicationId, + throttledObj.applicationName, + throttledObj.subscriber, + throttledObj.throttledOutReason, + throttledObj.gatewayType, + throttledObj.throttledOutTimestamp, + throttledObj.hostname + }); + } + + private static Object[] getFaultStream() { + int index = ThreadLocalRandom.current().nextInt(0, 9); + FaultDTO faultObj = new FaultDTO(); + faultObj.applicationConsumerKey = applicationCK[index % applicationCK.length]; + faultObj.apiName = apiName[index % 3]; + faultObj.apiVersion = "1.0"; + faultObj.apiContext = "get"; + faultObj.apiResourcePath = "/temp"; + faultObj.apiMethod = apiMethod[index % apiMethod.length]; + faultObj.apiCreator = apiCreator[index % apiCreator.length]; + faultObj.username = username[index % username.length]; + faultObj.userTenantDomain = tenantDomain[index % tenantDomain.length]; + faultObj.apiCreatorTenantDomain = tenantDomain[index % tenantDomain.length]; + faultObj.hostname = "localhost"; + faultObj.applicationId = applicationId[index % applicationName.length]; + faultObj.applicationName = applicationName[index % applicationName.length]; + faultObj.protocol = "https"; + faultObj.errorCode = "403"; + faultObj.errorMessage = "notfound"; + faultObj.requestTimestamp = new Timestamp(System.currentTimeMillis()).getTime(); + + return (new Object[]{ + faultObj.applicationConsumerKey, + faultObj.apiName, + faultObj.apiVersion, + faultObj.apiContext, + faultObj.apiResourcePath, + faultObj.apiMethod, + faultObj.apiCreator, + faultObj.username, + faultObj.userTenantDomain, + faultObj.apiCreatorTenantDomain, + faultObj.hostname, + faultObj.applicationId, + faultObj.applicationName, + faultObj.protocol, + faultObj.errorCode, + faultObj.errorMessage, + faultObj.requestTimestamp + }); + } + + public static Object[] getRequestStream() { + RequestDTO requestObj = new RequestDTO(); + Boolean[] throttledOut = {true, false, true, true, true, true, true, true, true}; + long[] responseTime = {1, 6, 2}; + int[] responseCode = {200, 403, 200, 200, 200, 200, 200, 200, 550}; + + int index = ThreadLocalRandom.current().nextInt(0, 9); + + requestObj.applicationConsumerKey = applicationCK[index % 3]; + requestObj.applicationName = applicationName[index % 3]; + requestObj.applicationId = applicationId[index % 3]; + requestObj.applicationOwner = applicationOwner[index % 3]; + requestObj.apiContext = apiName[index % 9] + "/" + "1.0"; + requestObj.apiName = apiName[index % 9]; + requestObj.apiVersion = "1.0"; + requestObj.apiResourcePath = requestObj.apiName + "/" + apiMethod[index % 3]; + requestObj.apiResourceTemplate = requestObj.apiName + "/" + apiMethod[index % 3]; + requestObj.apiMethod = apiMethod[index % 3]; + requestObj.apiCreator = apiCreator[index % 3]; + requestObj.apiCreatorTenantDomain = tenantDomain[index % 3]; + requestObj.apiTier = "unlimited"; + requestObj.apiHostname = "localhost"; + requestObj.username = "default"; + requestObj.userTenantDomain = requestObj.apiCreatorTenantDomain; + requestObj.userIp = userIp[index % userIp.length]; + requestObj.userAgent = "Mozilla"; + requestObj.requestTimestamp = new Timestamp(System.currentTimeMillis()).getTime(); + requestObj.throttledOut = throttledOut[index % 9]; + requestObj.responseTime = responseTime[index % 3]; + requestObj.serviceTime = (long) 2; + requestObj.backendTime = (long) 2; + requestObj.responseCacheHit = false; + requestObj.responseSize = (long) 2; + requestObj.protocol = "Https"; + requestObj.responseCode = responseCode[index % 3]; + requestObj.destination = "www.loc.com"; + requestObj.securityLatency = (long) 2; + requestObj.throttlingLatency = (long) 2; + requestObj.requestMedLat = (long) 2; + requestObj.responseMedLat = (long) 2; + requestObj.backendLatency = (long) 2; + requestObj.otherLatency = (long) 2; + requestObj.gatewayType = "SYNAPSE"; + requestObj.label = "SYNAPSE"; + + return (new Object[]{ + requestObj.applicationConsumerKey, + requestObj.applicationName, + requestObj.applicationId, + requestObj.applicationOwner, + requestObj.apiContext, + requestObj.apiName, + requestObj.apiVersion, + requestObj.apiResourcePath, + requestObj.apiResourceTemplate, + requestObj.apiMethod, + requestObj.apiCreator, + requestObj.apiCreatorTenantDomain, + requestObj.apiTier, + requestObj.apiHostname, + requestObj.username, + requestObj.userTenantDomain, + requestObj.userIp, + requestObj.userAgent, + requestObj.requestTimestamp, + requestObj.throttledOut, + requestObj.responseTime, + requestObj.serviceTime, + requestObj.backendTime, + requestObj.responseCacheHit , + requestObj.responseSize , + requestObj.protocol , + requestObj.responseCode , + requestObj.destination , + requestObj.securityLatency , + requestObj.throttlingLatency , + requestObj.requestMedLat , + requestObj.responseMedLat , + requestObj.backendLatency , + requestObj.otherLatency , + requestObj.gatewayType , + requestObj.label + }); + } +} diff --git a/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java b/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java new file mode 100644 index 000000000..17b1b5874 --- /dev/null +++ b/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.wso2.carbon.sample.apimevent; + +import java.io.File; + +/** + * Datapublisher Util Implementataion. + */ +public class DataPublisherUtil { + + public static void setTrustStoreParams() { + File filePath = new File("src" + File.separator + "main" + File.separator + "resources"); + if (!filePath.exists()) { + filePath = new File("modules" + File.separator + "samples" + File.separator + + "sample-clients" + File.separator + "apimevent-client" + File.separator + "src" + + File.separator + "main" + File.separator + "resources"); + } + if (!filePath.exists()) { + filePath = new File("resources"); + } + if (!filePath.exists()) { + filePath = new File("test" + File.separator + "resources"); + } + String trustStore = filePath.getAbsolutePath(); + System.setProperty("javax.net.ssl.trustStore", trustStore + File.separator + "client-truststore.jks"); + System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon"); + + } + + public static void setKeyStoreParams() { + File filePath = new File("src" + File.separator + "main" + File.separator + "resources"); + if (!filePath.exists()) { + filePath = new File("modules" + File.separator + "samples" + File.separator + + "sample-clients" + File.separator + "apimevent-client" + File.separator + "src" + + File.separator + "main" + File.separator + "resources"); + } + if (!filePath.exists()) { + filePath = new File("resources"); + } + if (!filePath.exists()) { + filePath = new File("test" + File.separator + "resources"); + } + String keyStore = filePath.getAbsolutePath(); + System.setProperty("Security.KeyStore.Location", keyStore + File.separator + "wso2carbon.jks"); + System.setProperty("Security.KeyStore.Password", "wso2carbon"); + } + + public static String getDataAgentConfigPath(String fileName) { + File filePath = new File("src" + File.separator + "main" + File.separator + "resources"); + if (!filePath.exists()) { + filePath = new File("modules" + File.separator + "samples" + File.separator + + "sample-clients" + File.separator + "apimevent-client" + File.separator + "src" + + File.separator + "main" + File.separator + "resources"); + } + if (!filePath.exists()) { + filePath = new File("resources"); + } + if (!filePath.exists()) { + filePath = new File("test" + File.separator + "resources"); + } + return filePath.getAbsolutePath() + File.separator + fileName; + } + +} diff --git a/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java b/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java new file mode 100644 index 000000000..0e651ff35 --- /dev/null +++ b/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.wso2.carbon.sample.apimevent; + +/** + * Fault DTO contains attributes of Fault Stream + */ +public class FaultDTO { + + String applicationConsumerKey; + String apiName; + String apiVersion; + String apiContext; + String apiResourcePath; + String apiMethod; + String apiCreator; + String username; + String userTenantDomain; + String apiCreatorTenantDomain; + String hostname; + String applicationId; + String applicationName; + String protocol; + String errorCode; + String errorMessage; + Long requestTimestamp; +} diff --git a/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java b/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java new file mode 100644 index 000000000..e089ee39b --- /dev/null +++ b/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.wso2.carbon.sample.apimevent; + +/** + * DTO For Request Stream + */ +public class RequestDTO { + + String applicationConsumerKey; + String applicationName; + String applicationId; + String applicationOwner; + String apiContext; + String apiName; + String apiVersion; + String apiResourcePath; + String apiResourceTemplate; + String apiMethod; + String apiCreator; + String apiCreatorTenantDomain; + String apiTier; + String apiHostname; + String username; + String userTenantDomain; + String userIp; + String userAgent; + Long requestTimestamp; + Boolean throttledOut; + Long responseTime; + Long serviceTime; + Long backendTime; + Boolean responseCacheHit; + Long responseSize; + String protocol; + int responseCode; + String destination; + Long securityLatency; + Long throttlingLatency; + Long requestMedLat; + Long responseMedLat; + Long backendLatency; + Long otherLatency; + String gatewayType; + String label; +} diff --git a/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java b/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java new file mode 100644 index 000000000..c7816d85c --- /dev/null +++ b/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.wso2.carbon.sample.apimevent; + +/** + * DTO for Throttled Out stream +*/ +public class ThrottledOutDTO { + + public String username; + public String userTenantDomain; + public String apiName; + public String apiVersion; + public String apiContext; + public String apiCreator; + public String apiCreatorTenantDomain; + public String applicationId; + public String applicationName; + public String subscriber; + public String throttledOutReason; + public String gatewayType; + public Long throttledOutTimestamp; + public String hostname; +} diff --git a/modules/samples/sample-clients/apim-event-client/src/main/resources/client-truststore.jks b/modules/samples/sample-clients/apim-event-client/src/main/resources/client-truststore.jks new file mode 100644 index 0000000000000000000000000000000000000000..f6bc282d08fe477cccd2f0272ac824d2fc03d1ca GIT binary patch literal 1512 zcmezO_TO6u1_mZLW-BkwH_9w#U|>w}TJdc?18anysevU>g{46glc_-ykM91b2PXGcRZ0}+r6I}fjK zeraAwVrHH~SY~RuA+G^9NSup@B|O;Q$WX{Y0K{eH;mpZTPRz;3FD@~V6X!KFFfcN- zG%z6210y&gU;r95ovD zTIp>#bI!PJ4SUAYZF?tZ^*ryMHdXAs>4#H(x|6g&Y*zO-T{>m<`wYH72KLMxhuOdT zS$j9cU6Pgyyj&?aM}JQJ;pk&A1=&xY7g<^D+TF5Y{nd$YcRW}ziKF-r%jWcMgG-j5k?}tZ3o{eT2V^G$ql6jg*62C> z?%TDmY>-|3NZY+n$tlF`Nz0+sGTWA3{!>inZ*4qaCf}d<<=N5Qee*SWr8RtBL>$%K zx^3sg3%3AIBd|nBwE6DqBQZy z)-cZ#N0w|ovuQ)P{x0DQ+DBym_+MLny4^zyoVK_?=_)y~C@DV=l(t-o>OR5K7PGHG z6SF5UeHlX2mdnE_!pI)s#+|l=k<*qij_JfCYGUMP0Ol_)rY1&4hPl6QD&OsODbd`y^h@Y1uGP0cUFKSoURk{3bgcaD1NNVLxAE~_>fCou?9;w2Mzgaf+w8xvVA7?a z6VfJ!6g#6+ z*P6+)eD;C47lJi;vuxD3B zvg8d7-{lIdO5ZK|(6RVXzuI)^H!t=Ey`47U=xYD#%tu!2`7e^N-|c_>lmy9DE?V_s z@=9M$?7TjC;ermmd|HeSb#=aP5Kopboh6G85s+$A4oAqOHbl>h^gkzt17-2dU3K7C)Kxw~(%ij#B$bCNg$Zdqq_NSM98{?5MaYt_IS^%21AT$5~ literal 0 HcmV?d00001 diff --git a/modules/samples/sample-clients/apim-event-client/src/main/resources/data.agent.config.yaml b/modules/samples/sample-clients/apim-event-client/src/main/resources/data.agent.config.yaml new file mode 100644 index 000000000..061f3d1bf --- /dev/null +++ b/modules/samples/sample-clients/apim-event-client/src/main/resources/data.agent.config.yaml @@ -0,0 +1,131 @@ +################################################################################ +# Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + + # Configuration of the Data Agents - to publish events through databridge +data.agent.config: + # Data agent configurations + # THIS IS A MANDATORY FIELD + agents: + - + # Data agent configuration + agentConfiguration: + # Data agent name + # THIS IS A MANDATORY FIELD + name: Thrift + # Data endpoint class + # THIS IS A MANDATORY FIELD + dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint + # Data publisher strategy + publishingStrategy: async + # Trust store path + trustStorePath: '' + # Trust store password + trustStorePassword: '' + # Queue Size + queueSize: 32768 + # Batch Size + batchSize: 200 + # Core pool size + corePoolSize: 5 + # Socket timeout in milliseconds + socketTimeoutMS: 30000 + # Maximum pool size + maxPoolSize: 10 + # Keep alive time in pool + keepAliveTimeInPool: 20 + # Reconnection interval + reconnectionInterval: 30 + # Max transport pool size + maxTransportPoolSize: 250 + # Max idle connections + maxIdleConnections: 250 + # Eviction time interval + evictionTimePeriod: 5500 + # Min idle time in pool + minIdleTimeInPool: 5000 + # Secure max transport pool size + secureMaxTransportPoolSize: 250 + # Secure max idle connections + secureMaxIdleConnections: 250 + # secure eviction time period + secureEvictionTimePeriod: 5500 + # Secure min idle time in pool + secureMinIdleTimeInPool: 5000 + # SSL enabled protocols + sslEnabledProtocols: TLSv1,TLSv1.1,TLSv1.2 + # Ciphers + ciphers: SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA + - + # Data agent configuration + agentConfiguration: + # Data agent name + # THIS IS A MANDATORY FIELD + name: Binary + # Data endpoint class + # THIS IS A MANDATORY FIELD + dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint + # Data publisher strategy + publishingStrategy: async + # Trust store path + trustStorePath: '' + # Trust store password + trustStorePassword: '' + # Queue Size + queueSize: 32768 + # Batch Size + batchSize: 200 + # Core pool size + corePoolSize: 5 + # Socket timeout in milliseconds + socketTimeoutMS: 30000 + # Maximum pool size + maxPoolSize: 10 + # Keep alive time in pool + keepAliveTimeInPool: 20 + # Reconnection interval + reconnectionInterval: 30 + # Max transport pool size + maxTransportPoolSize: 250 + # Max idle connections + maxIdleConnections: 250 + # Eviction time interval + evictionTimePeriod: 5500 + # Min idle time in pool + minIdleTimeInPool: 5000 + # Secure max transport pool size + secureMaxTransportPoolSize: 250 + # Secure max idle connections + secureMaxIdleConnections: 250 + # secure eviction time period + secureEvictionTimePeriod: 5500 + # Secure min idle time in pool + secureMinIdleTimeInPool: 5000 + # SSL enabled protocols + sslEnabledProtocols: TLSv1,TLSv1.1,TLSv1.2 + # Ciphers + ciphers: SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA + +wso2.securevault: + secretRepository: + type: org.wso2.carbon.secvault.repository.DefaultSecretRepository + parameters: + privateKeyAlias: wso2carbon + keystoreLocation: src/main/resources/securevault.jks + secretPropertiesFile: src/main/resources/secrets.properties + masterKeyReader: + type: org.wso2.carbon.secvault.reader.DefaultMasterKeyReader + parameters: + masterKeyReaderFile: src/main/resources/master-keys.yaml \ No newline at end of file diff --git a/modules/samples/sample-clients/apim-event-client/src/main/resources/log4j.properties b/modules/samples/sample-clients/apim-event-client/src/main/resources/log4j.properties new file mode 100644 index 000000000..a247b6884 --- /dev/null +++ b/modules/samples/sample-clients/apim-event-client/src/main/resources/log4j.properties @@ -0,0 +1,34 @@ +# +# Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + +# For the general syntax of property based configuration files see the +# documenation of org.apache.log4j.PropertyConfigurator. + +# The root category uses the appender called A1. Since no priority is +# specified, the root category assumes the default priority for root +# which is DEBUG in log4j. The root category is the only category that +# has a default priority. All other categories need not be assigned a +# priority in which case they inherit their priority from the +# hierarchy. + +#log4j.rootLogger=debug, console +log4j.rootLogger=info, console + +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +#log4j.appender.console.layout.ConversionPattern=[%t] %-5p %c %x - %m%n +log4j.appender.console.layout.ConversionPattern=[%t] %-5p %c %x - %m%n diff --git a/modules/samples/sample-clients/apim-event-client/src/main/resources/master-keys.yaml b/modules/samples/sample-clients/apim-event-client/src/main/resources/master-keys.yaml new file mode 100644 index 000000000..020c113ec --- /dev/null +++ b/modules/samples/sample-clients/apim-event-client/src/main/resources/master-keys.yaml @@ -0,0 +1,6 @@ +permanent: true +# mastterKeys should be given in the base64 format and the data type of the +# password should be explicitly specified as binary (type !!binary). +masterKeys: + keyStorePassword: !!binary d3NvMmNhcmJvbg== + privateKeyPassword: !!binary d3NvMmNhcmJvbg== \ No newline at end of file diff --git a/modules/samples/sample-clients/apim-event-client/src/main/resources/secrets.properties b/modules/samples/sample-clients/apim-event-client/src/main/resources/secrets.properties new file mode 100644 index 000000000..5763d6409 --- /dev/null +++ b/modules/samples/sample-clients/apim-event-client/src/main/resources/secrets.properties @@ -0,0 +1,2 @@ +wso2.sample.password1=plainText ABC@123 +wso2.sample.password2=cipherText o4NUR97O+zBXuqkVy+hjnOeCPta+QNnqRTsqf1TPT1DagtmI+ho6rfD9AMC5Ud0xstks7KOq/hKVUnc3LTa25To8zAzWUSCeccbR5A16OGQ7DXFvEZgDhsC1fBCmKncPVLFE8oHcr6K76dWCJZhQa+SStCLY+YCDNuJC4aTKhCfbU3y817mn+ozXTBG3Sac4PO/0cBDctGkd9K6BOWm4tPHpzvEmz4OpQEoEaXpoJXaiBZXTN1/LOiwN5croVBIwp9fju4haN54ekMP8/adAsKVpomSfOVLEKMPQdDj+G0sDmKZKw+uGXzCJ2I4gxF2nzCIAvH9VrNfZZBZ9ZuaGQg\=\= diff --git a/modules/samples/sample-clients/apim-event-client/src/main/resources/securevault.jks b/modules/samples/sample-clients/apim-event-client/src/main/resources/securevault.jks new file mode 100644 index 0000000000000000000000000000000000000000..11686670c43a58e1850e7461f1da67cb524df384 GIT binary patch literal 33498 zcmd?S1y~jP+CEHocX#JnbeDu6NT*15cPkx=q=0ltN=QkEC?X*pQUXc}h=78CB7Cz5 zMYr3t_xqmn{?9od*Tto?W>_=7ndg4ueqxR`jy9m6pkRPsx|4q~%^loa++E#F?W}?S znHobuLF;Ytz}7>->u~Ub1fihdwn0H~8^EttHY^M@3=EtAY}|VgIs!6F*yXT2bZBTe zcqmX{Hy9O!i~y?%hky&CsSd^i;XpP}a8YGWzn;Uv+zosgBn$Zz6;IsL)05-u#E?Cl zmrl-ZcuCSw-oe6=^OA}>m9>MZql*&xuX@=ds8 zOs33KU_n7astYHgQiL39ZU*KCfgy*%;<8-adwMdeOXen)E{iH~F%W5s;YnHqBz?0jm3FV#IuySUZWkIBRQ~vy3a!vfn zI7$7_ac^u6qk&W(2xe;Tf2mvn%?4LBifxbG5*7|^EOui%5(hh!$0a%-j3O#sVbhW$ zf>WEqz`Fa`G&b$c+?{2Zyk%vBy+{~n*xVrK*PtNiS0HQzWTUXl&|&*hfV{!M!ayMc zAJYKOmYfnU2$~q!zy}2`W(U5>4xG&koCXC>{MX1M7#)OqD#UP?)D*!WwrrMcrZ5I8 zH#a9CPR>67Nloz#OkfUE7dsFu)mLO-MDb@AXsSV zV-WGFzW8(lQ4$Ic4TM4pr^Ukof`x&Ly(oZyDuD$gPyFHS?Qs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#!T^#wOc*Nj5Z;b7xaI8%dj_H1xV?foK zFdGKPIB{%9q6$m#{j*Z6O9lCvC}W8xspta{K^z5P%jj85>6HyEdfH|DnC0aD z(=Ayiy5h&WT<-590t_?0tBZ>x0@7|G$mfcgG>pBEz3j}qsr|ES5cuysBH*vKszF|P z`yc;0p1-%)f8@}-XiQf-^r9r8a3tk-ZQ1X(O~3&uZ}G|P4#uJE5_aVqKOvA%`f}Si zcFBY42{yuw5;li|U2Mtd&+KI^#=3cy42pwqo7Jv4QNig9`E=)5HwP1%mBB|g59;(s z-Pv8=l9ETwxW{P8in^M&mfx!D zldWZJnGm2Bb{nE?%|7+$FWc{D-%#8no~Ife|}*IB%8&+Ur(hMHxFe zyM(;5Iq9uOPaIB!41JMvwDG)VZ3e8;NGlGZ!^;Mb z7z0-we-(dg=Y>>$gKKuTctt$(CQeotF?@gIyRPexH^=uca^zLsGU=xzL;7CE^=BUx z{)sxDa^%6Z85b5iJYwv6ug?B4m9fi3mo2q4=s=r*f?|A5Hh<1KPMP(e7D<>KDP2-5 z^Rf5N`?Wtemu;D}|ISnaxqYWkSVy%aNQO;W8QSxaW%BDxVJkbgc@al`?lIjnW1Tnv D@d|h? literal 0 HcmV?d00001 diff --git a/modules/samples/sample-clients/apim-event-client/src/main/resources/sync.data.agent.config.yaml b/modules/samples/sample-clients/apim-event-client/src/main/resources/sync.data.agent.config.yaml new file mode 100644 index 000000000..14a5d6e9b --- /dev/null +++ b/modules/samples/sample-clients/apim-event-client/src/main/resources/sync.data.agent.config.yaml @@ -0,0 +1,131 @@ +################################################################################ +# Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + + # Configuration of the Data Agents - to publish events through databridge +data.agent.config: + # Data agent configurations + # THIS IS A MANDATORY FIELD + agents: + - + # Data agent configuration + agentConfiguration: + # Data agent name + # THIS IS A MANDATORY FIELD + name: Thrift + # Data endpoint class + # THIS IS A MANDATORY FIELD + dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint + # Data publisher strategy + publishingStrategy: sync + # Trust store path + trustStorePath: '' + # Trust store password + trustStorePassword: '' + # Queue Size + queueSize: 32768 + # Batch Size + batchSize: 200 + # Core pool size + corePoolSize: 5 + # Socket timeout in milliseconds + socketTimeoutMS: 30000 + # Maximum pool size + maxPoolSize: 10 + # Keep alive time in pool + keepAliveTimeInPool: 20 + # Reconnection interval + reconnectionInterval: 30 + # Max transport pool size + maxTransportPoolSize: 250 + # Max idle connections + maxIdleConnections: 250 + # Eviction time interval + evictionTimePeriod: 5500 + # Min idle time in pool + minIdleTimeInPool: 5000 + # Secure max transport pool size + secureMaxTransportPoolSize: 250 + # Secure max idle connections + secureMaxIdleConnections: 250 + # secure eviction time period + secureEvictionTimePeriod: 5500 + # Secure min idle time in pool + secureMinIdleTimeInPool: 5000 + # SSL enabled protocols + sslEnabledProtocols: '' + # Ciphers + ciphers: '' + - + # Data agent configuration + agentConfiguration: + # Data agent name + # THIS IS A MANDATORY FIELD + name: Binary + # Data endpoint class + # THIS IS A MANDATORY FIELD + dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint + # Data publisher strategy + publishingStrategy: sync + # Trust store path + trustStorePath: '' + # Trust store password + trustStorePassword: '' + # Queue Size + queueSize: 32768 + # Batch Size + batchSize: 200 + # Core pool size + corePoolSize: 5 + # Socket timeout in milliseconds + socketTimeoutMS: 30000 + # Maximum pool size + maxPoolSize: 10 + # Keep alive time in pool + keepAliveTimeInPool: 20 + # Reconnection interval + reconnectionInterval: 30 + # Max transport pool size + maxTransportPoolSize: 250 + # Max idle connections + maxIdleConnections: 250 + # Eviction time interval + evictionTimePeriod: 5500 + # Min idle time in pool + minIdleTimeInPool: 5000 + # Secure max transport pool size + secureMaxTransportPoolSize: 250 + # Secure max idle connections + secureMaxIdleConnections: 250 + # secure eviction time period + secureEvictionTimePeriod: 5500 + # Secure min idle time in pool + secureMinIdleTimeInPool: 5000 + # SSL enabled protocols + sslEnabledProtocols: '' + # Ciphers + ciphers: '' + +wso2.securevault: + secretRepository: + type: org.wso2.carbon.secvault.repository.DefaultSecretRepository + parameters: + privateKeyAlias: wso2carbon + keystoreLocation: src/main/resources/securevault.jks + secretPropertiesFile: src/main/resources/secrets.properties + masterKeyReader: + type: org.wso2.carbon.secvault.reader.DefaultMasterKeyReader + parameters: + masterKeyReaderFile: src/main/resources/master-keys.yaml \ No newline at end of file diff --git a/modules/samples/sample-clients/apim-event-client/src/main/resources/wso2carbon.jks b/modules/samples/sample-clients/apim-event-client/src/main/resources/wso2carbon.jks new file mode 100644 index 0000000000000000000000000000000000000000..1a91cb9c2978cc2e30ca56c8aa4580f0e24330c8 GIT binary patch literal 2201 zcmcJP*H@E^62Stl2YbAFLm&gFqngQ2~D!S4aR+nc(8@ zO7uOFoDKclIzb>-08N7Iqq*6*P;3AMPyq7*04oSWf~=0;B!b#Cn48j0hUy+mb%oJ* z({Rc8wodPSkC1k+fmX++&oy5*yx=4qcJ(s4;AvEc>g5CxQKemcu}e2sz2%JVpY1LlK&VGPGSyWiU#;;rw-W<|Y0i^#1I1Y^b0% zPm7so%bHUel8tFcDUkH&V2Fs;`S*XI>jlajt`dB^q`Kl+1wDh6WL!)a^{AE4txpEX zfJLtRjNVeC$lfHBfoNO-%9+Z5z4^0*YQ)T?SUcIEp=1fg+2y3kvIibjE~pB4p2n3F z_a5G9`!esCKJ)I<8xJ`$$Q;Su)wwyBPE8s*)@K7$J9&m5ZEa76O+81Xvp-iWz(Y#s z(tI4Rlz11iz zenD2v@NKPd(1-cPJ2#625V1ryO4^0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z& z(W8@zazo${!3{Q;e$z0awXmRPYncz)1`Yg?_fHd#zU0V60F*0PczDIbJZ;+^nmo-8 z5B|b$M~`HN`v%tG0U8&eTs`BL8!T#g-L_$NBv`PTU`>?+t$u5f`+P`-v5}a$K6$^dz4+_wD_LZt!ZU;`cf5bi0!n z%1a?wB7(kNOZrhrbdLxQ$<;!lgem^_#%jdPBeMR2IcuLA9yCVmgm#T*Xxi~0wFg;E zuSB(MKOXKrSD@EeAYxrIhoR2i9sF)$Cal&{voL!L58z^lYgZmPGpW^Ahw`1wl73!0 F{U80P*0lft literal 0 HcmV?d00001 From 8a3d99098033402a47462b35b8119ba3040f2457 Mon Sep 17 00:00:00 2001 From: shilmyhasan Date: Thu, 25 Oct 2018 08:44:13 +0530 Subject: [PATCH 14/16] changing the name --- .../sample-clients/apimevent-client/build.xml | 87 ------ .../sample-clients/apimevent-client/pom.xml | 65 ---- .../wso2/carbon/sample/apimevent/Client.java | 288 ------------------ .../sample/apimevent/DataPublisherUtil.java | 81 ----- .../carbon/sample/apimevent/FaultDTO.java | 42 --- .../carbon/sample/apimevent/RequestDTO.java | 61 ---- .../sample/apimevent/ThrottledOutDTO.java | 40 --- .../src/main/resources/client-truststore.jks | Bin 1512 -> 0 bytes .../src/main/resources/data.agent.config.yaml | 131 -------- .../src/main/resources/log4j.properties | 34 --- .../src/main/resources/master-keys.yaml | 6 - .../src/main/resources/secrets.properties | 2 - .../src/main/resources/securevault.jks | Bin 33498 -> 0 bytes .../resources/sync.data.agent.config.yaml | 131 -------- .../src/main/resources/wso2carbon.jks | Bin 2201 -> 0 bytes 15 files changed, 968 deletions(-) delete mode 100644 modules/samples/sample-clients/apimevent-client/build.xml delete mode 100644 modules/samples/sample-clients/apimevent-client/pom.xml delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/resources/client-truststore.jks delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/resources/data.agent.config.yaml delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/resources/log4j.properties delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/resources/master-keys.yaml delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/resources/secrets.properties delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/resources/securevault.jks delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/resources/sync.data.agent.config.yaml delete mode 100644 modules/samples/sample-clients/apimevent-client/src/main/resources/wso2carbon.jks diff --git a/modules/samples/sample-clients/apimevent-client/build.xml b/modules/samples/sample-clients/apimevent-client/build.xml deleted file mode 100644 index 9c6e8af00..000000000 --- a/modules/samples/sample-clients/apimevent-client/build.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Configure -Dprotocol and -Dhost and -Dport and -Dusername and -Dpassword. - - - - - - - - - - diff --git a/modules/samples/sample-clients/apimevent-client/pom.xml b/modules/samples/sample-clients/apimevent-client/pom.xml deleted file mode 100644 index 3b7a3d59f..000000000 --- a/modules/samples/sample-clients/apimevent-client/pom.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - org.wso2.sp - sample-clients - 4.4.0-m4-SNAPSHOT - ../pom.xml - - - 4.0.0 - WSO2 Stream Processor - Sample - apim-event-client - apimevent-client - pom - - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.8 - 1.8 - - - - - - - - org.wso2.carbon.analytics-common - org.wso2.carbon.databridge.commons - - - org.wso2.carbon.analytics-common - org.wso2.carbon.databridge.commons.thrift - - - org.wso2.carbon.analytics-common - org.wso2.carbon.databridge.commons.binary - - - org.wso2.carbon.analytics-common - org.wso2.carbon.databridge.agent - - - - - \ No newline at end of file diff --git a/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java deleted file mode 100644 index 00d7e19f8..000000000 --- a/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java +++ /dev/null @@ -1,288 +0,0 @@ -/* - * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * WSO2 Inc. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.wso2.carbon.sample.apimevent; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.wso2.carbon.databridge.agent.AgentHolder; -import org.wso2.carbon.databridge.agent.DataPublisher; -import org.wso2.carbon.databridge.commons.Event; -import org.wso2.carbon.databridge.commons.utils.DataBridgeCommonsUtils; - -import java.sql.Timestamp; -import java.util.Arrays; -import java.util.concurrent.ThreadLocalRandom; - -/** - * WSO2Event Client Publisher. - */ -public class Client { - private static Log log = LogFactory.getLog(Client.class); - private static final String STREAM_NAME = "org.wso2.apimgt.statistics.throttle"; - private static final String FAULT_STREAM = "org.wso2.apimgt.statistics.fault"; - private static final String REQUEST_STREAM = "org.wso2.apimgt.statistics.request"; - private static final String VERSION = "3.0.0"; - private static String agentConfigFileName = "sync.data.agent.config.yaml"; - - private static String[] username = {"admin", "smith", "finch", "starc", "maxwell", "haddin", "warner", - "faulkner", "marsh"}; - private static String[] tenantDomain = {"carbon.super", "loc.super", "range.com"}; - private static String[] apiName = {"ceylan", "NDB", "Commercial", "BOC", "Peoples", "LG", "Abans", "Singer", - "Damro"}; - private static String[] apiCreator = {"admin", "rohan", "Jeevan"}; - private static String[] apiMethod = {"GET", "POST", "PUT"}; - private static String[] applicationId = {"1", "2", "3"}; - private static String[] applicationName = {"default", "app1", "app2"}; - private static String[] applicationCK = {"default", "app1", "app2"}; - private static String[] applicationOwner = {"Michael", "clarke", "cook"}; - private static String[] userIp = {"10.100.8.14", "10.100.8.26", "10.100.3.64"}; - - public static void main(String[] args) { - - DataPublisherUtil.setKeyStoreParams(); - DataPublisherUtil.setTrustStoreParams(); - - log.info("These are the provided configurations: " + Arrays.deepToString(args)); - - String protocol = args[0]; - String host = args[1]; - String port = args[2]; - int sslPort = Integer.parseInt(port) + 100; - String username = args[3]; - String password = args[4]; - String numberOfEventsStr = args[5]; - int numberOfEvents = Integer.parseInt(numberOfEventsStr); - - try { - log.info("Starting WSO2 Event Client"); - AgentHolder.setConfigPath(DataPublisherUtil.getDataAgentConfigPath(agentConfigFileName)); - DataPublisher dataPublisher = new DataPublisher(protocol, "tcp://" + host + ":" + port, - "ssl://" + host + ":" + sslPort, username, password); - Event event = new Event(); - event.setStreamId(DataBridgeCommonsUtils.generateStreamId(STREAM_NAME, VERSION)); - event.setCorrelationData(null); - Event faultEvent = new Event(); - faultEvent.setStreamId(DataBridgeCommonsUtils.generateStreamId(FAULT_STREAM, VERSION)); - faultEvent.setCorrelationData(null); - Event requestEvent = new Event(); - requestEvent.setStreamId(DataBridgeCommonsUtils.generateStreamId(REQUEST_STREAM, VERSION)); - event.setCorrelationData(null); - - String metaClientType = "mozilla"; - - for (int i = 0; i < numberOfEvents; i++) { - event.setMetaData(new Object[]{metaClientType}); - faultEvent.setMetaData(new Object[]{metaClientType}); - requestEvent.setMetaData(new Object[]{metaClientType}); - Object[] data = getObject(); - Object[] faultData = getFaultStream(); - Object[] requestData = getRequestStream(); - event.setPayloadData(data); - faultEvent.setPayloadData(faultData); - requestEvent.setPayloadData(requestData); - dataPublisher.publish(event); - dataPublisher.publish(faultEvent); - dataPublisher.publish(requestEvent); - } - try { - Thread.sleep(5000); - } catch (InterruptedException e) { - log.error(e); - } - dataPublisher.shutdown(); - log.info("Events published successfully"); - - } catch (Throwable e) { - log.error(e); - } - } - - private static Object[] getObject() { - - ThrottledOutDTO throttledObj = new ThrottledOutDTO(); - String[] username = {"admin", "smith", "finch", "starc", "maxwell", "haddin", "warner", "faulkner", "marsh"}; - String[] userTenantDomain = {"carbon.super", "loc.super"}; - String[] apiCreator = {"admin", "rohan", "Jeevan"}; - String[] applicationId = {"1", "2", "3"}; - String[] applicationName = {"default", "app1", "app2"}; - String[] subscriber = {"Michael", "clarke", "cook"}; - String[] throttledOutReason = {"SUBSCRIPTION_LIMIT_EXCEEDED", "APPLICATION_LIMIT_EXCEEDED"}; - - int index = ThreadLocalRandom.current().nextInt(0, 9); - - throttledObj.username = username[index % 9]; - throttledObj.userTenantDomain = "carbon.super"; - throttledObj.apiName = apiName[index % 9]; - throttledObj.apiVersion = "1.0"; - throttledObj.apiContext = throttledObj.apiName + "/" + throttledObj.apiVersion; - throttledObj.apiCreator = apiCreator[index % 3]; - throttledObj.apiCreatorTenantDomain = "carbon.super"; - throttledObj.applicationId = applicationId[index % 3]; - throttledObj.applicationName = applicationName[index % 3]; - throttledObj.subscriber = subscriber[index % 2]; - throttledObj.throttledOutReason = throttledOutReason[index % 2]; - throttledObj.gatewayType = "g1"; - throttledObj.throttledOutTimestamp = new Timestamp(System.currentTimeMillis()).getTime(); - throttledObj.hostname = "localhost"; - - return (new Object[]{ - throttledObj.username, - throttledObj.userTenantDomain, - throttledObj.apiName, - throttledObj.apiVersion, - throttledObj.apiContext, - throttledObj.apiCreator, - throttledObj.apiCreatorTenantDomain, - throttledObj.applicationId, - throttledObj.applicationName, - throttledObj.subscriber, - throttledObj.throttledOutReason, - throttledObj.gatewayType, - throttledObj.throttledOutTimestamp, - throttledObj.hostname - }); - } - - private static Object[] getFaultStream() { - int index = ThreadLocalRandom.current().nextInt(0, 9); - FaultDTO faultObj = new FaultDTO(); - faultObj.applicationConsumerKey = applicationCK[index % applicationCK.length]; - faultObj.apiName = apiName[index % 3]; - faultObj.apiVersion = "1.0"; - faultObj.apiContext = "get"; - faultObj.apiResourcePath = "/temp"; - faultObj.apiMethod = apiMethod[index % apiMethod.length]; - faultObj.apiCreator = apiCreator[index % apiCreator.length]; - faultObj.username = username[index % username.length]; - faultObj.userTenantDomain = tenantDomain[index % tenantDomain.length]; - faultObj.apiCreatorTenantDomain = tenantDomain[index % tenantDomain.length]; - faultObj.hostname = "localhost"; - faultObj.applicationId = applicationId[index % applicationName.length]; - faultObj.applicationName = applicationName[index % applicationName.length]; - faultObj.protocol = "https"; - faultObj.errorCode = "403"; - faultObj.errorMessage = "notfound"; - faultObj.requestTimestamp = new Timestamp(System.currentTimeMillis()).getTime(); - - return (new Object[]{ - faultObj.applicationConsumerKey, - faultObj.apiName, - faultObj.apiVersion, - faultObj.apiContext, - faultObj.apiResourcePath, - faultObj.apiMethod, - faultObj.apiCreator, - faultObj.username, - faultObj.userTenantDomain, - faultObj.apiCreatorTenantDomain, - faultObj.hostname, - faultObj.applicationId, - faultObj.applicationName, - faultObj.protocol, - faultObj.errorCode, - faultObj.errorMessage, - faultObj.requestTimestamp - }); - } - - public static Object[] getRequestStream() { - RequestDTO requestObj = new RequestDTO(); - Boolean[] throttledOut = {true, false, true, true, true, true, true, true, true}; - long[] responseTime = {1, 6, 2}; - int[] responseCode = {200, 403, 200, 200, 200, 200, 200, 200, 550}; - - int index = ThreadLocalRandom.current().nextInt(0, 9); - - requestObj.applicationConsumerKey = applicationCK[index % 3]; - requestObj.applicationName = applicationName[index % 3]; - requestObj.applicationId = applicationId[index % 3]; - requestObj.applicationOwner = applicationOwner[index % 3]; - requestObj.apiContext = apiName[index % 9] + "/" + "1.0"; - requestObj.apiName = apiName[index % 9]; - requestObj.apiVersion = "1.0"; - requestObj.apiResourcePath = requestObj.apiName + "/" + apiMethod[index % 3]; - requestObj.apiResourceTemplate = requestObj.apiName + "/" + apiMethod[index % 3]; - requestObj.apiMethod = apiMethod[index % 3]; - requestObj.apiCreator = apiCreator[index % 3]; - requestObj.apiCreatorTenantDomain = tenantDomain[index % 3]; - requestObj.apiTier = "unlimited"; - requestObj.apiHostname = "localhost"; - requestObj.username = "default"; - requestObj.userTenantDomain = requestObj.apiCreatorTenantDomain; - requestObj.userIp = userIp[index % userIp.length]; - requestObj.userAgent = "Mozilla"; - requestObj.requestTimestamp = new Timestamp(System.currentTimeMillis()).getTime(); - requestObj.throttledOut = throttledOut[index % 9]; - requestObj.responseTime = responseTime[index % 3]; - requestObj.serviceTime = (long) 2; - requestObj.backendTime = (long) 2; - requestObj.responseCacheHit = false; - requestObj.responseSize = (long) 2; - requestObj.protocol = "Https"; - requestObj.responseCode = responseCode[index % 3]; - requestObj.destination = "www.loc.com"; - requestObj.securityLatency = (long) 2; - requestObj.throttlingLatency = (long) 2; - requestObj.requestMedLat = (long) 2; - requestObj.responseMedLat = (long) 2; - requestObj.backendLatency = (long) 2; - requestObj.otherLatency = (long) 2; - requestObj.gatewayType = "SYNAPSE"; - requestObj.label = "SYNAPSE"; - - return (new Object[]{ - requestObj.applicationConsumerKey, - requestObj.applicationName, - requestObj.applicationId, - requestObj.applicationOwner, - requestObj.apiContext, - requestObj.apiName, - requestObj.apiVersion, - requestObj.apiResourcePath, - requestObj.apiResourceTemplate, - requestObj.apiMethod, - requestObj.apiCreator, - requestObj.apiCreatorTenantDomain, - requestObj.apiTier, - requestObj.apiHostname, - requestObj.username, - requestObj.userTenantDomain, - requestObj.userIp, - requestObj.userAgent, - requestObj.requestTimestamp, - requestObj.throttledOut, - requestObj.responseTime, - requestObj.serviceTime, - requestObj.backendTime, - requestObj.responseCacheHit , - requestObj.responseSize , - requestObj.protocol , - requestObj.responseCode , - requestObj.destination , - requestObj.securityLatency , - requestObj.throttlingLatency , - requestObj.requestMedLat , - requestObj.responseMedLat , - requestObj.backendLatency , - requestObj.otherLatency , - requestObj.gatewayType , - requestObj.label - }); - } -} diff --git a/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java deleted file mode 100644 index 17b1b5874..000000000 --- a/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/DataPublisherUtil.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * WSO2 Inc. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.wso2.carbon.sample.apimevent; - -import java.io.File; - -/** - * Datapublisher Util Implementataion. - */ -public class DataPublisherUtil { - - public static void setTrustStoreParams() { - File filePath = new File("src" + File.separator + "main" + File.separator + "resources"); - if (!filePath.exists()) { - filePath = new File("modules" + File.separator + "samples" + File.separator + - "sample-clients" + File.separator + "apimevent-client" + File.separator + "src" + - File.separator + "main" + File.separator + "resources"); - } - if (!filePath.exists()) { - filePath = new File("resources"); - } - if (!filePath.exists()) { - filePath = new File("test" + File.separator + "resources"); - } - String trustStore = filePath.getAbsolutePath(); - System.setProperty("javax.net.ssl.trustStore", trustStore + File.separator + "client-truststore.jks"); - System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon"); - - } - - public static void setKeyStoreParams() { - File filePath = new File("src" + File.separator + "main" + File.separator + "resources"); - if (!filePath.exists()) { - filePath = new File("modules" + File.separator + "samples" + File.separator + - "sample-clients" + File.separator + "apimevent-client" + File.separator + "src" + - File.separator + "main" + File.separator + "resources"); - } - if (!filePath.exists()) { - filePath = new File("resources"); - } - if (!filePath.exists()) { - filePath = new File("test" + File.separator + "resources"); - } - String keyStore = filePath.getAbsolutePath(); - System.setProperty("Security.KeyStore.Location", keyStore + File.separator + "wso2carbon.jks"); - System.setProperty("Security.KeyStore.Password", "wso2carbon"); - } - - public static String getDataAgentConfigPath(String fileName) { - File filePath = new File("src" + File.separator + "main" + File.separator + "resources"); - if (!filePath.exists()) { - filePath = new File("modules" + File.separator + "samples" + File.separator + - "sample-clients" + File.separator + "apimevent-client" + File.separator + "src" + - File.separator + "main" + File.separator + "resources"); - } - if (!filePath.exists()) { - filePath = new File("resources"); - } - if (!filePath.exists()) { - filePath = new File("test" + File.separator + "resources"); - } - return filePath.getAbsolutePath() + File.separator + fileName; - } - -} diff --git a/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java deleted file mode 100644 index 0e651ff35..000000000 --- a/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/FaultDTO.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * WSO2 Inc. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.wso2.carbon.sample.apimevent; - -/** - * Fault DTO contains attributes of Fault Stream - */ -public class FaultDTO { - - String applicationConsumerKey; - String apiName; - String apiVersion; - String apiContext; - String apiResourcePath; - String apiMethod; - String apiCreator; - String username; - String userTenantDomain; - String apiCreatorTenantDomain; - String hostname; - String applicationId; - String applicationName; - String protocol; - String errorCode; - String errorMessage; - Long requestTimestamp; -} diff --git a/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java deleted file mode 100644 index e089ee39b..000000000 --- a/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/RequestDTO.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * WSO2 Inc. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.wso2.carbon.sample.apimevent; - -/** - * DTO For Request Stream - */ -public class RequestDTO { - - String applicationConsumerKey; - String applicationName; - String applicationId; - String applicationOwner; - String apiContext; - String apiName; - String apiVersion; - String apiResourcePath; - String apiResourceTemplate; - String apiMethod; - String apiCreator; - String apiCreatorTenantDomain; - String apiTier; - String apiHostname; - String username; - String userTenantDomain; - String userIp; - String userAgent; - Long requestTimestamp; - Boolean throttledOut; - Long responseTime; - Long serviceTime; - Long backendTime; - Boolean responseCacheHit; - Long responseSize; - String protocol; - int responseCode; - String destination; - Long securityLatency; - Long throttlingLatency; - Long requestMedLat; - Long responseMedLat; - Long backendLatency; - Long otherLatency; - String gatewayType; - String label; -} diff --git a/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java b/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java deleted file mode 100644 index c7816d85c..000000000 --- a/modules/samples/sample-clients/apimevent-client/src/main/java/org/wso2/carbon/sample/apimevent/ThrottledOutDTO.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * WSO2 Inc. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.wso2.carbon.sample.apimevent; - -/** - * DTO for Throttled Out stream -*/ -public class ThrottledOutDTO { - - public String username; - public String userTenantDomain; - public String apiName; - public String apiVersion; - public String apiContext; - public String apiCreator; - public String apiCreatorTenantDomain; - public String applicationId; - public String applicationName; - public String subscriber; - public String throttledOutReason; - public String gatewayType; - public Long throttledOutTimestamp; - public String hostname; -} diff --git a/modules/samples/sample-clients/apimevent-client/src/main/resources/client-truststore.jks b/modules/samples/sample-clients/apimevent-client/src/main/resources/client-truststore.jks deleted file mode 100644 index f6bc282d08fe477cccd2f0272ac824d2fc03d1ca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1512 zcmezO_TO6u1_mZLW-BkwH_9w#U|>w}TJdc?18anysevU>g{46glc_-ykM91b2PXGcRZ0}+r6I}fjK zeraAwVrHH~SY~RuA+G^9NSup@B|O;Q$WX{Y0K{eH;mpZTPRz;3FD@~V6X!KFFfcN- zG%z6210y&gU;r95ovD zTIp>#bI!PJ4SUAYZF?tZ^*ryMHdXAs>4#H(x|6g&Y*zO-T{>m<`wYH72KLMxhuOdT zS$j9cU6Pgyyj&?aM}JQJ;pk&A1=&xY7g<^D+TF5Y{nd$YcRW}ziKF-r%jWcMgG-j5k?}tZ3o{eT2V^G$ql6jg*62C> z?%TDmY>-|3NZY+n$tlF`Nz0+sGTWA3{!>inZ*4qaCf}d<<=N5Qee*SWr8RtBL>$%K zx^3sg3%3AIBd|nBwE6DqBQZy z)-cZ#N0w|ovuQ)P{x0DQ+DBym_+MLny4^zyoVK_?=_)y~C@DV=l(t-o>OR5K7PGHG z6SF5UeHlX2mdnE_!pI)s#+|l=k<*qij_JfCYGUMP0Ol_)rY1&4hPl6QD&OsODbd`y^h@Y1uGP0cUFKSoURk{3bgcaD1NNVLxAE~_>fCou?9;w2Mzgaf+w8xvVA7?a z6VfJ!6g#6+ z*P6+)eD;C47lJi;vuxD3B zvg8d7-{lIdO5ZK|(6RVXzuI)^H!t=Ey`47U=xYD#%tu!2`7e^N-|c_>lmy9DE?V_s z@=9M$?7TjC;ermmd|HeSb#=aP5Kopboh6G85s+$A4oAqOHbl>h^gkzt17-2dU3K7C)Kxw~(%ij#B$bCNg$Zdqq_NSM98{?5MaYt_IS^%21AT$5~ diff --git a/modules/samples/sample-clients/apimevent-client/src/main/resources/data.agent.config.yaml b/modules/samples/sample-clients/apimevent-client/src/main/resources/data.agent.config.yaml deleted file mode 100644 index 061f3d1bf..000000000 --- a/modules/samples/sample-clients/apimevent-client/src/main/resources/data.agent.config.yaml +++ /dev/null @@ -1,131 +0,0 @@ -################################################################################ -# Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved -# -# Licensed under the Apache License, Version 2.0 (the \"License\"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an \"AS IS\" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -################################################################################ - - # Configuration of the Data Agents - to publish events through databridge -data.agent.config: - # Data agent configurations - # THIS IS A MANDATORY FIELD - agents: - - - # Data agent configuration - agentConfiguration: - # Data agent name - # THIS IS A MANDATORY FIELD - name: Thrift - # Data endpoint class - # THIS IS A MANDATORY FIELD - dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint - # Data publisher strategy - publishingStrategy: async - # Trust store path - trustStorePath: '' - # Trust store password - trustStorePassword: '' - # Queue Size - queueSize: 32768 - # Batch Size - batchSize: 200 - # Core pool size - corePoolSize: 5 - # Socket timeout in milliseconds - socketTimeoutMS: 30000 - # Maximum pool size - maxPoolSize: 10 - # Keep alive time in pool - keepAliveTimeInPool: 20 - # Reconnection interval - reconnectionInterval: 30 - # Max transport pool size - maxTransportPoolSize: 250 - # Max idle connections - maxIdleConnections: 250 - # Eviction time interval - evictionTimePeriod: 5500 - # Min idle time in pool - minIdleTimeInPool: 5000 - # Secure max transport pool size - secureMaxTransportPoolSize: 250 - # Secure max idle connections - secureMaxIdleConnections: 250 - # secure eviction time period - secureEvictionTimePeriod: 5500 - # Secure min idle time in pool - secureMinIdleTimeInPool: 5000 - # SSL enabled protocols - sslEnabledProtocols: TLSv1,TLSv1.1,TLSv1.2 - # Ciphers - ciphers: SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA - - - # Data agent configuration - agentConfiguration: - # Data agent name - # THIS IS A MANDATORY FIELD - name: Binary - # Data endpoint class - # THIS IS A MANDATORY FIELD - dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint - # Data publisher strategy - publishingStrategy: async - # Trust store path - trustStorePath: '' - # Trust store password - trustStorePassword: '' - # Queue Size - queueSize: 32768 - # Batch Size - batchSize: 200 - # Core pool size - corePoolSize: 5 - # Socket timeout in milliseconds - socketTimeoutMS: 30000 - # Maximum pool size - maxPoolSize: 10 - # Keep alive time in pool - keepAliveTimeInPool: 20 - # Reconnection interval - reconnectionInterval: 30 - # Max transport pool size - maxTransportPoolSize: 250 - # Max idle connections - maxIdleConnections: 250 - # Eviction time interval - evictionTimePeriod: 5500 - # Min idle time in pool - minIdleTimeInPool: 5000 - # Secure max transport pool size - secureMaxTransportPoolSize: 250 - # Secure max idle connections - secureMaxIdleConnections: 250 - # secure eviction time period - secureEvictionTimePeriod: 5500 - # Secure min idle time in pool - secureMinIdleTimeInPool: 5000 - # SSL enabled protocols - sslEnabledProtocols: TLSv1,TLSv1.1,TLSv1.2 - # Ciphers - ciphers: SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA - -wso2.securevault: - secretRepository: - type: org.wso2.carbon.secvault.repository.DefaultSecretRepository - parameters: - privateKeyAlias: wso2carbon - keystoreLocation: src/main/resources/securevault.jks - secretPropertiesFile: src/main/resources/secrets.properties - masterKeyReader: - type: org.wso2.carbon.secvault.reader.DefaultMasterKeyReader - parameters: - masterKeyReaderFile: src/main/resources/master-keys.yaml \ No newline at end of file diff --git a/modules/samples/sample-clients/apimevent-client/src/main/resources/log4j.properties b/modules/samples/sample-clients/apimevent-client/src/main/resources/log4j.properties deleted file mode 100644 index a247b6884..000000000 --- a/modules/samples/sample-clients/apimevent-client/src/main/resources/log4j.properties +++ /dev/null @@ -1,34 +0,0 @@ -# -# Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - - -# For the general syntax of property based configuration files see the -# documenation of org.apache.log4j.PropertyConfigurator. - -# The root category uses the appender called A1. Since no priority is -# specified, the root category assumes the default priority for root -# which is DEBUG in log4j. The root category is the only category that -# has a default priority. All other categories need not be assigned a -# priority in which case they inherit their priority from the -# hierarchy. - -#log4j.rootLogger=debug, console -log4j.rootLogger=info, console - -log4j.appender.console=org.apache.log4j.ConsoleAppender -log4j.appender.console.layout=org.apache.log4j.PatternLayout -#log4j.appender.console.layout.ConversionPattern=[%t] %-5p %c %x - %m%n -log4j.appender.console.layout.ConversionPattern=[%t] %-5p %c %x - %m%n diff --git a/modules/samples/sample-clients/apimevent-client/src/main/resources/master-keys.yaml b/modules/samples/sample-clients/apimevent-client/src/main/resources/master-keys.yaml deleted file mode 100644 index 020c113ec..000000000 --- a/modules/samples/sample-clients/apimevent-client/src/main/resources/master-keys.yaml +++ /dev/null @@ -1,6 +0,0 @@ -permanent: true -# mastterKeys should be given in the base64 format and the data type of the -# password should be explicitly specified as binary (type !!binary). -masterKeys: - keyStorePassword: !!binary d3NvMmNhcmJvbg== - privateKeyPassword: !!binary d3NvMmNhcmJvbg== \ No newline at end of file diff --git a/modules/samples/sample-clients/apimevent-client/src/main/resources/secrets.properties b/modules/samples/sample-clients/apimevent-client/src/main/resources/secrets.properties deleted file mode 100644 index 5763d6409..000000000 --- a/modules/samples/sample-clients/apimevent-client/src/main/resources/secrets.properties +++ /dev/null @@ -1,2 +0,0 @@ -wso2.sample.password1=plainText ABC@123 -wso2.sample.password2=cipherText o4NUR97O+zBXuqkVy+hjnOeCPta+QNnqRTsqf1TPT1DagtmI+ho6rfD9AMC5Ud0xstks7KOq/hKVUnc3LTa25To8zAzWUSCeccbR5A16OGQ7DXFvEZgDhsC1fBCmKncPVLFE8oHcr6K76dWCJZhQa+SStCLY+YCDNuJC4aTKhCfbU3y817mn+ozXTBG3Sac4PO/0cBDctGkd9K6BOWm4tPHpzvEmz4OpQEoEaXpoJXaiBZXTN1/LOiwN5croVBIwp9fju4haN54ekMP8/adAsKVpomSfOVLEKMPQdDj+G0sDmKZKw+uGXzCJ2I4gxF2nzCIAvH9VrNfZZBZ9ZuaGQg\=\= diff --git a/modules/samples/sample-clients/apimevent-client/src/main/resources/securevault.jks b/modules/samples/sample-clients/apimevent-client/src/main/resources/securevault.jks deleted file mode 100644 index 11686670c43a58e1850e7461f1da67cb524df384..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 33498 zcmd?S1y~jP+CEHocX#JnbeDu6NT*15cPkx=q=0ltN=QkEC?X*pQUXc}h=78CB7Cz5 zMYr3t_xqmn{?9od*Tto?W>_=7ndg4ueqxR`jy9m6pkRPsx|4q~%^loa++E#F?W}?S znHobuLF;Ytz}7>->u~Ub1fihdwn0H~8^EttHY^M@3=EtAY}|VgIs!6F*yXT2bZBTe zcqmX{Hy9O!i~y?%hky&CsSd^i;XpP}a8YGWzn;Uv+zosgBn$Zz6;IsL)05-u#E?Cl zmrl-ZcuCSw-oe6=^OA}>m9>MZql*&xuX@=ds8 zOs33KU_n7astYHgQiL39ZU*KCfgy*%;<8-adwMdeOXen)E{iH~F%W5s;YnHqBz?0jm3FV#IuySUZWkIBRQ~vy3a!vfn zI7$7_ac^u6qk&W(2xe;Tf2mvn%?4LBifxbG5*7|^EOui%5(hh!$0a%-j3O#sVbhW$ zf>WEqz`Fa`G&b$c+?{2Zyk%vBy+{~n*xVrK*PtNiS0HQzWTUXl&|&*hfV{!M!ayMc zAJYKOmYfnU2$~q!zy}2`W(U5>4xG&koCXC>{MX1M7#)OqD#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4=DC<)4nB( zD9(tKbRg)aTDq0lCp_h}cQb{73QvQ+#KARmIgL64#V!b=X#XkNXDkZ4q|I>jXPCy3 zW$%Mo6ZfOzLtF&csn&uwg8S|{AT_UFWvF#!T^#wOc*Nj5Z;b7xaI8%dj_H1xV?foK zFdGKPIB{%9q6$m#{j*Z6O9lCvC}W8xspta{K^z5P%jj85>6HyEdfH|DnC0aD z(=Ayiy5h&WT<-590t_?0tBZ>x0@7|G$mfcgG>pBEz3j}qsr|ES5cuysBH*vKszF|P z`yc;0p1-%)f8@}-XiQf-^r9r8a3tk-ZQ1X(O~3&uZ}G|P4#uJE5_aVqKOvA%`f}Si zcFBY42{yuw5;li|U2Mtd&+KI^#=3cy42pwqo7Jv4QNig9`E=)5HwP1%mBB|g59;(s z-Pv8=l9ETwxW{P8in^M&mfx!D zldWZJnGm2Bb{nE?%|7+$FWc{D-%#8no~Ife|}*IB%8&+Ur(hMHxFe zyM(;5Iq9uOPaIB!41JMvwDG)VZ3e8;NGlGZ!^;Mb z7z0-we-(dg=Y>>$gKKuTctt$(CQeotF?@gIyRPexH^=uca^zLsGU=xzL;7CE^=BUx z{)sxDa^%6Z85b5iJYwv6ug?B4m9fi3mo2q4=s=r*f?|A5Hh<1KPMP(e7D<>KDP2-5 z^Rf5N`?Wtemu;D}|ISnaxqYWkSVy%aNQO;W8QSxaW%BDxVJkbgc@al`?lIjnW1Tnv D@d|h? diff --git a/modules/samples/sample-clients/apimevent-client/src/main/resources/sync.data.agent.config.yaml b/modules/samples/sample-clients/apimevent-client/src/main/resources/sync.data.agent.config.yaml deleted file mode 100644 index 14a5d6e9b..000000000 --- a/modules/samples/sample-clients/apimevent-client/src/main/resources/sync.data.agent.config.yaml +++ /dev/null @@ -1,131 +0,0 @@ -################################################################################ -# Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved -# -# Licensed under the Apache License, Version 2.0 (the \"License\"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an \"AS IS\" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -################################################################################ - - # Configuration of the Data Agents - to publish events through databridge -data.agent.config: - # Data agent configurations - # THIS IS A MANDATORY FIELD - agents: - - - # Data agent configuration - agentConfiguration: - # Data agent name - # THIS IS A MANDATORY FIELD - name: Thrift - # Data endpoint class - # THIS IS A MANDATORY FIELD - dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint - # Data publisher strategy - publishingStrategy: sync - # Trust store path - trustStorePath: '' - # Trust store password - trustStorePassword: '' - # Queue Size - queueSize: 32768 - # Batch Size - batchSize: 200 - # Core pool size - corePoolSize: 5 - # Socket timeout in milliseconds - socketTimeoutMS: 30000 - # Maximum pool size - maxPoolSize: 10 - # Keep alive time in pool - keepAliveTimeInPool: 20 - # Reconnection interval - reconnectionInterval: 30 - # Max transport pool size - maxTransportPoolSize: 250 - # Max idle connections - maxIdleConnections: 250 - # Eviction time interval - evictionTimePeriod: 5500 - # Min idle time in pool - minIdleTimeInPool: 5000 - # Secure max transport pool size - secureMaxTransportPoolSize: 250 - # Secure max idle connections - secureMaxIdleConnections: 250 - # secure eviction time period - secureEvictionTimePeriod: 5500 - # Secure min idle time in pool - secureMinIdleTimeInPool: 5000 - # SSL enabled protocols - sslEnabledProtocols: '' - # Ciphers - ciphers: '' - - - # Data agent configuration - agentConfiguration: - # Data agent name - # THIS IS A MANDATORY FIELD - name: Binary - # Data endpoint class - # THIS IS A MANDATORY FIELD - dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint - # Data publisher strategy - publishingStrategy: sync - # Trust store path - trustStorePath: '' - # Trust store password - trustStorePassword: '' - # Queue Size - queueSize: 32768 - # Batch Size - batchSize: 200 - # Core pool size - corePoolSize: 5 - # Socket timeout in milliseconds - socketTimeoutMS: 30000 - # Maximum pool size - maxPoolSize: 10 - # Keep alive time in pool - keepAliveTimeInPool: 20 - # Reconnection interval - reconnectionInterval: 30 - # Max transport pool size - maxTransportPoolSize: 250 - # Max idle connections - maxIdleConnections: 250 - # Eviction time interval - evictionTimePeriod: 5500 - # Min idle time in pool - minIdleTimeInPool: 5000 - # Secure max transport pool size - secureMaxTransportPoolSize: 250 - # Secure max idle connections - secureMaxIdleConnections: 250 - # secure eviction time period - secureEvictionTimePeriod: 5500 - # Secure min idle time in pool - secureMinIdleTimeInPool: 5000 - # SSL enabled protocols - sslEnabledProtocols: '' - # Ciphers - ciphers: '' - -wso2.securevault: - secretRepository: - type: org.wso2.carbon.secvault.repository.DefaultSecretRepository - parameters: - privateKeyAlias: wso2carbon - keystoreLocation: src/main/resources/securevault.jks - secretPropertiesFile: src/main/resources/secrets.properties - masterKeyReader: - type: org.wso2.carbon.secvault.reader.DefaultMasterKeyReader - parameters: - masterKeyReaderFile: src/main/resources/master-keys.yaml \ No newline at end of file diff --git a/modules/samples/sample-clients/apimevent-client/src/main/resources/wso2carbon.jks b/modules/samples/sample-clients/apimevent-client/src/main/resources/wso2carbon.jks deleted file mode 100644 index 1a91cb9c2978cc2e30ca56c8aa4580f0e24330c8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2201 zcmcJP*H@E^62Stl2YbAFLm&gFqngQ2~D!S4aR+nc(8@ zO7uOFoDKclIzb>-08N7Iqq*6*P;3AMPyq7*04oSWf~=0;B!b#Cn48j0hUy+mb%oJ* z({Rc8wodPSkC1k+fmX++&oy5*yx=4qcJ(s4;AvEc>g5CxQKemcu}e2sz2%JVpY1LlK&VGPGSyWiU#;;rw-W<|Y0i^#1I1Y^b0% zPm7so%bHUel8tFcDUkH&V2Fs;`S*XI>jlajt`dB^q`Kl+1wDh6WL!)a^{AE4txpEX zfJLtRjNVeC$lfHBfoNO-%9+Z5z4^0*YQ)T?SUcIEp=1fg+2y3kvIibjE~p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`Q;Yhp38wX#qTISTpLck9n5UM^Z&iKjYOK;rE=tNVo-K2cvYZIt~Wm($W^au91@I<42U@4l?Fde72Z-Ek=BOucv*ec$*6HT)JplLQlx5tLP;Xf<3jhMjCDGz& z(W8@zazo${!3{Q;e$z0awXmRPYncz)1`Yg?_fHd#zU0V60F*0PczDIbJZ;+^nmo-8 z5B|b$M~`HN`v%tG0U8&eTs`BL8!T#g-L_$NBv`PTU`>?+t$u5f`+P`-v5}a$K6$^dz4+_wD_LZt!ZU;`cf5bi0!n z%1a?wB7(kNOZrhrbdLxQ$<;!lgem^_#%jdPBeMR2IcuLA9yCVmgm#T*Xxi~0wFg;E zuSB(MKOXKrSD@EeAYxrIhoR2i9sF)$Cal&{voL!L58z^lYgZmPGpW^Ahw`1wl73!0 F{U80P*0lft From 9f70c8f3c8aa50c0bec6917443683d0fbcc1b649 Mon Sep 17 00:00:00 2001 From: shilmyhasan Date: Fri, 26 Oct 2018 16:37:08 +0530 Subject: [PATCH 15/16] changing the log msg --- .../src/main/java/org/wso2/carbon/sample/apimevent/Client.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java b/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java index 00d7e19f8..47cec7466 100644 --- a/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java +++ b/modules/samples/sample-clients/apim-event-client/src/main/java/org/wso2/carbon/sample/apimevent/Client.java @@ -70,7 +70,7 @@ public static void main(String[] args) { int numberOfEvents = Integer.parseInt(numberOfEventsStr); try { - log.info("Starting WSO2 Event Client"); + log.info("Starting APIM Event Client"); AgentHolder.setConfigPath(DataPublisherUtil.getDataAgentConfigPath(agentConfigFileName)); DataPublisher dataPublisher = new DataPublisher(protocol, "tcp://" + host + ":" + port, "ssl://" + host + ":" + sslPort, username, password); From 6dec6b0ca039246b6018b027d35ffe092fa74669 Mon Sep 17 00:00:00 2001 From: Dilini Muthumala Date: Fri, 26 Oct 2018 17:21:25 +0530 Subject: [PATCH 16/16] Change parent dependency version. --- modules/samples/sample-clients/apim-event-client/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/samples/sample-clients/apim-event-client/pom.xml b/modules/samples/sample-clients/apim-event-client/pom.xml index f9ba79c46..f93f79bc2 100644 --- a/modules/samples/sample-clients/apim-event-client/pom.xml +++ b/modules/samples/sample-clients/apim-event-client/pom.xml @@ -20,7 +20,7 @@ org.wso2.sp sample-clients - 4.4.0-m4-SNAPSHOT + 4.4.0-m6-SNAPSHOT ../pom.xml @@ -62,4 +62,4 @@ - \ No newline at end of file +