2c97e64a8f0cf5e5139dea0d4f31e59912d5f1cb
[vfc/nfvo/wfengine.git] / winery / org.eclipse.winery.repository / src / main / java / org / eclipse / winery / repository / runtimeintegration / OpenTOSCAContainerConnection.java
1 /*******************************************************************************
2  * Copyright (c) 2013 University of Stuttgart.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * and the Apache License 2.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     Oliver Kopp - initial API and implementation
11  *******************************************************************************/
12 package org.eclipse.winery.repository.runtimeintegration;
13
14 import org.eclipse.winery.repository.Utils;
15
16 public class OpenTOSCAContainerConnection {
17         
18         /**
19          * Determines whether the OpenTOSCA container is locally available
20          * 
21          * We currently check for localhost only as Winery currently does not allow
22          * for configuring an URL for the container
23          */
24         public static boolean isContainerLocallyAvailable() {
25                 // the string determining the location of the OpenTOSCA container admin resource
26                 String adminPath = "http://localhost:8080/admin/";
27                 return Utils.isResourceAvailable(adminPath);
28         }
29         
30 }