http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/commons/src/main/java/org/apache/airavata/common/utils/WSDLUtil.java ---------------------------------------------------------------------- diff --git a/modules/commons/src/main/java/org/apache/airavata/common/utils/WSDLUtil.java b/modules/commons/src/main/java/org/apache/airavata/common/utils/WSDLUtil.java deleted file mode 100644 index e4c0bfb..0000000 --- a/modules/commons/src/main/java/org/apache/airavata/common/utils/WSDLUtil.java +++ /dev/null @@ -1,545 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.airavata.common.utils; - -import java.net.URI; -import java.util.LinkedList; -import java.util.List; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.xmlpull.infoset.XmlAttribute; -import org.xmlpull.infoset.XmlBuilderException; -import org.xmlpull.infoset.XmlElement; -import org.xmlpull.infoset.XmlNamespace; - -//import xsul.XmlConstants; -//import xsul5.wsdl.WsdlBinding; -//import xsul5.wsdl.WsdlDefinitions; -//import xsul5.wsdl.WsdlPortType; -//import xsul5.wsdl.WsdlPortTypeOperation; -//import xsul5.wsdl.WsdlUtil; - -public class WSDLUtil { - - private static final Logger logger = LoggerFactory.getLogger(WSDLUtil.class); - -// /** -// * @param wsdlString -// * @return The WSDL -// * @throws UtilsException -// */ -// public static WsdlDefinitions stringToWSDL(String wsdlString) throws UtilsException { -// try { -// XmlElement wsdlElement = XMLUtil.stringToXmlElement(wsdlString); -// WsdlDefinitions definitions = new WsdlDefinitions(wsdlElement); -// return definitions; -// } catch (RuntimeException e) { -// throw new UtilsException(e); -// } -// } -// -// /** -// * @param definitions3 -// * @return The WsdlDefinitions (XSUL5) -// */ -// public static xsul5.wsdl.WsdlDefinitions wsdlDefinitions3ToWsdlDefintions5(xsul.wsdl.WsdlDefinitions definitions3) { -// -// return new xsul5.wsdl.WsdlDefinitions(XMLUtil.xmlElement3ToXmlElement5(definitions3)); -// } -// -// /** -// * @param definitions5 -// * @return The WsdlDefinitions (XSUL3) -// */ -// public static xsul.wsdl.WsdlDefinitions wsdlDefinitions5ToWsdlDefintions3(xsul5.wsdl.WsdlDefinitions definitions5) { -// -// return new xsul.wsdl.WsdlDefinitions(XMLUtil.xmlElement5ToXmlElement3(definitions5.xml())); -// } -// -// /** -// * @param definitions -// * @return The name of the WSDL. -// */ -// public static String getWSDLName(WsdlDefinitions definitions) { -// String wsdlName = definitions.xml().attributeValue(WSConstants.NAME_ATTRIBUTE); -// if (wsdlName == null) { -// // name is optional. -// wsdlName = ""; -// } -// return wsdlName; -// } -// -// /** -// * @param definitions -// * @return The QName of the WSDL. -// */ -// public static QName getWSDLQName(WsdlDefinitions definitions) { -// String targetNamespace = definitions.getTargetNamespace(); -// String wsdlName = getWSDLName(definitions); -// return new QName(targetNamespace, wsdlName); -// } -// -// /** -// * @param definitions -// * @return The first portType -// * @throws UtilsException -// */ -// public static WsdlPortType getFirstPortType(WsdlDefinitions definitions) throws UtilsException { -// for (WsdlPortType portType : definitions.portTypes()) { -// return portType; -// } -// throw new UtilsException("No portType is defined in WSDL"); -// } -// -// public static WsdlPortTypeOperation getFirstOperation(WsdlDefinitions definitions) throws UtilsException { -// for (WsdlPortTypeOperation operation : getFirstPortType(definitions).operations()) { -// return operation; -// } -// throw new UtilsException("No portType is defined in WSDL"); -// } -// -// /** -// * @param definitions -// * @return The QName of the first portType. -// * @throws UtilsException -// */ -// public static QName getFirstPortTypeQName(WsdlDefinitions definitions) throws UtilsException { -// String targetNamespace = definitions.getTargetNamespace(); -// for (WsdlPortType portType : definitions.portTypes()) { -// String portTypeName = portType.getName(); -// QName portTypeQName = new QName(targetNamespace, portTypeName); -// return portTypeQName; -// } -// throw new UtilsException("No portType is defined."); -// } -// -// /** -// * @param definitions -// * @param portTypeQName -// * @return The name of the first operation in a given portType. -// * @throws UtilsException -// */ -// public static String getFirstOperationName(WsdlDefinitions definitions, QName portTypeQName) throws UtilsException { -// WsdlPortType portType = definitions.getPortType(portTypeQName.getLocalPart()); -// for (WsdlPortTypeOperation operation : portType.operations()) { -// String operationName = operation.getOperationName(); -// -// // XXX Temporary solution to skip some GFac specific operations. -// if ("Shutdown".equals(operationName)) { -// continue; -// } else if ("Kill".equals(operationName)) { -// continue; -// } else if ("Ping".equals(operationName)) { -// continue; -// } -// -// return operationName; -// } -// throw new UtilsException("No operation is defined"); -// } -// -// /** -// * @param definitions -// * @return The cloned WsdlDefinitions -// */ -// public static WsdlDefinitions deepClone(WsdlDefinitions definitions) throws UtilsException { -// return new WsdlDefinitions(XMLUtil.deepClone(definitions.xml())); -// } -// -// /** -// * @param definitions -// * @param paramType -// * @return The schema that includes the type definition -// */ -// public static XmlElement getSchema(WsdlDefinitions definitions, QName paramType) throws UtilsException { -// XmlElement types = definitions.getTypes(); -// -// Iterable<XmlElement> schemas = types.elements(WSConstants.XSD_NS, WSConstants.SCHEMA_TAG); -// for (XmlElement schema : schemas) { -// if (isTypeDefinedInSchema(paramType, schema)) { -// return schema; -// } -// } -// -// // ok we didnt find the type in the schema in first level -// // now we try try to see if it exist in schema imports. -// // we loop in two step because its better to avoid the network -// // connection if possible -// for (XmlElement schema : schemas) { -// Iterable<XmlElement> imports = schema.elements(WSConstants.XSD_NS, WSConstants.IMPORT_TAG); -// for (XmlElement importEle : imports) { -// String schemaLocation = importEle.attributeValue(WSConstants.SCHEMA_LOCATION_ATTRIBUTE); -// if (null != schemaLocation && !"".equals(schemaLocation)) { -// try { -// // connect using a url connection -// URL url = new URL(schemaLocation); -// URLConnection connection = url.openConnection(); -// connection.connect(); -// XmlElement importedSchema = xsul5.XmlConstants.BUILDER.parseFragmentFromInputStream(connection -// .getInputStream()); -// if (isTypeDefinedInSchema(paramType, importedSchema)) { -// // still return the parent schema -// return schema; -// } -// } catch (MalformedURLException e) { -// throw new UtilsException(e); -// } catch (XmlBuilderException e) { -// throw new UtilsException(e); -// } catch (IOException e) { -// throw new UtilsException(e); -// } -// } -// } -// } -// -// return null; -// } -// -// private static boolean isTypeDefinedInSchema(QName paramType, XmlElement schema) { -// String schemaTargetNamespace = schema.attributeValue(WSConstants.TARGET_NAMESPACE_ATTRIBUTE); -// if (schemaTargetNamespace.equals(paramType.getNamespaceURI())) { -// for (XmlElement complexType : schema.elements(WSConstants.XSD_NS, WSConstants.COMPLEX_TYPE_TAG)) { -// String complexTypeName = complexType.attributeValue(WSConstants.NAME_ATTRIBUTE); -// if (complexTypeName.equals(paramType.getLocalPart())) { -// return true; -// } -// } -// for (XmlElement simpleType : schema.elements(WSConstants.XSD_NS, WSConstants.SIMPLE_TYPE_TAG)) { -// String simpleTypeName = simpleType.attributeValue(WSConstants.NAME_ATTRIBUTE); -// if (simpleTypeName.equals(paramType.getLocalPart())) { -// return true; -// } -// } -// } -// return false; -// } -// -// /** -// * @param definitions -// * @param paramType -// * @return The type definition -// */ -// public static XmlElement getTypeDefinition(WsdlDefinitions definitions, QName paramType) throws UtilsException { -// XmlElement types = definitions.getTypes(); -// XmlElement returnType = null; -// types.element(null, WSConstants.SCHEMA_TAG); -// Iterable<XmlElement> schemas = types.elements(null, WSConstants.SCHEMA_TAG); -// for (XmlElement schema : schemas) { -// -// returnType = findTypeInSchema(paramType, schema); -// if (returnType != null) { -// return returnType; -// } -// } -// // ok we didnt find the type in the schemas -// // try to find it in the schema imports. -// -// // if not found it will return null so we would return null -// return findTypeDefinitionInImports(definitions, paramType); -// -// } -// -// /** -// * -// * @param definitions -// * @param paramType -// * @return -// */ -// -// public static XmlElement getImportContainingTypeDefinition(WsdlDefinitions definitions, QName paramType) -// throws UtilsException { -// XmlElement types = definitions.getTypes(); -// XmlElement returnType = null; -// Iterable<XmlElement> schemas = types.elements(WSConstants.XSD_NS, WSConstants.SCHEMA_TAG); -// for (XmlElement schema : schemas) { -// Iterable<XmlElement> imports = schema.elements(WSConstants.XSD_NS, WSConstants.IMPORT_TAG); -// for (XmlElement importEle : imports) { -// String schemaLocation = importEle.attributeValue(WSConstants.SCHEMA_LOCATION_ATTRIBUTE); -// if (null != schemaLocation && !"".equals(schemaLocation)) { -// try { -// // connect using a url connection -// URL url = new URL(schemaLocation); -// URLConnection connection = url.openConnection(); -// connection.connect(); -// XmlElement importedSchema = xsul5.XmlConstants.BUILDER.parseFragmentFromInputStream(connection -// .getInputStream()); -// returnType = findTypeInSchema(paramType, importedSchema); -// if (returnType != null) { -// return importEle; -// } -// -// } catch (MalformedURLException e) { -// throw new UtilsException(e); -// } catch (XmlBuilderException e) { -// throw new UtilsException(e); -// } catch (IOException e) { -// throw new UtilsException(e); -// } -// } -// } -// } -// return null; -// } -// -// /** -// * -// * @param definitions -// * @param paramType -// * @return -// */ -// -// public static XmlElement findTypeDefinitionInImports(WsdlDefinitions definitions, QName paramType) -// throws UtilsException { -// XmlElement types = definitions.getTypes(); -// XmlElement returnType = null; -// Iterable<XmlElement> schemas = types.elements(null, WSConstants.SCHEMA_TAG); -// for (XmlElement schema : schemas) { -// Iterable<XmlElement> imports = schema.elements(WSConstants.XSD_NS, WSConstants.IMPORT_TAG); -// for (XmlElement importEle : imports) { -// String schemaLocation = importEle.attributeValue(WSConstants.SCHEMA_LOCATION_ATTRIBUTE); -// if (null != schemaLocation && !"".equals(schemaLocation)) { -// try { -// // connect using a url connection -// URL url = new URL(schemaLocation); -// URLConnection connection = url.openConnection(); -// connection.connect(); -// XmlElement importedSchema = xsul5.XmlConstants.BUILDER.parseFragmentFromInputStream(connection -// .getInputStream()); -// returnType = findTypeInSchema(paramType, importedSchema); -// if (returnType != null) { -// return returnType; -// } -// -// } catch (MalformedURLException e) { -// throw new UtilsException(e); -// } catch (XmlBuilderException e) { -// throw new UtilsException(e); -// } catch (IOException e) { -// throw new UtilsException(e); -// } -// } -// } -// } -// return null; -// -// } -// -// private static XmlElement findTypeInSchema(QName paramType, XmlElement schema) { -// String schemaTargetNamespace = schema.attributeValue(WSConstants.TARGET_NAMESPACE_ATTRIBUTE); -// if (null != schemaTargetNamespace && schemaTargetNamespace.equals(paramType.getNamespaceURI())) { -// for (XmlElement complexType : schema.elements(WSConstants.XSD_NS, WSConstants.COMPLEX_TYPE_TAG)) { -// String complexTypeName = complexType.attributeValue(WSConstants.NAME_ATTRIBUTE); -// if (complexTypeName.equals(paramType.getLocalPart())) { -// return complexType; -// -// } -// } -// for (XmlElement simpleType : schema.elements(WSConstants.XSD_NS, WSConstants.SIMPLE_TYPE_TAG)) { -// String simpleTypeName = simpleType.attributeValue(WSConstants.NAME_ATTRIBUTE); -// if (simpleTypeName.equals(paramType.getLocalPart())) { -// return simpleType; -// } -// } -// } -// return null; -// } -// -// /** -// * @param wsdl -// * @return true if the WSDL is AWSDL; false otherwise. -// */ -// public static boolean isAWSDL(WsdlDefinitions wsdl) { -// if (wsdl.services().iterator().hasNext()) { -// return false; -// } -// return true; -// } -// -// /** -// * @param definitions -// * @return true if the service supports asynchronous invocation; false otherwise; -// */ -// public static boolean isAsynchronousSupported(WsdlDefinitions definitions) { -// for (WsdlBinding binding : definitions.bindings()) { -// XmlElement element = binding.xml().element(WSConstants.USING_ADDRESSING_TAG); -// if (element != null) { -// return true; -// } -// } -// return false; -// } -// -// /** -// * Converts a specified AWSDL to CWSDL using DSC URI. -// * -// * @param definitions -// * The specified AWSDL. This will be modified. -// * @param url -// * The URL of the service -// * @return The CWSDL converted. -// */ -// public static WsdlDefinitions convertToCWSDL(WsdlDefinitions definitions, URI url) { -// for (WsdlPortType portType : definitions.portTypes()) { -// WsdlUtil.createCWSDL(definitions, portType, url); -// } -// return definitions; -// } - - /** - * @param uri - * @return The URI with "?wsdl" at the end. - */ - public static String appendWSDLQuary(String uri) { - URI wsdlURI = appendWSDLQuary(URI.create(uri)); - return wsdlURI.toString(); - } - - public static List<XmlNamespace> getNamespaces(XmlElement element) { - LinkedList<XmlNamespace> namespaces = new LinkedList<XmlNamespace>(); - namespaces.add(element.getNamespace()); - Iterable<XmlAttribute> attributes = element.attributes(); - for (XmlAttribute xmlAttribute : attributes) { - if (xmlAttribute.getNamespace() != null && !namespaces.contains(xmlAttribute.getNamespace())) { - namespaces.add(xmlAttribute.getNamespace()); - } - int index = xmlAttribute.getValue().indexOf(':'); - if (-1 != index) { - String prefix = xmlAttribute.getValue().substring(0, index); - if (element.lookupNamespaceByPrefix(prefix) != null) { - namespaces.add(element.lookupNamespaceByPrefix(prefix)); - } - } - } - Iterable children = element.children(); - for (Object object : children) { - if (object instanceof XmlElement) { - List<XmlNamespace> newNSs = getNamespaces((XmlElement) object); - for (XmlNamespace xmlNamespace : newNSs) { - if (!namespaces.contains(xmlNamespace)) { - namespaces.add(xmlNamespace); - } - } - } - } - return namespaces; - } - - /** - * @param uri - * @return The URI with "?wsdl" at the end. - */ - public static URI appendWSDLQuary(URI uri) { - if (uri.toString().endsWith("?wsdl")) { - logger.warn("URL already has ?wsdl at the end: " + uri.toString()); - // Don't throw exception to be more error tolerant. - return uri; - } - String path = uri.getPath(); - if (path == null || path.length() == 0) { - uri = uri.resolve("/"); - } - uri = URI.create(uri.toString() + "?wsdl"); - return uri; - } - -// /** -// * @param valueElement -// * @return -// */ -// public static org.xmlpull.v1.builder.XmlElement xmlElement5ToXmlElementv1(XmlElement valueElement) { -// -// return XmlConstants.BUILDER.parseFragmentFromReader(new StringReader(xsul5.XmlConstants.BUILDER -// .serializeToStringPretty(valueElement))); -// } - - /** - * - * @param vals - * @param <T> - * @return - */ - public static <T extends Object> T getfirst(Iterable<T> vals) { - for (T class1 : vals) { - return class1; - } - throw new RuntimeException("Iterator empty"); - - } - -// /** -// * @param serviceSchema -// */ -// public static void print(XmlElement serviceSchema) { -// System.out.println(xsul5.XmlConstants.BUILDER.serializeToStringPretty(serviceSchema)); -// } - - /** - * @param workflowID - * @return - */ - public static String findWorkflowName(URI workflowID) { - String[] splits = workflowID.toString().split("/"); - return splits[splits.length - 1]; - - } - - /** - * - * @param element - * @param name - * @param oldValue - * @param newValue - */ - public static void replaceAttributeValue(XmlElement element, String name, String oldValue, String newValue) { - XmlAttribute attribute = element.attribute(name); - if (null != attribute && oldValue.equals(attribute.getValue())) { - element.removeAttribute(attribute); - element.setAttributeValue(name, newValue); - } - Iterable iterator = element.children(); - for (Object object : iterator) { - if (object instanceof XmlElement) { - replaceAttributeValue((XmlElement) object, name, oldValue, newValue); - } - } - - } - - public static boolean attributeExist(XmlElement element, String name, String value) { - XmlAttribute attribute = element.attribute(name); - if (null != attribute && value.equals(attribute.getValue())) { - return true; - } - Iterable iterator = element.children(); - boolean ret = false; - for (Object object : iterator) { - if (object instanceof XmlElement) { - ret = ret || attributeExist((XmlElement) object, name, value); - } - } - return ret; - - } - - -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/commons/src/main/java/org/apache/airavata/common/utils/ZkConstants.java ---------------------------------------------------------------------- diff --git a/modules/commons/src/main/java/org/apache/airavata/common/utils/ZkConstants.java b/modules/commons/src/main/java/org/apache/airavata/common/utils/ZkConstants.java deleted file mode 100644 index d4d90d2..0000000 --- a/modules/commons/src/main/java/org/apache/airavata/common/utils/ZkConstants.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ -package org.apache.airavata.common.utils; - -public interface ZkConstants { - - public static final String ZOOKEEPER_SERVERS_NODE = "/servers"; - public static final String ZOOKEEPER_GFAC_SERVER_NODE = "/gfac"; - public static final String ZOOKEEPER_EXPERIMENT_NODE = "/experiments"; - public static final String ZOOKEEPER_DELIVERYTAG_NODE = "/deliveryTag"; - public static final String ZOOKEEPER_TOKEN_NODE = "/token"; - public static final String ZOOKEEPER_CANCEL_LISTENER_NODE = "/cancelListener"; - public static final String ZOOKEEPER_CANCEL_REQEUST = "CANCEL_REQUEST"; - -} http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/commons/src/main/java/org/apache/airavata/common/utils/listener/AbstractActivityListener.java ---------------------------------------------------------------------- diff --git a/modules/commons/src/main/java/org/apache/airavata/common/utils/listener/AbstractActivityListener.java b/modules/commons/src/main/java/org/apache/airavata/common/utils/listener/AbstractActivityListener.java deleted file mode 100644 index e972012..0000000 --- a/modules/commons/src/main/java/org/apache/airavata/common/utils/listener/AbstractActivityListener.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.airavata.common.utils.listener; - - -public interface AbstractActivityListener { - public void setup(Object... configurations); -} http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/commons/src/main/java/org/apache/airavata/common/utils/listener/AbstractStateChangeRequest.java ---------------------------------------------------------------------- diff --git a/modules/commons/src/main/java/org/apache/airavata/common/utils/listener/AbstractStateChangeRequest.java b/modules/commons/src/main/java/org/apache/airavata/common/utils/listener/AbstractStateChangeRequest.java deleted file mode 100644 index 8529c4b..0000000 --- a/modules/commons/src/main/java/org/apache/airavata/common/utils/listener/AbstractStateChangeRequest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.airavata.common.utils.listener; - - -public abstract class AbstractStateChangeRequest implements PublisherMessage { - -} http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/commons/src/main/java/org/apache/airavata/common/utils/listener/PublisherMessage.java ---------------------------------------------------------------------- diff --git a/modules/commons/src/main/java/org/apache/airavata/common/utils/listener/PublisherMessage.java b/modules/commons/src/main/java/org/apache/airavata/common/utils/listener/PublisherMessage.java deleted file mode 100644 index 0d5404a..0000000 --- a/modules/commons/src/main/java/org/apache/airavata/common/utils/listener/PublisherMessage.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.airavata.common.utils.listener; - -public interface PublisherMessage { -// public String getType(); -} http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/commons/src/test/java/org/apache/airavata/common/utils/ApplicationSettingsTest.java ---------------------------------------------------------------------- diff --git a/modules/commons/src/test/java/org/apache/airavata/common/utils/ApplicationSettingsTest.java b/modules/commons/src/test/java/org/apache/airavata/common/utils/ApplicationSettingsTest.java deleted file mode 100644 index ed61793..0000000 --- a/modules/commons/src/test/java/org/apache/airavata/common/utils/ApplicationSettingsTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.airavata.common.utils; - -import junit.framework.Assert; -import junit.framework.TestCase; - -/** - * User: AmilaJ ([email protected]) - * Date: 7/5/13 - * Time: 4:39 PM - */ - -public class ApplicationSettingsTest extends TestCase { - - public void testGetAbsoluteSettingWithSpecialCharacters() throws Exception { - - String url = ServerSettings.getSetting("default.registry.user"); - Assert.assertEquals("admin", url); - - } - - -} http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/commons/src/test/java/org/apache/airavata/common/utils/SecurityUtilTest.java ---------------------------------------------------------------------- diff --git a/modules/commons/src/test/java/org/apache/airavata/common/utils/SecurityUtilTest.java b/modules/commons/src/test/java/org/apache/airavata/common/utils/SecurityUtilTest.java deleted file mode 100644 index aa87283..0000000 --- a/modules/commons/src/test/java/org/apache/airavata/common/utils/SecurityUtilTest.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.airavata.common.utils; - -import junit.framework.Assert; -import org.junit.Test; - -import java.io.InputStream; -import java.net.URL; -import java.security.KeyStore; - -/** - * User: AmilaJ ([email protected]) - * Date: 10/11/13 - * Time: 10:42 AM - */ - -public class SecurityUtilTest { - @Test - public void testEncryptString() throws Exception { - - URL url = this.getClass().getClassLoader().getResource("mykeystore.jks"); - - assert url != null; - - String stringToEncrypt = "Test string to encrypt"; - byte[] encrypted = SecurityUtil.encryptString(url.getPath(), "mykey", new TestKeyStoreCallback(), stringToEncrypt); - - String decrypted = SecurityUtil.decryptString(url.getPath(), "mykey", new TestKeyStoreCallback(), encrypted); - Assert.assertTrue(stringToEncrypt.equals(decrypted)); - - } - - @Test - public void testEncryptBytes() throws Exception { - - URL url = this.getClass().getClassLoader().getResource("mykeystore.jks"); - - assert url != null; - - String stringToEncrypt = "Test string to encrypt"; - byte[] encrypted = SecurityUtil.encrypt(url.getPath(), "mykey", new TestKeyStoreCallback(), - stringToEncrypt.getBytes("UTF-8")); - - byte[] decrypted = SecurityUtil.decrypt(url.getPath(), "mykey", new TestKeyStoreCallback(), encrypted); - Assert.assertTrue(stringToEncrypt.equals(new String(decrypted, "UTF-8"))); - - } - - @Test - public void testLoadKeyStore() throws Exception{ - InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("mykeystore.jks"); - - KeyStore ks = SecurityUtil.loadKeyStore(inputStream, "jceks", new TestKeyStoreCallback()); - Assert.assertNotNull(ks); - - } - - @Test - public void testLoadKeyStoreFromFile() throws Exception{ - URL url = this.getClass().getClassLoader().getResource("mykeystore.jks"); - - assert url != null; - KeyStore ks = SecurityUtil.loadKeyStore(url.getPath(), "jceks", new TestKeyStoreCallback()); - Assert.assertNotNull(ks); - - } - - private class TestKeyStoreCallback implements KeyStorePasswordCallback { - - @Override - public char[] getStorePassword() { - return "airavata".toCharArray(); - } - - @Override - public char[] getSecretKeyPassPhrase(String keyAlias) { - if (keyAlias.equals("mykey")) { - return "airavatasecretkey".toCharArray(); - } - - return null; - } - } -} http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/commons/src/test/resources/mykeystore.jks ---------------------------------------------------------------------- diff --git a/modules/commons/src/test/resources/mykeystore.jks b/modules/commons/src/test/resources/mykeystore.jks deleted file mode 100644 index 335ebf8..0000000 Binary files a/modules/commons/src/test/resources/mykeystore.jks and /dev/null differ http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/client/pom.xml ---------------------------------------------------------------------- diff --git a/modules/configuration/client/pom.xml b/modules/configuration/client/pom.xml deleted file mode 100644 index 403347f..0000000 --- a/modules/configuration/client/pom.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!--Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file - distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under - the Apache License, Version 2.0 (theà "License"); you may not use this file except in compliance with the License. You may - obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to - in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - ANY ~ KIND, either express or implied. See the License for the specific language governing permissions and limitations under - the License. --> - -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <parent> - <groupId>org.apache.airavata</groupId> - <artifactId>airavata-configuration</artifactId> - <version>0.17-SNAPSHOT</version> - <relativePath>../pom.xml</relativePath> - </parent> - - <modelVersion>4.0.0</modelVersion> - <artifactId>airavata-client-configuration</artifactId> - <name>Airavata Client Configuration</name> - <description>Airavata Client Configuration</description> - <packaging>jar</packaging> -</project> http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/client/src/main/resources/airavata-client.properties ---------------------------------------------------------------------- diff --git a/modules/configuration/client/src/main/resources/airavata-client.properties b/modules/configuration/client/src/main/resources/airavata-client.properties deleted file mode 100644 index e8bb332..0000000 --- a/modules/configuration/client/src/main/resources/airavata-client.properties +++ /dev/null @@ -1,100 +0,0 @@ -# -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -########################################################################### -# -# This properties file provides configuration for Airavata Clients: -# XBaya and Airavata API -# -########################################################################### - -###---------------------------REGISTRY API IMPLEMENTATION---------------------------### - -#class.registry.accessor=org.apache.airavata.registry.core.experiment.egistry.impl.AiravataJPARegistry -#class.registry.accessor=org.apache.airavata.rest.client.RegistryClient - -###---------------------REGISTRY API IMPLEMENTATION - CUSTOM SETTINGS----------------------### - -########################Registry JPA Implementation Settings######################## -#for mysql [AiravataJPARegistry] -#registry.jdbc.driver=com.mysql.jdbc.Driver -#registry.jdbc.url=jdbc:mysql://localhost:3306/persistent_data - -#for derby [AiravataJPARegistry] -registry.jdbc.driver=org.apache.derby.jdbc.ClientDriver -registry.jdbc.url=jdbc:derby://localhost:1527/experiment_catalog;create=true;user=airavata;password=airavata -registry.jdbc.user=airavata -registry.jdbc.password=airavata -start.derby.server.mode=true - - -validationQuery=SELECT 1 from CONFIGURATION -jpa.connection.properties=MaxActive=10,MaxIdle=5,MinIdle=2,MaxWait=60000,testWhileIdle=true,testOnBorrow=true -default.registry.user=admin -default.registry.password=admin -default.registry.password.hash.method=SHA -default.registry.gateway=default -gateway_id=php_reference_gateway - -########################################################################### -# Airavata App Catalog DB Configuration -########################################################################### -#for derby [AiravataJPARegistry] -appcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver -appcatalog.jdbc.url=jdbc:derby://localhost:1527/app_catalog;create=true;user=airavata;password=airavata -# MySql database configuration -#appcatalog.jdbc.driver=com.mysql.jdbc.Driver -#appcatalog.jdbc.url=jdbc:mysql://localhost:3306/app_catalog -appcatalog.jdbc.user=airavata -appcatalog.jdbc.password=airavata -appcatalog.validationQuery=SELECT 1 from COMPUTE_RESOURCE - -#user defined registry accessor classes -#class.provenance.registry.accessor=org.apache.airavata.registry.core.experiment.egistry.jpa.impl.AiravataJPARegistry -#class.configuration.registry.accessor=org.apache.airavata.registry.core.experiment.egistry.jpa.impl.AiravataJPARegistry -#class.descriptor.registry.accessor=org.apache.airavata.registry.core.experiment.egistry.jpa.impl.AiravataJPARegistry -#class.project.registry.accessor=org.apache.airavata.registry.core.experiment.egistry.jpa.impl.AiravataJPARegistry -#class.user.workflow.registry.accessor=org.apache.airavata.registry.core.experiment.egistry.jpa.impl.AiravataJPARegistry -#class.published.workflow.registry.accessor=org.apache.airavata.registry.core.experiment.egistry.jpa.impl.AiravataJPARegistry - -########################Registry Rest Implementation Settings######################## - -trust.store=aiaravata.jks -trust.store.password=airavata - -##################################################################################### - -#for xbaya -xbaya.registry.user=admin -xbaya.registry.url=http://localhost:8080/airavata/services/registry -xbaya.default.gateway=default - - - -########################################################################### -# Airavata Thrift Server configurations -########################################################################### -thrift.server.host=localhost -thrift.server.port=8930 - -#app.catalog.server.host=${thrift.server.host} -#app.catalog.server.port=8931 - - http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/client/src/main/resources/log4j.properties ---------------------------------------------------------------------- diff --git a/modules/configuration/client/src/main/resources/log4j.properties b/modules/configuration/client/src/main/resources/log4j.properties deleted file mode 100644 index a625c4f..0000000 --- a/modules/configuration/client/src/main/resources/log4j.properties +++ /dev/null @@ -1,41 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -# Set root category priority to INFO and its only appender to CONSOLE. -log4j.rootCategory=INFO, CONSOLE,LOGFILE -log4j.rootLogger=INFO, CONSOLE, LOGFILE - -# Set the enterprise logger priority to FATAL -log4j.logger.org.apache.axis2.enterprise=FATAL -log4j.logger.de.hunsicker.jalopy.io=FATAL -log4j.logger.httpclient.wire.header=FATAL -log4j.logger.org.apache.commons.httpclient=FATAL -log4j.logger.org.apache.zookeeper=FATAL - -# CONSOLE is set to be a ConsoleAppender using a PatternLayout. -log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender -log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout -log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n - -# LOGFILE is set to be a File appender using a PatternLayout. -log4j.appender.LOGFILE=org.apache.log4j.FileAppender -log4j.appender.LOGFILE.File=../../bin/airavata.log -log4j.appender.LOGFILE.Append=true -log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout -log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/pom.xml ---------------------------------------------------------------------- diff --git a/modules/configuration/pom.xml b/modules/configuration/pom.xml deleted file mode 100644 index 33b9445..0000000 --- a/modules/configuration/pom.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!--Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file - distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under - the Apache License, Version 2.0 (theà "License"); you may not use this file except in compliance with the License. You may - obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to - in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - ANY ~ KIND, either express or implied. See the License for the specific language governing permissions and limitations under - the License. --> - -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <parent> - <groupId>org.apache.airavata</groupId> - <artifactId>airavata</artifactId> - <version>0.17-SNAPSHOT</version> - <relativePath>../../pom.xml</relativePath> - </parent> - - <modelVersion>4.0.0</modelVersion> - <artifactId>airavata-configuration</artifactId> - <name>Airavata Configuration</name> - <packaging>pom</packaging> - <url>http://airavata.apache.org/</url> - <profiles> - <profile> - <id>default</id> - <activation> - <activeByDefault>true</activeByDefault> - </activation> - <modules> - <module>server</module> - <module>client</module> - </modules> - </profile> - </profiles> - <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> - </properties> -</project> http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/server/pom.xml ---------------------------------------------------------------------- diff --git a/modules/configuration/server/pom.xml b/modules/configuration/server/pom.xml deleted file mode 100644 index a49263e..0000000 --- a/modules/configuration/server/pom.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!--Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file - distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under - the Apache License, Version 2.0 (theà "License"); you may not use this file except in compliance with the License. You may - obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to - in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - ANY ~ KIND, either express or implied. See the License for the specific language governing permissions and limitations under - the License. --> - -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <parent> - <groupId>org.apache.airavata</groupId> - <artifactId>airavata-configuration</artifactId> - <version>0.17-SNAPSHOT</version> - <relativePath>../pom.xml</relativePath> - </parent> - - <modelVersion>4.0.0</modelVersion> - <artifactId>airavata-server-configuration</artifactId> - <name>Airavata Server Configuration</name> - <description>Airavata Server Configuration</description> - <packaging>jar</packaging> -</project> http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/server/src/main/resources/CLOUD_Groovy.template ---------------------------------------------------------------------- diff --git a/modules/configuration/server/src/main/resources/CLOUD_Groovy.template b/modules/configuration/server/src/main/resources/CLOUD_Groovy.template deleted file mode 100644 index b16beb7..0000000 --- a/modules/configuration/server/src/main/resources/CLOUD_Groovy.template +++ /dev/null @@ -1,7 +0,0 @@ -<% - if (workingDirectory != null) out.print 'cd ' + workingDirectory +' && ' - if (jobSubmitterCommand != null) out.print jobSubmitterCommand + ' ' - if (executablePath != null) out.print executablePath + ' ' - if (inputs != null) for(input in inputs) out.print input + ' ' - out.print '\n' -%> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/server/src/main/resources/FORK_Groovy.template ---------------------------------------------------------------------- diff --git a/modules/configuration/server/src/main/resources/FORK_Groovy.template b/modules/configuration/server/src/main/resources/FORK_Groovy.template deleted file mode 100644 index d25037b..0000000 --- a/modules/configuration/server/src/main/resources/FORK_Groovy.template +++ /dev/null @@ -1,13 +0,0 @@ -#!${shellName} -# FORK job submission script generated by Apache Airavata - -<% if (exports != null) for(com in exports) out.print 'export ' + com +'\n' - if (moduleCommands != null) for(mc in moduleCommands) out.print mc +'\n' - if (workingDirectory != null) out.print 'cd ' + workingDirectory +'\n' - if (preJobCommands != null) for(pjc in preJobCommands) out.print pjc +'\n' - if (jobSubmitterCommand != null) out.print jobSubmitterCommand + ' ' - if (executablePath != null) out.print executablePath + ' ' - if (inputs != null) for(input in inputs) out.print input + ' ' - out.print '\n' - if (postJobCommands != null) for(pjc in postJobCommands) out.print pjc +'\n' -%> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/server/src/main/resources/LSF_Groovy.template ---------------------------------------------------------------------- diff --git a/modules/configuration/server/src/main/resources/LSF_Groovy.template b/modules/configuration/server/src/main/resources/LSF_Groovy.template deleted file mode 100644 index 428b42b..0000000 --- a/modules/configuration/server/src/main/resources/LSF_Groovy.template +++ /dev/null @@ -1,27 +0,0 @@ -#!${shellName} -# LSF batch job submission script generated by Apache Airavata - -<% - if(shellName != null && shellName != "") out.print '#BSUB -L ' + shellName + '\n' - if (queueName != null && queueName != "") out.print '#BSUB -q ' + queueName + '\n' - if (nodes != null && nodes != "") out.print '#BSUB -n ' + nodes + '\n' - if (jobName != null && jobName != "") out.print '#BSUB -J ' + jobName + '\n' - if (mailAddress != null && mailAddress != "") out.print '#BSUB -u ' + mailAddress + '\n' - if (accountString != null && accountString != "") out.print '#BSUB -P ' + accountString + '\n' - if (maxWallTime != null && maxWallTime != "") out.print '#BSUB -W ' + maxWallTime + '\n' - if (standardOutFile != null && standardOutFile != "") out.print '#BSUB -o ' + standardOutFile + '\n' - if (standardErrorFile != null && standardErrorFile != "") out.print '#BSUB -e ' + standardErrorFile + '\n' - if (chassisName != null && chassisName != "") out.print '#BSUB -m c' + chassisName + '\n' - if (usedMem != null && usedMem != "") out.print '#BSUB -R rusage[mem=' + usedMem + ']\n' -%> - -<% if (exports != null) for(com in exports) out.print 'export ' + com +'\n' - if (moduleCommands != null) for(mc in moduleCommands) out.print mc +'\n' - if (workingDirectory != null && workingDirectory != "") out.print 'cd ' + workingDirectory +'\n' - if (preJobCommands != null) for(pjc in preJobCommands) out.print pjc +'\n' - if (jobSubmitterCommand != null && jobSubmitterCommand != "") out.print jobSubmitterCommand + ' ' - if (executablePath != null && executablePath != "") out.print executablePath + ' ' - if (inputs != null) for(input in inputs) out.print input + ' ' - out.print '\n' - if (postJobCommands != null) for(pjc in postJobCommands) out.print pjc +'\n' -%> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/server/src/main/resources/PBS_Groovy.template ---------------------------------------------------------------------- diff --git a/modules/configuration/server/src/main/resources/PBS_Groovy.template b/modules/configuration/server/src/main/resources/PBS_Groovy.template deleted file mode 100644 index 4056910..0000000 --- a/modules/configuration/server/src/main/resources/PBS_Groovy.template +++ /dev/null @@ -1,31 +0,0 @@ -#!${shellName} - -#PBS batch job submission script generated by Apache Airavata -<% - if(shellName != null && shellName != "") out.print '#PBS -S ' + shellName + '\n' - if (queueName != null && queueName != "") out.print '#PBS -q ' + queueName + '\n' - if (jobName != null && jobName != "") out.print '#PBS -N ' + jobName + '\n' - if (mailAddress != null && mailAddress != "") out.print '#PBS -M ' + mailAddress + '\n' - if (accountString != null && accountString != "") out.print '#PBS -A ' + accountString + '\n' - if (maxWallTime != null && maxWallTime != "") out.print '#PBS -l walltime=' + maxWallTime + '\n' - if (jobSubmitterCommand != null && jobSubmitterCommand != "" && jobSubmitterCommand == "ccmrun") - out.print '#PBS -l gres=ccm \n' - if (standardOutFile != null && standardOutFile != "") out.print '#PBS -o ' + standardOutFile + '\n' - if (standardErrorFile != null && standardErrorFile != "") out.print '#PBS -e ' + standardErrorFile + '\n' - if (usedMem != null && usedMem != "") out.print '#PBS -l mem=' + usedMem + '\n' - if (nodes != null && nodes != "" && processPerNode != null && processPerNode != "") - out.print '#PBS -l nodes=' + nodes + ':ppn=' + processPerNode + '\n' -%> -#PBS -m abe - -<% if (exports != null) for(com in exports) out.print 'export ' + com +'\n' - if (moduleCommands != null) for(mc in moduleCommands) out.print mc +'\n' - if (workingDirectory != null && workingDirectory != "") out.print 'cd ' + workingDirectory +'\n' - if (preJobCommands != null) for(pjc in preJobCommands) out.print pjc +'\n' - if (jobSubmitterCommand != null && jobSubmitterCommand != "") out.print jobSubmitterCommand + ' ' - if (jobSubmitterCommand != "ccmrun" && jobSubmitterCommand != "") out.print cpuCount + ' ' - if (executablePath != null && executablePath != "") out.print executablePath + ' ' - if (inputs != null) for(input in inputs) out.print input + ' ' - out.print '\n' - if (postJobCommands != null) for(pjc in postJobCommands) out.print pjc +'\n' -%> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/server/src/main/resources/SLURM_Groovy.template ---------------------------------------------------------------------- diff --git a/modules/configuration/server/src/main/resources/SLURM_Groovy.template b/modules/configuration/server/src/main/resources/SLURM_Groovy.template deleted file mode 100644 index bae646e..0000000 --- a/modules/configuration/server/src/main/resources/SLURM_Groovy.template +++ /dev/null @@ -1,28 +0,0 @@ -#!${shellName} - -# SLURM job submission script generated by Apache Airavata -<% -if (queueName != null && queueName != "") out.print '#SBATCH -p ' + queueName + '\n' - if (nodes != null && nodes != "") out.print '#SBATCH -N ' + nodes + '\n' - if (cpuCount != null && cpuCount != "") out.print '#SBATCH -n ' + cpuCount + '\n' - if (mailAddress != null && mailAddress != "") out.print '#SBATCH --mail-user=' + mailAddress + '\n' - if (accountString != null && accountString != "" ) out.print '#SBATCH -A ' + accountString + '\n' - if (maxWallTime != null && maxWallTime != "") out.print '#SBATCH -t ' + maxWallTime + '\n' - if (jobName != null && jobName != "") out.print '#SBATCH -J ' + jobName + '\n' - if (standardOutFile != null && standardOutFile != "") out.print '#SBATCH -o ' + standardOutFile + '\n' - if (standardErrorFile != null && standardErrorFile != "") out.print '#SBATCH -e ' + standardErrorFile + '\n' - if (qualityOfService != null && qualityOfService != "") out.print '#SBATCH --qos=' + qualityOfService + '\n' - if (reservation != null && reservation != "") out.print '#SBATCH --reservation=' + reservation + '\n' -%> -#SBATCH --mail-type=ALL - -<% if (exports != null) for(com in exports) out.print 'export ' + com +'\n' - if (moduleCommands != null) for(mc in moduleCommands) out.print mc +'\n' - if (workingDirectory != null && workingDirectory != "") out.print 'cd ' + workingDirectory +'\n' - if (preJobCommands != null) for(pjc in preJobCommands) out.print pjc +'\n' - if (jobSubmitterCommand != null && jobSubmitterCommand != "") out.print jobSubmitterCommand + ' ' - if (executablePath != null && executablePath != "") out.print executablePath + ' ' - if (inputs != null) for(input in inputs) out.print input + ' ' - out.print '\n' - if (postJobCommands != null) for(pjc in postJobCommands) out.print pjc +'\n' -%> http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/server/src/main/resources/UGE_Groovy.template ---------------------------------------------------------------------- diff --git a/modules/configuration/server/src/main/resources/UGE_Groovy.template b/modules/configuration/server/src/main/resources/UGE_Groovy.template deleted file mode 100644 index df454dd..0000000 --- a/modules/configuration/server/src/main/resources/UGE_Groovy.template +++ /dev/null @@ -1,28 +0,0 @@ -#!${shellName} -# Grid Engine batch job script built by Apache Airavata - -<% - if(shellName != null && shellName != "") out.print '#$ -S ' + shellName + '\n' - if (queueName != null && queueName != "") out.print '#$ -q ' + queueName + '\n' - if (jobName != null && jobName != "") out.print '#$ -N ' + jobName + '\n' - if (mailAddress != null && mailAddress != "") out.print '#$ -M ' + mailAddress + '\n' - if (accountString != null && accountString != "") out.print '#$ -A ' + accountString + '\n' - if (maxWallTime != null && maxWallTime != "") out.print '#$ -l h_rt=' + maxWallTime + '\n' - if (standardOutFile != null && standardOutFile != "") out.print '#$ -o ' + standardOutFile + '\n' - if (standardErrorFile != null && standardErrorFile != "") out.print '#$ -e ' + standardErrorFile + '\n' - if (nodes != null && nodes != "" && processPerNode != null && processPerNode != "") - out.print '#$ -pe ' + processPerNode + 'way' + (12 * nodes) -%> -#\$ -V -#\$ -m beas - -<% if (exports != null) for(com in exports) out.print 'export ' + com +'\n' - if (moduleCommands != null) for(mc in moduleCommands) out.print mc +'\n' - if (workingDirectory != null && workingDirectory != "") out.print 'cd ' + workingDirectory +'\n' - if (preJobCommands != null) for(pjc in preJobCommands) out.print pjc +'\n' - if (jobSubmitterCommand != null && jobSubmitterCommand != "") out.print jobSubmitterCommand + ' ' - if (executablePath != null && executablePath != "") out.print executablePath + ' ' - if (inputs != null) for(input in inputs) out.print input + ' ' - out.print '\n' - if (postJobCommands != null) for(pjc in postJobCommands) out.print pjc +'\n' -%> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/server/src/main/resources/airavata-default-xacml-policy.xml ---------------------------------------------------------------------- diff --git a/modules/configuration/server/src/main/resources/airavata-default-xacml-policy.xml b/modules/configuration/server/src/main/resources/airavata-default-xacml-policy.xml deleted file mode 100644 index 58730c9..0000000 --- a/modules/configuration/server/src/main/resources/airavata-default-xacml-policy.xml +++ /dev/null @@ -1,197 +0,0 @@ -<Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" PolicyId="airavata-default-xacml-policy" - RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides" Version="1.0"> - <Target/> - <Rule Effect="Permit" RuleId="admin-permit"> - <Target> - <AnyOf> - <AllOf> - <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"> - <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">/airavata/*</AttributeValue> - <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" - Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action" - DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"/> - </Match> - </AllOf> - </AnyOf> - </Target> - <Condition> - <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-is-in"> - <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">admin</AttributeValue> - <AttributeDesignator AttributeId="http://wso2.org/claims/role" - Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" - DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"/> - </Apply> - </Condition> - </Rule> - <Rule Effect="Permit" RuleId="admin-read-only-permit"> - <Target> - <AnyOf> - <AllOf> - <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"> - <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">^(?:(?! -/airavata/getAllGateways| -/airavata/getGateway| -/airavata/getSSHPubKey| -/airavata/getAllGatewaySSHPubKeys| -/airavata/getAllGatewayPWDCredentials| -/airavata/getApplicationModule| -/airavata/getAllAppModules| -/airavata/getApplicationDeployment| -/airavata/getAllApplicationDeployments| -/airavata/getAppModuleDeployedResources| -/airavata/getStorageResource| -/airavata/getAllStorageResourceNames| -/airavata/getSCPDataMovement| -/airavata/getUnicoreDataMovement| -/airavata/getGridFTPDataMovement| -/airavata/getResourceJobManager| -/airavata/deleteResourceJobManager| -/airavata/getGatewayResourceProfile| -/airavata/getGatewayComputeResourcePreference| -/airavata/getGatewayStoragePreference| -/airavata/getAllGatewayComputeResourcePreferences| -/airavata/getAllGatewayStoragePreferences| -/airavata/getAllGatewayResourceProfiles| -/airavata/getAPIVersion| -/airavata/getNotification| -/airavata/getAllNotifications| -/airavata/createProject| -/airavata/updateProject| -/airavata/getProject| -/airavata/deleteProject| -/airavata/getUserProjects| -/airavata/searchProjects| -/airavata/searchExperiments| -/airavata/getExperimentStatistics| -/airavata/getExperimentsInProject| -/airavata/getUserExperiments| -/airavata/createExperiment| -/airavata/deleteExperiment| -/airavata/getExperiment| -/airavata/getExperimentByAdmin| -/airavata/getDetailedExperimentTree| -/airavata/updateExperiment| -/airavata/updateExperimentConfiguration| -/airavata/updateResourceScheduleing| -/airavata/validateExperiment| -/airavata/launchExperiment| -/airavata/getExperimentStatus| -/airavata/getExperimentOutputs| -/airavata/getIntermediateOutputs| -/airavata/getJobStatuses| -/airavata/getJobDetails| -/airavata/cloneExperiment| -/airavata/cloneExperimentByAdmin| -/airavata/terminateExperiment| -/airavata/getApplicationInterface| -/airavata/getAllApplicationInterfaceNames| -/airavata/getAllApplicationInterfaces| -/airavata/getApplicationInputs| -/airavata/getApplicationOutputs| -/airavata/getAvailableAppInterfaceComputeResources| -/airavata/getComputeResource| -/airavata/getAllComputeResourceNames| -/airavata/getWorkflow| -/airavata/getWorkflowTemplateId| -/airavata/isWorkflowExistWithName| -/airavata/getAllUsersInGateway| -/airavata/shareResourceWithUsers| -/airavata/revokeSharingOfResourceFromUsers| -/airavata/getAllAccessibleUsers| -/airavata/registerDataProduct| -/airavata/getDataProduct| -/airavata/registerReplicaLocation| -/airavata/getParentDataProduct| -/airavata/getChildDataProducts).)*$\r?\n? -</AttributeValue> - <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" - Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action" - DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"/> - </Match> - </AllOf> - </AnyOf> - </Target> - <Condition> - <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-is-in"> - <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">admin-read-only</AttributeValue> - <AttributeDesignator AttributeId="http://wso2.org/claims/role" - Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" - DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"/> - </Apply> - </Condition> - </Rule> - <Rule Effect="Permit" RuleId="user-permit"> - <Target> - <AnyOf> - <AllOf> - <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"> - <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">^(?:(?! -/airavata/getAPIVersion| -/airavata/getAllGateways| -/airavata/getGateway| -/airavata/getNotification| -/airavata/getAllNotifications| -/airavata/createProject| -/airavata/updateProject| -/airavata/getProject| -/airavata/deleteProject| -/airavata/getUserProjects| -/airavata/searchsearchProjects| -/airavata/searchExperiments| -/airavata/getExperimentsInProject| -/airavata/getUserExperiments| -/airavata/createExperiment| -/airavata/deleteExperiment| -/airavata/getExperiment| -/airavata/updateExperiment| -/airavata/updateExperimentConfiguration| -/airavata/updateResourceScheduleing| -/airavata/validateExperiment| -/airavata/launchExperiment| -/airavata/getExperimentStatus| -/airavata/getExperimentOutputs| -/airavata/getIntermediateOutputs| -/airavata/getJobStatuses| -/airavata/getJobDetails| -/airavata/cloneExperiment| -/airavata/terminateExperiment| -/airavata/getApplicationInterface| -/airavata/getAllApplicationInterfaceNames| -/airavata/getAllApplicationInterfaces| -/airavata/getApplicationInputs| -/airavata/getApplicationOutputs| -/airavata/getAvailableAppInterfaceComputeResources| -/airavata/getComputeResource| -/airavata/getAllComputeResourceNames| -/airavata/getWorkflow| -/airavata/getWorkflowTemplateId| -/airavata/isWorkflowExistWithName| -/airavata/getAllUsersInGateway| -/airavata/shareResourceWithUsers| -/airavata/revokeSharingOfResourceFromUsers| -/airavata/getAllAccessibleUsers| -/airavata/registerDataProduct| -/airavata/getDataProduct| -/airavata/registerReplicaLocation| -/airavata/getParentDataProduct| -/airavata/getChildDataProducts).)*$\r?\n? -</AttributeValue> - <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" - Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action" - DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"/> - </Match> - </AllOf> - </AnyOf> - </Target> - <Condition> - <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-is-in"> - <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">gateway-user</AttributeValue> - <AttributeDesignator AttributeId="http://wso2.org/claims/role" - Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" - DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"/> - </Apply> - </Condition> - </Rule> - <Rule Effect="Deny" RuleId="deny-rule"/> -</Policy> - http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/server/src/main/resources/airavata-server.properties ---------------------------------------------------------------------- diff --git a/modules/configuration/server/src/main/resources/airavata-server.properties b/modules/configuration/server/src/main/resources/airavata-server.properties deleted file mode 100644 index ab19a12..0000000 --- a/modules/configuration/server/src/main/resources/airavata-server.properties +++ /dev/null @@ -1,327 +0,0 @@ -# -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -########################################################################### -# -# This properties file provides configuration for all Airavata Services: -# API Server, Registry, Workflow Interpreter, GFac, Orchestrator -# -########################################################################### - -########################################################################### -# API Server Registry Configuration -########################################################################### - -#for derby [AiravataJPARegistry] -registry.jdbc.driver=org.apache.derby.jdbc.ClientDriver -registry.jdbc.url=jdbc:derby://localhost:1527/experiment_catalog;create=true;user=airavata;password=airavata -# MySql database configuration -#registry.jdbc.driver=com.mysql.jdbc.Driver -#registry.jdbc.url=jdbc:mysql://localhost:3306/experiment_catalog -registry.jdbc.user=airavata -registry.jdbc.password=airavata -#FIXME: Probably the following property should be removed. -start.derby.server.mode=true -validationQuery=SELECT 1 from CONFIGURATION -cache.enable=true -jpa.cache.size=5000 -#jpa.connection.properties=MaxActive=10,MaxIdle=5,MinIdle=2,MaxWait=60000,testWhileIdle=true,testOnBorrow=true -enable.sharing=true - -# Properties for default user mode -default.registry.user=admin -default.registry.password=admin -default.registry.password.hash.method=SHA -default.registry.gateway=php_reference_gateway -super.tenant.gatewayId=php_reference_gateway - -# Properties for cluster status monitoring -# cluster status monitoring job repeat time in seconds -cluster.status.monitoring.repeat.time=18000 - -########################################################################### -# Application Catalog DB Configuration -########################################################################### -#for derby [AiravataJPARegistry] -appcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver -appcatalog.jdbc.url=jdbc:derby://localhost:1527/app_catalog;create=true;user=airavata;password=airavata -# MySql database configuration -#appcatalog.jdbc.driver=com.mysql.jdbc.Driver -#appcatalog.jdbc.url=jdbc:mysql://localhost:3306/app_catalog -appcatalog.jdbc.user=airavata -appcatalog.jdbc.password=airavata -appcatalog.validationQuery=SELECT 1 from CONFIGURATION - -########################################################################## -# Replica Catalog DB Configuration -########################################################################### -#for derby [AiravataJPARegistry] -replicacatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver -replicacatalog.jdbc.url=jdbc:derby://localhost:1527/replica_catalog;create=true;user=airavata;password=airavata -# MySql database configuration -#replicacatalog.jdbc.driver=com.mysql.jdbc.Driver -#replicacatalog.jdbc.url=jdbc:mysql://localhost:3306/replica_catalog -replicacatalog.jdbc.user=airavata -replicacatalog.jdbc.password=airavata -replicacatalog.validationQuery=SELECT 1 from CONFIGURATION - -########################################################################### -# Workflow Catalog DB Configuration -########################################################################### -#for derby [AiravataJPARegistry] -workflowcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver -workflowcatalog.jdbc.url=jdbc:derby://localhost:1527/workflow_catalog;create=true;user=airavata;password=airavata -# MySql database configuration -#workflowcatalog.jdbc.driver=com.mysql.jdbc.Driver -#workflowcatalog.jdbc.url=jdbc:mysql://localhost:3306/workflow_catalog -workflowcatalog.jdbc.user=airavata -workflowcatalog.jdbc.password=airavata -workflowcatalog.validationQuery=SELECT 1 from CONFIGURATION - -########################################################################### -# Sharing Catalog DB Configuration -########################################################################### -#for derby [AiravataJPARegistry] -sharingcatalog.jdbc.driver=org.apache.derby.jdbc.ClientDriver -sharingcatalog.jdbc.url=jdbc:derby://localhost:1527/sharing_catalog;create=true;user=airavata;password=airavata -# MySql database configuration -#sharingcatalog.jdbc.driver=com.mysql.jdbc.Driver -#sharingcatalog.jdbc.url=jdbc:mysql://localhost:3306/sharing_catalog -sharingcatalog.jdbc.user=airavata -sharingcatalog.jdbc.password=airavata -sharingcatalog.validationQuery=SELECT 1 from CONFIGURATION - -########################################################################### -# Sharing Registry Server Configuration -########################################################################### -sharing.registry.server.host=localhost -sharing.registry.server.port=7878 - -########################################################################### -# User Profile MongoDB Configuration -########################################################################### -userprofile.mongodb.host=localhost -userprofile.mongodb.port=27017 - - -########################################################################### -# Server module Configuration -########################################################################### -#credential store server should be started before API server -servers=credentialstore,apiserver,orchestrator,gfac - - -########################################################################### -# API Server Configurations -########################################################################### -apiserver=org.apache.airavata.api.server.AiravataAPIServer -apiserver.name=apiserver-node0 -apiserver.host=localhost -apiserver.port=8930 -apiserver.min.threads=50 - -########################################################################### -# API Server SSL Configurations -########################################################################### -apiserver.tls.enabled=false -apiserver.keystore=/path/to/airavata.jks -apiserver.keystore.password=airavata - -########################################################################### -# Orchestrator Server Configurations -########################################################################### -orchestrator=org.apache.airavata.orchestrator.server.OrchestratorServer -orchestrator.server.name=orchestrator-node0 -orchestrator.server.host=localhost -orchestrator.server.port=8940 -orchestrator.server.min.threads=50 -job.validators=org.apache.airavata.orchestrator.core.validator.impl.BatchQueueValidator,org.apache.airavata.orchestrator.core.validator.impl.ExperimentStatusValidator -submitter.interval=10000 -threadpool.size=10 -start.submitter=true -embedded.mode=true -enable.validation=true - - -########################################################################### -# GFac Server Configurations -########################################################################### -gfac=org.apache.airavata.gfac.server.GfacServer -gfac.server.name=gfac-node0 -gfac.server.host=localhost -gfac.server.port=8950 -gfac.thread.pool.size=50 -host.scheduler=org.apache.airavata.gfac.impl.DefaultHostScheduler - - -########################################################################### -# Registry Server Configurations -########################################################################### -regserver=org.apache.airavata.registry.api.service.RegistryAPIServer -regserver.server.name=regserver-node0 -regserver.server.host=localhost -regserver.server.port=8970 -regserver.server.min.threads=50 - - -########################################################################### -# Airavata Workflow Interpreter Configurations -########################################################################### -workflowserver=org.apache.airavata.api.server.WorkflowServer -enactment.thread.pool.size=10 - -#to define custom workflow parser user following property -#workflow.parser=org.apache.airavata.workflow.core.parser.AiravataWorkflowBuilder - - - -########################################################################### -# Job Scheduler can send informative email messages to you about the status of your job. -# Specify a string which consists of either the single character "n" (no mail), or one or more -# of the characters "a" (send mail when job is aborted), "b" (send mail when job begins), -# and "e" (send mail when job terminates). The default is "a" if not specified. -########################################################################### - -job.notification.enable=true -#Provide comma separated email ids as a string if more than one -job.notification.emailids= -job.notification.flags=abe - -########################################################################### -# Credential Store module Configuration -########################################################################### -credential.store.keystore.url=/Users/chathuri/dev/airavata/credential-store/oa4mp/airavata_sym.jks -credential.store.keystore.alias=airavata -credential.store.keystore.password=airavata -credential.store.jdbc.url=jdbc:derby://localhost:1527/credential-store;create=true;user=airavata;password=airavata -credential.store.jdbc.user=airavata -credential.store.jdbc.password=airavata -credential.store.jdbc.driver=org.apache.derby.jdbc.ClientDriver -credential.store.jdbc.validationQuery=SELECT 1 from CONFIGURATION -credential.store.server.host=localhost -credential.store.server.port=8960 -credentialstore=org.apache.airavata.credential.store.server.CredentialStoreServer - -# these properties used by credential store email notifications -email.server=smtp.googlemail.com -email.server.port=465 -email.user=airavata -email.password=xxx -email.ssl=true [email protected] - -# SSH PKI key pair or ssh password can be used SSH based sshKeyAuthentication is used. -# if user specify both password sshKeyAuthentication gets the higher preference - -################# ---------- For ssh key pair sshKeyAuthentication ------------------- ################ -#ssh.public.key=/path to public key for ssh -#ssh.private.key=/path to private key file for ssh -#ssh.keypass=passphrase for the private key -#ssh.username=username for ssh connection -## If you set "yes" for ssh.strict.hostKey.checking, then you must provide known hosts file path -#ssh.strict.hostKey.checking=yes/no -#ssh.known.hosts.file=/path to known hosts file -### Incase of password sshKeyAuthentication. -#ssh.password=Password for ssh connection - -################ ---------- BES Properties ------------------- ############### -#bes.ca.cert.path=<location>/certificates/cacert.pem -#bes.ca.key.path=<location>/certificates/cakey.pem -#bes.ca.key.pass=passphrase - -########################################################################### -# Monitoring module Configuration -########################################################################### - -#This will be the primary monitoring tool which runs in airavata, in future there will be multiple monitoring -#mechanisms and one would be able to start a monitor -monitors=org.apache.airavata.gfac.monitor.impl.pull.qstat.QstatMonitor,org.apache.airavata.gfac.monitor.impl.LocalJobMonitor - -#These properties will used to enable email base monitoring -email.based.monitor.host=imap.gmail.com [email protected] -email.based.monitor.password=changeme -email.based.monitor.folder.name=INBOX -# either imaps or pop3 -email.based.monitor.store.protocol=imaps -#These property will be used to query the email server periodically. value in milliseconds(ms). -email.based.monitoring.period=10000 - -########################################################################### -# AMQP Notification Configuration -########################################################################### -#for simple scenarios we can use the guest user -rabbitmq.broker.url=amqp://localhost:5672 -#for production scenarios, give url as amqp://userName:password@hostName:portNumber/virtualHost, create user, virtualhost -# and give permissions, refer: http://blog.dtzq.com/2012/06/rabbitmq-users-and-virtual-hosts.html -#rabbitmq.broker.url=amqp://airavata:airavata@localhost:5672/messaging -rabbitmq.status.exchange.name=status_exchange -rabbitmq.process.exchange.name=process_exchange -rabbitmq.experiment.exchange.name=experiment_exchange -durable.queue=false -prefetch.count=200 -process.launch.queue.name=process.launch.queue -experiment.launch.queue.name=experiment.launch.queue - -########################################################################### -# Zookeeper Server Configuration -########################################################################### -embedded.zk=true -zookeeper.server.connection=localhost:2181 -zookeeper.timeout=30000 - -########################################################################### -# Aurora Scheduler Configuration -########################################################################### -aurora.scheduler.hosts=sgg-mesos-master-1:8081,sgg-mesos-master-2:8081,sgg-mesos-master-3:8081 -aurora.scheduler.timeoutms=1000 -aurora.executor.name=AuroraExecutor -mesos.cluster.name=example -aurora.executor.config.template.filename=executor-config-template.json - -######################################################################## -## API Security Configuration -######################################################################## -api.secured=false -security.manager.class=org.apache.airavata.api.server.security.DefaultAiravataSecurityManager -### TLS related configuration #### -TLS.enabled=true -TLS.api.server.port=9930 -TLS.client.timeout=10000 -#### keystore configuration #### -keystore.path=airavata.jks -keystore.password=airavata -#### trust store configuration #### -trust.store=client_truststore.jks -trust.store.password=airavata -#### remote authorization server url #### -remote.oauth.authorization.server=https://idp.scigap.org:9443/services/ -#### xacml based authorization policy #### -authorization.policy=airavata-default-xacml-policy -#### authorization cache related configuration #### -authz.cache.enabled=true -authz.cache.manager.class=org.apache.airavata.api.server.security.authzcache.DefaultAuthzCacheManager -in.memory.cache.size=1000 - -# Kafka Logging related configuration -isRunningOnAws=false -kafka.broker.list=localhost:9092 -kafka.topic.prefix=local -enable.kafka.logging=false http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/server/src/main/resources/airavata.jks ---------------------------------------------------------------------- diff --git a/modules/configuration/server/src/main/resources/airavata.jks b/modules/configuration/server/src/main/resources/airavata.jks deleted file mode 100644 index e0e46e2..0000000 Binary files a/modules/configuration/server/src/main/resources/airavata.jks and /dev/null differ http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/server/src/main/resources/airavata.pem ---------------------------------------------------------------------- diff --git a/modules/configuration/server/src/main/resources/airavata.pem b/modules/configuration/server/src/main/resources/airavata.pem deleted file mode 100644 index 242d955..0000000 Binary files a/modules/configuration/server/src/main/resources/airavata.pem and /dev/null differ http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/configuration/server/src/main/resources/client_truststore.jks ---------------------------------------------------------------------- diff --git a/modules/configuration/server/src/main/resources/client_truststore.jks b/modules/configuration/server/src/main/resources/client_truststore.jks deleted file mode 100644 index 21e4e62..0000000 Binary files a/modules/configuration/server/src/main/resources/client_truststore.jks and /dev/null differ
