-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CHE-457: add servers conf and env vars to model of machine config.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
- Loading branch information
Alexander Garagatyi
committed
Mar 11, 2016
1 parent
60e2c14
commit 1cc53f0
Showing
45 changed files
with
1,746 additions
and
602 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
core/che-core-api-model/src/main/java/org/eclipse/che/api/core/model/machine/ServerConf.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2012-2016 Codenvy, S.A. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Codenvy, S.A. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.che.api.core.model.machine; | ||
|
||
import org.eclipse.che.commons.annotation.Nullable; | ||
|
||
/** | ||
* Configuration of server that can be started inside of machine | ||
* | ||
* @author Alexander Garagatyi | ||
*/ | ||
public interface ServerConf { | ||
/** | ||
* Reference to this server. | ||
*/ | ||
@Nullable | ||
String getRef(); | ||
|
||
/** | ||
* Port used by server. | ||
* <p> | ||
* If udp transport protocol is used then port should include /udp.<br> | ||
* If tcp is used /tcp is not required.<br> | ||
* Example: | ||
* <ul> | ||
* <li>8080</li> | ||
* <li>8080/tcp</li> | ||
* <li>8080/udp</li> | ||
* </ul> | ||
*/ | ||
String getPort(); | ||
|
||
/** | ||
* Protocol for configuring preview url of this server. | ||
* <p> | ||
* Example: | ||
* <ul> | ||
* <li>http</li> | ||
* <li>https</li> | ||
* <li>tcp</li> | ||
* <li>udp</li> | ||
* <li>ws</li> | ||
* <li>wss</li> | ||
* </ul> | ||
*/ | ||
@Nullable | ||
String getProtocol(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.