{{page_title}}
17 |
--------------------------------------------------------------------------------
/products/ppaas/modules/distribution/src/assembly/filter.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 | product.name=Private PaaS
18 | product.key=PPAAS
19 | hotdeployment=true
20 | hotupdate=false
21 | carbon.version=4.2.0
22 | default.server.role=PPaaS
--------------------------------------------------------------------------------
/issue_template.md:
--------------------------------------------------------------------------------
1 | **Description:**
2 |
3 |
4 | **Suggested Labels:**
5 |
6 |
7 | **Suggested Assignees:**
8 |
9 |
10 | **Affected Product Version:**
11 |
12 | **OS, DB, other environment details and versions:**
13 |
14 | **Steps to reproduce:**
15 |
16 |
17 | **Related Issues:**
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/themes/privatePaaS/helpers/login_body.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | var resources = function (page, meta) {
18 | return {
19 | js: ['login/login.js'],
20 | css: []
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/LogPublisherTestCase/log_file.log:
--------------------------------------------------------------------------------
1 | This is a sample log file for testing Log Publishing from PCA.
2 | This is a sample log file for testing Log Publishing from PCA.
3 | This is a sample log file for testing Log Publishing from PCA.
4 | This is a sample log file for testing Log Publishing from PCA.
5 | This is a sample log file for testing Log Publishing from PCA.
6 | This is a sample log file for testing Log Publishing from PCA.
7 | This is a sample log file for testing Log Publishing from PCA.
8 | This is a sample log file for testing Log Publishing from PCA.
9 | This is a sample log file for testing Log Publishing from PCA.
10 | This is a sample log file for testing Log Publishing from PCA.
11 | This is a sample log file for testing Log Publishing from PCA.
12 | This is a sample log file for testing Log Publishing from PCA.
--------------------------------------------------------------------------------
/products/ppaas/modules/integration/tests-integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-network-partition-test-v1.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "network-partition-network-partition-test",
3 | "provider": "mock",
4 | "partitions": [
5 | {
6 | "id": "partition-1",
7 | "property": [
8 | {
9 | "name": "region",
10 | "value": "default"
11 | }
12 | ]
13 | },
14 | {
15 | "id": "partition-2",
16 | "property": [
17 | {
18 | "name": "region",
19 | "value": "default1"
20 | },
21 | {
22 | "name": "zone",
23 | "value": "z1"
24 | }
25 | ]
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/controllers/login/logout.jag:
--------------------------------------------------------------------------------
1 | <%
2 | /*
3 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
4 | *
5 | * WSO2 Inc. licenses this file to you under the Apache License,
6 | * Version 2.0 (the "License"); you may not use this file except
7 | * in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | session.invalidate();
20 | response.sendRedirect(request.getContextPath()+'/login/');
21 | %>
--------------------------------------------------------------------------------
/products/ppaas/modules/integration/tests-integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-1-v1.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "network-partition-deployment-policy-test-1",
3 | "provider": "mock",
4 | "partitions": [
5 | {
6 | "id": "partition-1",
7 | "property": [
8 | {
9 | "name": "region",
10 | "value": "default"
11 | }
12 | ]
13 | },
14 | {
15 | "id": "partition-2",
16 | "property": [
17 | {
18 | "name": "region",
19 | "value": "default1"
20 | },
21 | {
22 | "name": "zone",
23 | "value": "z1"
24 | }
25 | ]
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/tools/installer/README.md:
--------------------------------------------------------------------------------
1 | # Template Module Based Installation for WSO2 Private PaaS
2 |
3 | WSO2 Private PaaS can be installed as a Single Node installation or a Distributed installation using the Template Modules provided below.
4 |
5 | 1. ppaas
6 | 2. wso2cep
7 | 3. wso2das
8 | 4. wso2cep-monitoring
9 | 5. activemq
10 |
11 | Run the Python Configurator on each template module by following the Configurator [README](https://github.com/wso2/private-paas-cartridges/blob/master/common/configurator/README.md). The modules can be applied on either a single node or a distributed setup.
12 |
13 | ## Special Notes
14 |
15 | 1. The Template Module `wso2cep-monitoring` contains only the configurations related to setting up metering and monitoring with WSO2 DAS for WSO2 Private PaaS. It should be applied on top of an existing external WSO2 CEP installation configured work as the external CEP for WSO2 Private PaaS.
16 |
--------------------------------------------------------------------------------
/products/ppaas/modules/integration/tests-integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-1-v1.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "network-partition-sample-applications-test-1",
3 | "provider": "mock",
4 | "partitions": [
5 | {
6 | "id": "partition-1",
7 | "property": [
8 | {
9 | "name": "region",
10 | "value": "default"
11 | }
12 | ]
13 | },
14 | {
15 | "id": "partition-2",
16 | "property": [
17 | {
18 | "name": "region",
19 | "value": "default1"
20 | },
21 | {
22 | "name": "zone",
23 | "value": "z1"
24 | }
25 | ]
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
--------------------------------------------------------------------------------
/products/ppaas/modules/integration/tests-integration/src/test/resources/common/jndi.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License
15 | #
16 |
17 | connectionfactoryName=TopicConnectionFactory
18 | java.naming.provider.url=tcp://localhost:63016
19 | java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/tests/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/test/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | # Root logger option
2 | log4j.rootLogger=INFO, stdout, file
3 |
4 | log4j.logger.org.wso2.ppaas.tools.artifactmigration=DEBUG
5 |
6 | # Redirect log messages to console
7 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
8 | log4j.appender.stdout.Target=System.out
9 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
10 | log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
11 |
12 |
13 | # Redirect log messages to a log file, support file rolling.
14 | log4j.appender.file=org.apache.log4j.RollingFileAppender
15 | log4j.appender.file.File=target/ppaas-artifact-converter-log.log
16 | log4j.appender.file.MaxFileSize=5MB
17 | log4j.appender.file.MaxBackupIndex=10
18 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
19 | log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
20 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/themes/privatePaaS/helpers/applications.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | var resources = function (page, meta) {
18 | return {
19 | js: ['custom/form.js' ],
20 | css: [ 'custom/style.css', 'font-mfizz-1.2/font-mfizz.css']
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/event/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/util/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/controllers/log/console.jag:
--------------------------------------------------------------------------------
1 | <%
2 | /*
3 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
4 | *
5 | * WSO2 Inc. licenses this file to you under the Apache License,
6 | * Version 2.0 (the "License"); you may not use this file except
7 | * in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | function printLog() {
21 | var log = new Log("apacheStratos");
22 | return stringify(log);
23 | }
24 |
25 | %>
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/gen/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/event/instance/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/event/tenant/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/test/resources/test_artifacts/test_multitenantcartridges.json:
--------------------------------------------------------------------------------
1 |
2 | {"cartridge":[]}
3 | // {
4 | // "activeInstances": 0,
5 | // "cartridgeAlias": "-",
6 | // "cartridgeType": "lb",
7 | // "defaultAutoscalingPolicy": "aspolicy",
8 | // "description": "Stratos LB Cartridge",
9 | // "displayName": "stratos load balancer",
10 | // "hostName": "stratos.com",
11 | // "loadBalancer": true,
12 | // "multiTenant": true,
13 | // "persistance": false,
14 | // "provider": "lb",
15 | // "version": 4
16 | // },
17 | // {
18 | // "activeInstances": 0,
19 | // "cartridgeAlias": "-",
20 | // "cartridgeType": "php",
21 | // "description": "PHP Cartridge",
22 | // "displayName": "PHP",
23 | // "hostName": "stratos.com",
24 | // "loadBalancer": false,
25 | // "multiTenant": true,
26 | // "persistance": false,
27 | // "provider": "stratos",
28 | // "version": 7
29 | // }
30 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/artifactmgt/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/event/topology/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/themes/privatePaaS/helpers/users_form.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | var resources = function (page, meta) {
18 | return {
19 | js: ['JSONEditor-0.7.12/jsoneditor-0.7.12.js', 'custom/script.js', 'custom/form.js' ],
20 | css: [ 'custom/style.css']
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/artifactmgt/git/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/gen/Data/constants.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/event/application/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 |
--------------------------------------------------------------------------------
/products/python-cartridge-agent/modules/distribution/src/main/readme/README:
--------------------------------------------------------------------------------
1 | Python Cartridge Agent (PCA)
2 | ============================
3 |
4 | Cartridge agent manages cartridge instance lifecycle and publishes its health statistics
5 | to Complex Event Processor (CEP). It provides a set of extension points for implementing
6 | logic required for configuring the server.
7 |
8 | How to run Live Tests
9 | ---------------------
10 | 1. Install following packages
11 |
12 | apt-get install -y git python python-pip python-dev gcc zip
13 |
14 | 2. Install dependent python modules:
15 | ```
16 | pip install paho-mqtt
17 | pip install psutil
18 | pip install pexpect
19 | pip install pycrypto
20 | pip install gitpython
21 | pip install yapsy
22 | ```
23 |
24 | 3. Start ActiveMQ:
25 | ```
26 | /bin/activemq start
27 | ```
28 |
29 | 4. Run python cartridge agent live tests:
30 | ```
31 | mvn clean install -Plive
32 | ```
33 |
--------------------------------------------------------------------------------
/tools/installer/scripts/README:
--------------------------------------------------------------------------------
1 | ## WSO Private PaaS Installer Tool
2 |
3 |
4 | This tool will enable users to install the private-paas with embedded CEP 3.0.0
5 |
6 | # Instructions
7 |
8 | 1. Build the ppaas-installer script by running the following command
9 |
10 | mvn clean install
11 |
12 | 2. Unzip the distribution and change the setup.conf configuration as required
13 |
14 | conf/setup.conf
15 |
16 | 3. Put the following artifacts under the pack folder
17 | 1. PPaaS distribution
18 | 2. ActiveMQ distribution
19 | 3. Copy the template-module folder to the into the packs/wso2ppaas/4.1.0/
20 | 4. Change the module.ini of the template module as required
21 |
22 | 4. Change the conf/setup.conf based on the versions of the above artifacts.
23 |
24 | 5. run ppaas-installer.sh and provide the addition information required
25 |
26 | 6. If user needs the metering and monitoring feature, user needs to set up the DAS manually.
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/themes/privatePaaS/js/custom/script.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // Setting the height of the centered div, and adding the centering class
18 | var actualHeight = $('#centered').height();
19 |
20 | $('#centered').css('height', actualHeight);
21 | $('#centered').addClass('vertical-center');
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/event/application/signup/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/event/instance/notifier/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/event/instance/status/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/plugins/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | __author__ = 'chamilad'
19 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/extensions/py/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | __author__ = 'chamilad'
19 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/gen/Exception/constants.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/event/domain/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | __author__ = 'chamilad'
19 |
--------------------------------------------------------------------------------
/products/ppaas/modules/distribution/src/main/conf/mqtttopic.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | #
18 |
19 | mqtturl=tcp://localhost:1883
20 | clientID=stratos
21 | tempfilelocation=/tmp
22 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/gen/ThriftSecureEventTransmissionService/constants.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/event/domain/mapping/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | __author__ = 'chamilad'
19 |
--------------------------------------------------------------------------------
/products/ppaas/modules/distribution/src/main/conf/application-authenticators.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/gen/ThriftEventTransmissionService/constants.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 |
--------------------------------------------------------------------------------
/products/ppaas/modules/distribution/src/main/temp-artifacts/sso/module.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
23 |
24 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/gen/Data/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | __all__ = ['ttypes', 'constants']
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/gen/Exception/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | __all__ = ['ttypes', 'constants']
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/thrift/__init__.py:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | __all__ = ['Thrift', 'TSCons']
21 |
--------------------------------------------------------------------------------
/products/ppaas/modules/integration/tests-integration/src/test/resources/sample-application-startup-test/applications/sample-application-startup-test.json:
--------------------------------------------------------------------------------
1 | {
2 | "alias": "sample-application-startup-test",
3 | "applicationId": "sample-application-startup-test",
4 | "components": {
5 | "cartridges": [
6 | {
7 | "type": "c1-sample-application-startup-test",
8 | "cartridgeMin": 3,
9 | "cartridgeMax": 5,
10 | "subscribableInfo": {
11 | "alias": "c1-1x0-sample-applications-test",
12 | "autoscalingPolicy": "autoscaling-policy-sample-application-startup-test",
13 | "deploymentPolicy": "deployment-policy-sample-application-startup-test",
14 | "artifactRepository": {
15 | "privateRepo": false,
16 | "repoUrl": "https://github.com/lakwarus/single-cartridge.git",
17 | "repoUsername": "",
18 | "repoPassword": ""
19 | }
20 | }
21 | }
22 | ]
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/thrift/server/__init__.py:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | __all__ = ['TServer', 'TNonblockingServer']
21 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/gen/ThriftEventTransmissionService/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | __all__ = ['ttypes', 'constants', 'ThriftEventTransmissionService']
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/thrift/transport/__init__.py:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | __all__ = ['TTransport', 'TSocket', 'THttpClient', 'TZlibTransport']
21 |
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/src/main/java/org/wso2/ppaas/rest/endpoint/Constants.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 | package org.wso2.ppaas.rest.endpoint;
19 |
20 | /**
21 | * Global constants used in this module
22 | */
23 | public class Constants {
24 |
25 | public static final String SUPER_TENANT_SERVICE = "super.tenant.service";
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/tools/installer/activemq/5.10.0/template-module/module.ini:
--------------------------------------------------------------------------------
1 | # ------------------------------------------------------------------------
2 | # Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License
15 | # ------------------------------------------------------------------------
16 |
17 | [SETTINGS]
18 | READ_FROM_ENVIRONMENT=true
19 | CARBON_HOME=/home/chamilad/dev/testbed/apache-activemq-5.10.0
20 |
21 | [PARAMS]
22 | JAVA_HEAP_SIZE=2G
23 | #CONFIG_PARAM_MB_USERNAME=system
24 | #CONFIG_PARAM_MB_PASSWORD=manager
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/themes/privatePaaS/helpers/applications_form.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | var resources = function (page, meta) {
18 | return {
19 | js: ['JSONEditor-0.7.12/jsoneditor-0.7.12.js','bootstrap-switch-3.0.2/bootstrap-switch.min.js', 'custom/script.js', 'custom/form.js' ],
20 | css: ['bootstrap-switch-3.0.2/bootstrap-switch.min.css', 'custom/style.css']
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/gen/ThriftSecureEventTransmissionService/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | __all__ = ['ttypes', 'constants', 'ThriftSecureEventTransmissionService']
18 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/login.jag:
--------------------------------------------------------------------------------
1 | <%
2 | /*
3 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
4 | *
5 | * WSO2 Inc. licenses this file to you under the Apache License,
6 | * Version 2.0 (the "License"); you may not use this file except
7 | * in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | var log = new Log("apachestratos.login");
21 | var error = session.get("error"),
22 | caramel = require('caramel');
23 |
24 | if (error == null) {
25 | error = "";
26 | }
27 |
28 | session.remove("error");
29 |
30 | caramel.render({
31 | error: error
32 | });
33 | %>
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/resources/cloud-services-desc.xml:
--------------------------------------------------------------------------------
1 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/themes/privatePaaS/partials/index_left_menu.hbs:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
20 |
21 | {{{left_menu}}}
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/products/ppaas/modules/distribution/src/main/conf/jndi.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | connectionfactoryName=TopicConnectionFactory
21 | java.naming.provider.url=tcp://localhost:61616
22 | java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/src/main/java/org/wso2/ppaas/rest/endpoint/bean/util/type/map/MapType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 |
19 | package org.wso2.ppaas.rest.endpoint.bean.util.type.map;
20 |
21 | import java.util.ArrayList;
22 | import java.util.List;
23 |
24 | public class MapType {
25 |
26 | public List entry = new ArrayList();
27 | }
28 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/themes/privatePaaS/helpers/configure_form.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | var resources = function (page, meta) {
18 | return {
19 | js: ['JSONEditor-0.7.12/jsoneditor-0.7.12.js', 'bootstrap-switch-3.0.2/bootstrap-switch.min.js','custom/script.js', 'custom/form.js' ],
20 | css: ['bootstrap-switch-3.0.2/bootstrap-switch.min.css', 'font-mfizz-1.2/font-mfizz.css','custom/style.css']
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge/thrift/thrift/protocol/__init__.py:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | __all__ = ['fastbinary', 'TBase', 'TBinaryProtocol', 'TCompactProtocol', 'TJSONProtocol', 'TProtocol']
21 |
--------------------------------------------------------------------------------
/tools/migration/distribution/contents/resources/scripts/ec2/undeploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # --------------------------------------------------------------
3 |
4 | # Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
5 | #
6 | # WSO2 Inc. licenses this file to you under the Apache License,
7 | # Version 2.0 (the "License"); you may not use this file except
8 | # in compliance with the License.
9 | # You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | #
20 | # --------------------------------------------------------------
21 | #
22 | prgdir=`dirname "$0"`
23 | script_path=`cd "$prgdir"; pwd`
24 | common_folder=`cd "${script_path}/../common"; pwd`
25 |
26 | bash ${common_folder}/undeploy.sh
27 |
--------------------------------------------------------------------------------
/tools/migration/distribution/contents/resources/scripts/gce/undeploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # --------------------------------------------------------------
3 |
4 | # Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
5 | #
6 | # WSO2 Inc. licenses this file to you under the Apache License,
7 | # Version 2.0 (the "License"); you may not use this file except
8 | # in compliance with the License.
9 | # You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | #
20 | # --------------------------------------------------------------
21 | #
22 | prgdir=`dirname "$0"`
23 | script_path=`cd "$prgdir"; pwd`
24 | common_folder=`cd "${script_path}/../common"; pwd`
25 |
26 | bash ${common_folder}/undeploy.sh
27 |
--------------------------------------------------------------------------------
/tools/migration/distribution/contents/resources/scripts/mock/undeploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # --------------------------------------------------------------
3 |
4 | # Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
5 | #
6 | # WSO2 Inc. licenses this file to you under the Apache License,
7 | # Version 2.0 (the "License"); you may not use this file except
8 | # in compliance with the License.
9 | # You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | #
20 | # --------------------------------------------------------------
21 | #
22 | prgdir=`dirname "$0"`
23 | script_path=`cd "$prgdir"; pwd`
24 | common_folder=`cd "${script_path}/../common"; pwd`
25 |
26 | bash ${common_folder}/undeploy.sh
27 |
--------------------------------------------------------------------------------
/products/ppaas/modules/integration/tests-integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-deployment-policy-test.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "deployment-policy-deployment-policy-test",
3 | "networkPartitions": [
4 | {
5 | "id": "network-partition-deployment-policy-test-1",
6 | "partitionAlgo": "one-after-another",
7 | "partitions": [
8 | {
9 | "id": "partition-1",
10 | "partitionMax": 20
11 | }
12 | ]
13 | },
14 | {
15 | "id": "network-partition-deployment-policy-test-2",
16 | "partitionAlgo": "round-robin",
17 | "partitions": [
18 | {
19 | "id": "network-partition-6-partition-1",
20 | "partitionMax": 10
21 | },
22 | {
23 | "id": "network-partition-6-partition-2",
24 | "partitionMax": 9
25 | }
26 | ]
27 | }
28 | ]
29 | }
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/tools/migration/distribution/contents/resources/scripts/openstack/undeploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # --------------------------------------------------------------
3 |
4 | # Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
5 | #
6 | # WSO2 Inc. licenses this file to you under the Apache License,
7 | # Version 2.0 (the "License"); you may not use this file except
8 | # in compliance with the License.
9 | # You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | #
20 | # --------------------------------------------------------------
21 | #
22 | prgdir=`dirname "$0"`
23 | script_path=`cd "$prgdir"; pwd`
24 | common_folder=`cd "${script_path}/../common"; pwd`
25 |
26 | bash ${common_folder}/undeploy.sh
27 |
--------------------------------------------------------------------------------
/products/ppaas/modules/integration/tests-integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-deployment-policy-test-1.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "deployment-policy-deployment-policy-test-1",
3 | "networkPartitions": [
4 | {
5 | "id": "network-partition-deployment-policy-test-1",
6 | "partitionAlgo": "one-after-another",
7 | "partitions": [
8 | {
9 | "id": "partition-1",
10 | "partitionMax": 20
11 | }
12 | ]
13 | },
14 | {
15 | "id": "network-partition-deployment-policy-test-2",
16 | "partitionAlgo": "round-robin",
17 | "partitions": [
18 | {
19 | "id": "network-partition-6-partition-1",
20 | "partitionMax": 10
21 | },
22 | {
23 | "id": "network-partition-6-partition-2",
24 | "partitionMax": 9
25 | }
26 | ]
27 | }
28 | ]
29 | }
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/products/ppaas/modules/integration/tests-integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-deployment-policy-test-2.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "deployment-policy-deployment-policy-test-2",
3 | "networkPartitions": [
4 | {
5 | "id": "network-partition-deployment-policy-test-1",
6 | "partitionAlgo": "one-after-another",
7 | "partitions": [
8 | {
9 | "id": "partition-1",
10 | "partitionMax": 20
11 | }
12 | ]
13 | },
14 | {
15 | "id": "network-partition-deployment-policy-test-2",
16 | "partitionAlgo": "round-robin",
17 | "partitions": [
18 | {
19 | "id": "network-partition-6-partition-1",
20 | "partitionMax": 10
21 | },
22 | {
23 | "id": "network-partition-6-partition-2",
24 | "partitionMax": 9
25 | }
26 | ]
27 | }
28 | ]
29 | }
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/products/ppaas/modules/integration/tests-integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-sample-applications-test.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "deployment-policy-sample-applications-test",
3 | "networkPartitions": [
4 | {
5 | "id": "network-partition-sample-applications-test-1",
6 | "partitionAlgo": "one-after-another",
7 | "partitions": [
8 | {
9 | "id": "partition-1",
10 | "partitionMax": 20
11 | }
12 | ]
13 | },
14 | {
15 | "id": "network-partition-sample-applications-test-2",
16 | "partitionAlgo": "round-robin",
17 | "partitions": [
18 | {
19 | "id": "network-partition-2-partition-1",
20 | "partitionMax": 10
21 | },
22 | {
23 | "id": "network-partition-2-partition-2",
24 | "partitionMax": 9
25 | }
26 | ]
27 | }
28 | ]
29 | }
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/test/resources/scripts/gce/undeploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 |
22 | prgdir=`dirname "$0"`
23 | script_path=`cd "$prgdir"; pwd`
24 | common_folder=`cd "${script_path}/../common"; pwd`
25 |
26 | bash ${common_folder}/undeploy.sh
27 |
--------------------------------------------------------------------------------
/tools/migration/distribution/contents/resources/scripts/ec2/deploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # --------------------------------------------------------------
3 |
4 | # Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
5 | #
6 | # WSO2 Inc. licenses this file to you under the Apache License,
7 | # Version 2.0 (the "License"); you may not use this file except
8 | # in compliance with the License.
9 | # You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | #
20 | # --------------------------------------------------------------
21 | #
22 | iaas="ec2"
23 |
24 | prgdir=`dirname "$0"`
25 | script_path=`cd "$prgdir"; pwd`
26 | common_folder=`cd "${script_path}/../common"; pwd`
27 |
28 | bash ${common_folder}/deploy.sh ${iaas}
29 |
--------------------------------------------------------------------------------
/tools/migration/distribution/contents/resources/scripts/gce/deploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # --------------------------------------------------------------
3 |
4 | # Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
5 | #
6 | # WSO2 Inc. licenses this file to you under the Apache License,
7 | # Version 2.0 (the "License"); you may not use this file except
8 | # in compliance with the License.
9 | # You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | #
20 | # --------------------------------------------------------------
21 | #
22 | iaas="gce"
23 |
24 | prgdir=`dirname "$0"`
25 | script_path=`cd "$prgdir"; pwd`
26 | common_folder=`cd "${script_path}/../common"; pwd`
27 |
28 | bash ${common_folder}/deploy.sh ${iaas}
29 |
--------------------------------------------------------------------------------
/tools/migration/distribution/contents/resources/scripts/mock/deploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # --------------------------------------------------------------
3 |
4 | # Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
5 | #
6 | # WSO2 Inc. licenses this file to you under the Apache License,
7 | # Version 2.0 (the "License"); you may not use this file except
8 | # in compliance with the License.
9 | # You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | #
20 | # --------------------------------------------------------------
21 | #
22 | iaas="mock"
23 |
24 | prgdir=`dirname "$0"`
25 | script_path=`cd "$prgdir"; pwd`
26 | common_folder=`cd "${script_path}/../common"; pwd`
27 |
28 | bash ${common_folder}/deploy.sh ${iaas}
29 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/themes/privatePaaS/helpers/wizard.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | var resources = function (page, meta) {
18 | return {
19 | js: ['JSONEditor-0.7.12/jsoneditor-0.7.12.js', 'bootstrap-switch-3.0.2/bootstrap-switch.min.js','custom/script.js', 'custom/form.js', 'wizard/custom.js'],
20 | css: ['bootstrap-switch-3.0.2/bootstrap-switch.min.css', 'font-mfizz-1.2/font-mfizz.css','custom/style.css','wizard/custom.css']
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/tools/migration/distribution/contents/resources/scripts/openstack/deploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # --------------------------------------------------------------
3 |
4 | # Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
5 | #
6 | # WSO2 Inc. licenses this file to you under the Apache License,
7 | # Version 2.0 (the "License"); you may not use this file except
8 | # in compliance with the License.
9 | # You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | #
20 | # --------------------------------------------------------------
21 | #
22 | iaas="openstack"
23 |
24 | prgdir=`dirname "$0"`
25 | script_path=`cd "$prgdir"; pwd`
26 | common_folder=`cd "${script_path}/../common"; pwd`
27 |
28 | bash ${common_folder}/deploy.sh ${iaas}
29 |
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/src/main/java/org/wso2/ppaas/rest/endpoint/bean/cartridge/definition/PropertyBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 |
19 | package org.wso2.ppaas.rest.endpoint.bean.cartridge.definition;
20 |
21 | import javax.xml.bind.annotation.XmlRootElement;
22 |
23 | @XmlRootElement(name = "property") public class PropertyBean {
24 |
25 | public String name;
26 |
27 | public String value;
28 | }
29 |
--------------------------------------------------------------------------------
/products/ppaas/modules/integration/tests-integration/src/test/resources/common/cartridge-config.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 | autoscaler.service.url=https://localhost:10843/services/AutoscalerService/
18 | cloud.controller.service.url=https://localhost:10843/services/CloudControllerService/
19 | stratos.manager.service.url=https://localhost:10843/services/StratosManagerService/
20 | puppet.ip=127.0.0.1
21 | puppet.hostname=puppet.stratos.apache.org
22 | puppet.dns.available=false
23 | puppet.environment=stratos
24 |
25 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/plugins/DefaultArtifactCommit.yapsy-plugin:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | [Core]
19 | Name = DefaultArtifactCommit
20 | Module = DefaultArtifactCommit
21 |
22 | [Documentation]
23 | Author = Op1
24 | Version = 0.1
25 | Website = stratos.apache.org
26 |
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/scripts/export.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # ----------------------------------------------------------------------------
3 | # Copyright 2005-2015 WSO2, Inc. http://www.wso2.org
4 | #
5 | # Licensed under the Apache License, Version 2.0 (the "License");
6 | # you may not use this file except in compliance with the License.
7 | # You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | # ----------------------------------------------------------------------------
17 | STRATOS_MANAGER_HOSTNAME=localhost
18 | STRATOS_MANAGER_PORT=9443
19 | USERNAME=admin
20 | PASSWORD=admin
21 |
22 | curl -k -u $USERNAME:$PASSWORD https://$STRATOS_MANAGER_HOSTNAME:$STRATOS_MANAGER_PORT/migration/admin/cartridge/list/subscribed/all -o subscription-data.json
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/plugins/DefaultArtifactCheckout.yapsy-plugin:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | [Core]
19 | Name = DefaultArtifactCheckout
20 | Module = DefaultArtifactCheckout
21 |
22 | [Documentation]
23 | Author = Op1
24 | Version = 0.1
25 | Website = stratos.apache.org
26 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/test/resources/scripts/gce/deploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 |
22 |
23 | iaas="gce"
24 |
25 | prgdir=`dirname "$0"`
26 | script_path=`cd "$prgdir"; pwd`
27 | common_folder=`cd "${script_path}/../common"; pwd`
28 |
29 | bash ${common_folder}/deploy.sh ${iaas}
30 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/test/resources/test-outputs/applications/newphp-application/artifacts/newphp-application.json:
--------------------------------------------------------------------------------
1 | {
2 | "applicationId": "newphp-application",
3 | "multiTenant": false,
4 | "name": "newphp-application",
5 | "description": "PHP Cartridge",
6 | "alias": "newphp",
7 | "components": {
8 | "cartridges": [
9 | {
10 | "type": "php",
11 | "cartridgeMin": 1,
12 | "cartridgeMax": 1,
13 | "subscribableInfo": {
14 | "alias": "newphp",
15 | "deploymentPolicy": "economyDeploymentPolicy",
16 | "autoscalingPolicy": "simpleAutoscalePolicy",
17 | "maxMembers": 0,
18 | "minMembers": 0
19 | }
20 | },
21 | {
22 | "type": "php",
23 | "cartridgeMin": 1,
24 | "cartridgeMax": 1,
25 | "subscribableInfo": {
26 | "alias": "newphp",
27 | "deploymentPolicy": "economyDeploymentPolicy",
28 | "autoscalingPolicy": "simpleAutoscalePolicy",
29 | "maxMembers": 0,
30 | "minMembers": 0
31 | }
32 | }
33 | ]
34 | },
35 | "signUpsExist": false
36 | }
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/src/main/java/org/wso2/ppaas/rest/endpoint/bean/util/type/map/MapEntryType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 |
19 | package org.wso2.ppaas.rest.endpoint.bean.util.type.map;
20 |
21 | import javax.xml.bind.annotation.XmlAttribute;
22 | import javax.xml.bind.annotation.XmlValue;
23 |
24 | public class MapEntryType {
25 |
26 | @XmlAttribute public S key;
27 |
28 | @XmlValue public T value;
29 | }
30 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/themes/privatePaaS/partials/login_header.hbs:
--------------------------------------------------------------------------------
1 |
16 |
17 |
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/src/main/java/org/wso2/ppaas/rest/endpoint/bean/autoscaler/policy/autoscale/LoadAverageThresholds.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 |
19 | package org.wso2.ppaas.rest.endpoint.bean.autoscaler.policy.autoscale;
20 |
21 | import javax.xml.bind.annotation.XmlRootElement;
22 |
23 | @XmlRootElement public class LoadAverageThresholds {
24 |
25 | public float upperLimit;
26 |
27 | public float lowerLimit;
28 | }
29 |
--------------------------------------------------------------------------------
/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/ADCExtensionTestCase/extensions/py/commit-job-handler.yapsy-plugin:
--------------------------------------------------------------------------------
1 | # ------------------------------------------------------------------------
2 | #
3 | # Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
4 | #
5 | # Licensed under the Apache License, Version 2.0 (the "License");
6 | # you may not use this file except in compliance with the License.
7 | # You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License
16 | #
17 | # ------------------------------------------------------------------------
18 |
19 | [Core]
20 | Name = commit-job-handler
21 | Module = commit-job-handler
22 |
23 | [Documentation]
24 | Description = ArtifactCommitJob
25 | Author = Stratos
26 | Version = 0.1
27 | Website = stratos.apache.org
28 |
--------------------------------------------------------------------------------
/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/AgentStartupTestCase/extensions/py/commit-job-handler.yapsy-plugin:
--------------------------------------------------------------------------------
1 | # ------------------------------------------------------------------------
2 | #
3 | # Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
4 | #
5 | # Licensed under the Apache License, Version 2.0 (the "License");
6 | # you may not use this file except in compliance with the License.
7 | # You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License
16 | #
17 | # ------------------------------------------------------------------------
18 |
19 | [Core]
20 | Name = commit-job-handler
21 | Module = commit-job-handler
22 |
23 | [Documentation]
24 | Description = ArtifactCommitJob
25 | Author = Stratos
26 | Version = 0.1
27 | Website = stratos.apache.org
28 |
--------------------------------------------------------------------------------
/tools/installer/wso2das/3.0.0/template-module/templates/repository/conf/jndi.properties.template:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | connectionfactoryName=TopicConnectionFactory
21 | java.naming.provider.url=tcp://{{CONFIG_PARAM_MB_IP}}:{{CONFIG_PARAM_MB_PORT}}
22 | java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
23 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/plugins/DefaultHealthStatisticsReader.yapsy-plugin:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | [Core]
19 | Name = DefaultHealthStatisticsReader
20 | Module = DefaultHealthStatisticsReader
21 |
22 | [Documentation]
23 | Author = Op1
24 | Version = 0.1
25 | Website = stratos.apache.org
26 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/test/resources/test-outputs/applications/myphp-application/scripts/gce/undeploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 |
22 | prgdir=`dirname "$0"`
23 | script_path=`cd "$prgdir"; pwd`
24 | common_folder=`cd "${script_path}/../common"; pwd`
25 |
26 | bash ${common_folder}/undeploy.sh
27 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/test/resources/test-outputs/applications/newphp-application/scripts/gce/undeploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 |
22 | prgdir=`dirname "$0"`
23 | script_path=`cd "$prgdir"; pwd`
24 | common_folder=`cd "${script_path}/../common"; pwd`
25 |
26 | bash ${common_folder}/undeploy.sh
27 |
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/src/main/java/org/wso2/ppaas/rest/endpoint/bean/subscription/domain/SubscriptionDomainBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 |
19 | package org.wso2.ppaas.rest.endpoint.bean.subscription.domain;
20 |
21 | import javax.xml.bind.annotation.XmlRootElement;
22 |
23 | @XmlRootElement(name = "domains") public class SubscriptionDomainBean {
24 | public String domainName;
25 | public String applicationContext;
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/extensions/py/ExtensionExecutor.yapsy-plugin:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | [Core]
19 | Name = ExtensionExecutor
20 | Module = ExtensionExecutor
21 |
22 | [Documentation]
23 | Description = ExtensionExecutor
24 | Author = Op1
25 | Version = 0.1
26 | Website = stratos.apache.org
--------------------------------------------------------------------------------
/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/ADCExtensionTestCase/extensions/py/checkout-job-handler.yapsy-plugin:
--------------------------------------------------------------------------------
1 | # ------------------------------------------------------------------------
2 | #
3 | # Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
4 | #
5 | # Licensed under the Apache License, Version 2.0 (the "License");
6 | # you may not use this file except in compliance with the License.
7 | # You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License
16 | #
17 | # ------------------------------------------------------------------------
18 |
19 | [Core]
20 | Name = checkout-job-handler
21 | Module = checkout-job-handler
22 |
23 | [Documentation]
24 | Description = ArtifactCheckoutJob
25 | Author = Stratos
26 | Version = 0.1
27 | Website = stratos.apache.org
28 |
--------------------------------------------------------------------------------
/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/AgentStartupTestCase/extensions/py/checkout-job-handler.yapsy-plugin:
--------------------------------------------------------------------------------
1 | # ------------------------------------------------------------------------
2 | #
3 | # Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
4 | #
5 | # Licensed under the Apache License, Version 2.0 (the "License");
6 | # you may not use this file except in compliance with the License.
7 | # You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License
16 | #
17 | # ------------------------------------------------------------------------
18 |
19 | [Core]
20 | Name = checkout-job-handler
21 | Module = checkout-job-handler
22 |
23 | [Documentation]
24 | Description = ArtifactCheckoutJob
25 | Author = Stratos
26 | Version = 0.1
27 | Website = stratos.apache.org
28 |
--------------------------------------------------------------------------------
/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/AgentStartupTestCase/extensions/py/startup-test-handler.yapsy-plugin:
--------------------------------------------------------------------------------
1 | # ------------------------------------------------------------------------
2 | #
3 | # Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
4 | #
5 | # Licensed under the Apache License, Version 2.0 (the "License");
6 | # you may not use this file except in compliance with the License.
7 | # You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License
16 | #
17 | # ------------------------------------------------------------------------
18 |
19 | [Core]
20 | Name = startup-test-handler
21 | Module = startup-test-handler
22 |
23 | [Documentation]
24 | Description = InstanceActivatedEvent
25 | Author = Stratos
26 | Version = 0.1
27 | Website = stratos.apache.org
28 |
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/src/main/java/org/wso2/ppaas/rest/endpoint/bean/autoscaler/policy/autoscale/MemoryConsumptionThresholds.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 |
19 | package org.wso2.ppaas.rest.endpoint.bean.autoscaler.policy.autoscale;
20 |
21 | import javax.xml.bind.annotation.XmlRootElement;
22 |
23 | @XmlRootElement public class MemoryConsumptionThresholds {
24 |
25 | public float upperLimit;
26 |
27 | public float lowerLimit;
28 | }
29 |
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/src/main/java/org/wso2/ppaas/rest/endpoint/bean/autoscaler/policy/autoscale/RequestsInFlightThresholds.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 |
19 | package org.wso2.ppaas.rest.endpoint.bean.autoscaler.policy.autoscale;
20 |
21 | import javax.xml.bind.annotation.XmlRootElement;
22 |
23 | @XmlRootElement public class RequestsInFlightThresholds {
24 |
25 | public float upperLimit;
26 |
27 | public float lowerLimit;
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/main/java/org/wso2/ppaas/tools/artifactmigration/exception/ArtifactLoadingException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 | package org.wso2.ppaas.tools.artifactmigration.exception;
19 |
20 | /**
21 | * Exception class to handle artifact loading exceptions
22 | */
23 | public class ArtifactLoadingException extends Exception {
24 |
25 | public ArtifactLoadingException(String message) {
26 | super(message);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/ADCBranchPerTenantTestCase/extensions/py/BranchBasedArtifactCommit.yapsy-plugin:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | [Core]
19 | Name = BranchBasedArtifactCommit
20 | Module = BranchBasedArtifactCommit
21 |
22 | [Documentation]
23 | Author = Op1
24 | Version = 0.1
25 | Website = stratos.apache.org
26 |
--------------------------------------------------------------------------------
/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/ADCBranchPerTenantTestCase/extensions/py/BranchBasedArtifactCheckout.yapsy-plugin:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | [Core]
19 | Name = BranchBasedArtifactCheckout
20 | Module = BranchBasedArtifactCheckout
21 |
22 | [Documentation]
23 | Author = Op1
24 | Version = 0.1
25 | Website = stratos.apache.org
26 |
--------------------------------------------------------------------------------
/tools/installer/wso2cep-monitoring/3.1.0/template-module/module.ini:
--------------------------------------------------------------------------------
1 | # ------------------------------------------------------------------------
2 | # Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License
15 | # ------------------------------------------------------------------------
16 |
17 | [SETTINGS]
18 | READ_FROM_ENVIRONMENT=true
19 | CARBON_HOME=/opt/wso2cep-3.1.0
20 |
21 | [PARAMS]
22 | CONFIG_PARAM_MONITORING_USERNAME=admin
23 | CONFIG_PARAM_MONITORING_PASSWORD=admin
24 | CONFIG_PARAM_MONITORING_HOST=localhost
25 | CONFIG_PARAM_MONITORING_PORT=7661
26 | CONFIG_PARAM_MONITORING_SECURE_PORT=7761
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/main/java/org/wso2/ppaas/tools/artifactmigration/exception/TransformationException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 | package org.wso2.ppaas.tools.artifactmigration.exception;
19 |
20 | /**
21 | * Exception class to transforming exceptions
22 | */
23 | public class TransformationException extends Exception {
24 | public TransformationException(String message, Throwable throwable) {
25 | super(message, throwable);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/test/resources/test-outputs/applications/myphp-application/scripts/gce/deploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 |
22 |
23 | iaas="gce"
24 |
25 | prgdir=`dirname "$0"`
26 | script_path=`cd "$prgdir"; pwd`
27 | common_folder=`cd "${script_path}/../common"; pwd`
28 |
29 | bash ${common_folder}/deploy.sh ${iaas}
30 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/test/resources/test-outputs/applications/newphp-application/scripts/gce/deploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 |
22 |
23 | iaas="gce"
24 |
25 | prgdir=`dirname "$0"`
26 | script_path=`cd "$prgdir"; pwd`
27 | common_folder=`cd "${script_path}/../common"; pwd`
28 |
29 | bash ${common_folder}/deploy.sh ${iaas}
30 |
--------------------------------------------------------------------------------
/products/ppaas/modules/distribution/src/main/conf/multitenancy/tenant-reg-agent.xml:
--------------------------------------------------------------------------------
1 |
19 |
20 |
25 |
26 |
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/scripts/import.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # ----------------------------------------------------------------------------
3 | # Copyright 2005-2015 WSO2, Inc. http://www.wso2.org
4 | #
5 | # Licensed under the Apache License, Version 2.0 (the "License");
6 | # you may not use this file except in compliance with the License.
7 | # You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | # ----------------------------------------------------------------------------
17 | STRATOS_MANAGER_HOSTNAME=localhost
18 | STRATOS_MANAGER_PORT=9443
19 | USERNAME=admin
20 | PASSWORD=admin
21 |
22 | curl -X POST -k -u $USERNAME:$PASSWORD -H "Accept: application/json" -H "Content-Type: application/json" \
23 | -d@subscription-data.json https://$STRATOS_MANAGER_HOSTNAME:$STRATOS_MANAGER_PORT/migration/admin/cartridge/subscribe/bulk
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/src/main/java/org/wso2/ppaas/rest/endpoint/bean/autoscaler/partition/PartitionGroup.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 |
19 | package org.wso2.ppaas.rest.endpoint.bean.autoscaler.partition;
20 |
21 | import javax.xml.bind.annotation.XmlRootElement;
22 | import java.util.List;
23 |
24 | @XmlRootElement public class PartitionGroup {
25 |
26 | public String id;
27 |
28 | public String partitionAlgo;
29 |
30 | //partition Ids
31 | public List partition;
32 | }
33 |
--------------------------------------------------------------------------------
/products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/common/jndi.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | connectionfactoryName=TopicConnectionFactory
21 | java.naming.provider.url=tcp://localhost:61617
22 | java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
23 | java.naming.security.principal=system
24 | java.naming.security.credentials=manager
25 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/themes/privatePaaS/css/font-mfizz-1.2/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2013 Mfizz Inc
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/products/ppaas/modules/integration/tests-integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-deployment-policy-test-v1.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "deployment-policy-deployment-policy-test",
3 | "networkPartitions": [
4 | {
5 | "id": "network-partition-deployment-policy-test-1",
6 | "partitionAlgo": "one-after-another",
7 | "partitions": [
8 | {
9 | "id": "partition-1",
10 | "partitionMax": 25
11 | },
12 | {
13 | "id": "partition-2",
14 | "partitionMax": 20
15 | }
16 | ]
17 | },
18 | {
19 | "id": "network-partition-deployment-policy-test-2",
20 | "partitionAlgo": "round-robin",
21 | "partitions": [
22 | {
23 | "id": "network-partition-6-partition-1",
24 | "partitionMax": 15
25 | },
26 | {
27 | "id": "network-partition-6-partition-2",
28 | "partitionMax": 5
29 | }
30 | ]
31 | }
32 | ]
33 | }
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/test/resources/scripts/ec2/undeploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # --------------------------------------------------------------
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 | # --------------------------------------------------------------
22 | #
23 | prgdir=`dirname "$0"`
24 | script_path=`cd "$prgdir"; pwd`
25 | common_folder=`cd "${script_path}/../common"; pwd`
26 |
27 | bash ${common_folder}/undeploy.sh
28 |
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/src/main/java/org/wso2/ppaas/rest/endpoint/bean/StratosAdminResponse.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 |
19 | package org.wso2.ppaas.rest.endpoint.bean;
20 |
21 | import javax.xml.bind.annotation.XmlRootElement;
22 |
23 | @XmlRootElement public class StratosAdminResponse {
24 |
25 | private String message;
26 |
27 | public String getMessage() {
28 | return message;
29 | }
30 |
31 | public void setMessage(String message) {
32 | this.message = message;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/jaggery.conf:
--------------------------------------------------------------------------------
1 | {
2 | "initScripts": ["app.js"],
3 | "logLevel": "info",
4 | "urlMappings": [
5 | {
6 | "url":"/login/",
7 | "path":"/login.jag"
8 | },
9 | {
10 | "url": "/controllers/",
11 | "path": "/controllers/*"
12 | },
13 | {
14 | "url": "/",
15 | "path": "/index.jag"
16 | },
17 | {
18 | "url": "/configure/",
19 | "path": "/configure.jag"
20 | },
21 | {
22 | "url": "/configure/*",
23 | "path": "/configure_form.jag"
24 | },
25 | {
26 | "url": "/users/",
27 | "path": "/users.jag"
28 | },
29 | {
30 | "url": "/users/*",
31 | "path": "/users_form.jag"
32 | },
33 | {
34 | "url": "/applications/",
35 | "path": "/applications_form.jag"
36 | },
37 | {
38 | "url": "/applications/*",
39 | "path": "/applications_form.jag"
40 | },
41 | {
42 | "url": "/wizard/*",
43 | "path": "/wizard.jag"
44 | }
45 | ],
46 | "errorPages":
47 | {
48 | "500":"/errorhtml/error.html",
49 | "404":"/errorhtml/error-404.html"
50 | }
51 |
52 | }
--------------------------------------------------------------------------------
/products/ppaas/modules/distribution/src/main/conf/default-adaptors/DefaultWSO2EventInputAdaptor.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
23 |
25 |
26 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/test/resources/scripts/mock/undeploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # --------------------------------------------------------------
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 | # --------------------------------------------------------------
22 | #
23 | prgdir=`dirname "$0"`
24 | script_path=`cd "$prgdir"; pwd`
25 | common_folder=`cd "${script_path}/../common"; pwd`
26 |
27 | bash ${common_folder}/undeploy.sh
28 |
--------------------------------------------------------------------------------
/extensions/carbon/kubernetes-membership-scheme/src/main/java/org/wso2/carbon/membership/scheme/kubernetes/domain/Annotations.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.wso2.carbon.membership.scheme.kubernetes.domain;
18 |
19 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20 |
21 | @JsonIgnoreProperties(ignoreUnknown = true)
22 | public class Annotations {
23 |
24 | private String memberId;
25 |
26 | public String getMemberId() {
27 | return memberId;
28 | }
29 |
30 | public void setMemberId(String memberId) {
31 | this.memberId = memberId;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/extensions/carbon/kubernetes-membership-scheme/src/test/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | #
2 | #
3 | # Licensed to the Apache Software Foundation (ASF) under one
4 | # or more contributor license agreements. See the NOTICE file
5 | # distributed with this work for additional information
6 | # regarding copyright ownership. The ASF licenses this file
7 | # to you under the Apache License, Version 2.0 (the
8 | # "License"); you may not use this file except in compliance
9 | # with the License. You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | #
20 | #
21 | log4j.appender.console=org.apache.log4j.ConsoleAppender
22 | log4j.appender.console.Target=System.out
23 | log4j.appender.console.layout=org.apache.log4j.PatternLayout
24 | log4j.appender.console.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %c{1} [%t] %n%m%n
25 | #Loggers
26 | log4j.rootLogger=info, console
27 |
--------------------------------------------------------------------------------
/products/ppaas/modules/distribution/src/main/conf/default-adaptors/DefaultWSO2EventOutputAdaptor.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | admin
21 | tcp://localhost:7661
22 | admin
23 | ssl://localhost:7761
24 |
25 |
--------------------------------------------------------------------------------
/products/ppaas/modules/integration/tests-integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-sample-applications-test-v1.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "deployment-policy-sample-applications-test",
3 | "networkPartitions": [
4 | {
5 | "id": "network-partition-sample-applications-test-1",
6 | "partitionAlgo": "one-after-another",
7 | "partitions": [
8 | {
9 | "id": "partition-1",
10 | "partitionMax": 25
11 | },
12 | {
13 | "id": "partition-2",
14 | "partitionMax": 20
15 | }
16 | ]
17 | },
18 | {
19 | "id": "network-partition-sample-applications-test-2",
20 | "partitionAlgo": "round-robin",
21 | "partitions": [
22 | {
23 | "id": "network-partition-2-partition-1",
24 | "partitionMax": 15
25 | },
26 | {
27 | "id": "network-partition-2-partition-2",
28 | "partitionMax": 5
29 | }
30 | ]
31 | }
32 | ]
33 | }
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/tools/installer/activemq/5.10.0/template-module/README.md:
--------------------------------------------------------------------------------
1 | # Apache ActiveMQ 5.10.0 Template for the Configurator
2 | ---
3 |
4 |
5 | ###Creating ActiveMQ Template Module for Private PaaS
6 |
7 | (1) Build the template module using the following command.
8 |
9 | ```
10 | mvn clean install
11 | ```
12 |
13 | ---
14 | ### Configuration parameters
15 | Following are the configuration parameters that is used by the template.
16 | You can configure following in the ***module.ini*** file.
17 |
18 | #### Read from environment variables :
19 |
20 |
21 | READ_FROM_ENVIRONMENT = false
22 |
23 |
24 | ---
25 |
26 | #### Set the path of product directory :
27 |
28 | CARBON_HOME =
29 |
30 | ---------------------------------------------------------------------------------------
31 |
32 | #### Modify Heap Size for ActiveMQ :
33 |
34 | JAVA_HEAP_SIZE=2G
35 |
36 | * Used in - < ACTIVEMQ_HOME >/bin/activemq
37 |
38 | ---
39 |
40 | #### Set Message Broker Username :
41 |
42 | CONFIG_PARAM_MB_USERNAME=system
43 |
44 | * Used in - < ACTIVEMQ_HOME >/conf/activemq.xml
45 |
46 | ---
47 |
48 | #### Set Message Broker Password :
49 |
50 | CONFIG_PARAM_MB_PASSWORD=manager
51 |
52 | * Used in - < ACTIVEMQ_HOME >/conf/activemq.xml
53 |
--------------------------------------------------------------------------------
/tools/migration/artifact.migration.tool/src/test/resources/scripts/openstack/undeploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # --------------------------------------------------------------
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 | # --------------------------------------------------------------
22 | #
23 | prgdir=`dirname "$0"`
24 | script_path=`cd "$prgdir"; pwd`
25 | common_folder=`cd "${script_path}/../common"; pwd`
26 |
27 | bash ${common_folder}/undeploy.sh
28 |
--------------------------------------------------------------------------------
/tools/migration/subscription-manager/4.0.0/src/main/java/org/wso2/ppaas/rest/endpoint/bean/autoscaler/policy/autoscale/LoadThresholds.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005-2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3 | *
4 | * WSO2 Inc. licenses this file to you under the Apache License,
5 | * Version 2.0 (the "License"); you may not use this file except
6 | * in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing,
12 | * software distributed under the License is distributed on an
13 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | * KIND, either express or implied. See the License for the
15 | * specific language governing permissions and limitations
16 | * under the License.
17 | */
18 |
19 | package org.wso2.ppaas.rest.endpoint.bean.autoscaler.policy.autoscale;
20 |
21 | import javax.xml.bind.annotation.XmlRootElement;
22 |
23 | @XmlRootElement public class LoadThresholds {
24 |
25 | public RequestsInFlightThresholds requestsInFlight;
26 |
27 | public MemoryConsumptionThresholds memoryConsumption;
28 |
29 | public LoadAverageThresholds loadAverage;
30 | }
31 |
--------------------------------------------------------------------------------
/components/org.wso2.ppaas.manager.console/console/themes/privatePaaS/helpers/applications_topology.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | var resources = function (page, meta) {
18 | return {
19 | js: ['JSONEditor-0.7.12/jsoneditor-0.7.12.js','bootstrap-switch-3.0.2/bootstrap-switch.min.js', 'custom/script.js', 'd3js-v3/d3.v3.min.js' ,
20 | 'jsplumb-1.7.2/dom.jsPlumb-1.7.2-min.js', 'dagre-v0.7.0/dagre.min.js', 'canvg/rgbcolor.js', 'canvg/canvg.js','custom/applications_topology.js'],
21 | css: ['bootstrap-switch-3.0.2/bootstrap-switch.min.css', 'custom/style.css', 'custom/topology.css']
22 | };
23 | };
24 |
--------------------------------------------------------------------------------