You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2019/09/09 19:17:43 UTC

[airavata-custos] 39/48: added a readme

This is an automated email from the ASF dual-hosted git repository.

smarru pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-custos.git

commit e59c4d8efb9ebfe2a2e74364b28d68b894126830
Author: Aarushi <aa...@gmail.com>
AuthorDate: Mon Sep 2 19:53:45 2019 -0400

    added a readme
---
 .../SharingRegistryServiceClientFactory.java       | 44 ----------------------
 custos-profile-service/README                      |  3 --
 custos-sharing-registry-service/README             |  3 ++
 3 files changed, 3 insertions(+), 47 deletions(-)

diff --git a/custos-client/src/main/java/org/apache/custos/client/sharing/service/SharingRegistryServiceClientFactory.java b/custos-client/src/main/java/org/apache/custos/client/sharing/service/SharingRegistryServiceClientFactory.java
deleted file mode 100644
index 3fc60a4..0000000
--- a/custos-client/src/main/java/org/apache/custos/client/sharing/service/SharingRegistryServiceClientFactory.java
+++ /dev/null
@@ -1,44 +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.custos.client.sharing.service;
-
-import org.apache.custos.sharing.registry.models.SharingRegistryException;
-import org.apache.custos.sharing.registry.service.cpi.SharingRegistryService;
-import org.apache.thrift.protocol.TBinaryProtocol;
-import org.apache.thrift.transport.TSocket;
-import org.apache.thrift.transport.TTransportException;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class SharingRegistryServiceClientFactory {
-    private final static Logger logger = LoggerFactory.getLogger(SharingRegistryServiceClientFactory.class);
-
-    public static SharingRegistryService.Client createSharingRegistryClient(String serverHost, int serverPort) throws SharingRegistryException {
-        try {
-            TSocket e = new TSocket(serverHost, serverPort);
-            e.open();
-            TBinaryProtocol protocol = new TBinaryProtocol(e);
-            return new SharingRegistryService.Client(protocol);
-        } catch (TTransportException var4) {
-            logger.error("failed to create sharing registry client", var4);
-            throw new SharingRegistryException();
-        }
-    }
-}
\ No newline at end of file
diff --git a/custos-profile-service/README b/custos-profile-service/README
deleted file mode 100644
index 9d83e76..0000000
--- a/custos-profile-service/README
+++ /dev/null
@@ -1,3 +0,0 @@
-Custos Profile Service
-
-The thrift files associated with Profile services are in thrift-interfaces/profile-service folder
diff --git a/custos-sharing-registry-service/README b/custos-sharing-registry-service/README
new file mode 100644
index 0000000..fa8e509
--- /dev/null
+++ b/custos-sharing-registry-service/README
@@ -0,0 +1,3 @@
+Custos Sharing Registry Service
+
+To start the service go to org.apache.custos.sharing.service.api and run Application.java