public class EmbeddedServer extends Object
Modifier and Type | Class and Description |
---|---|
class |
EmbeddedServer.DeployProp
JSONファイル読み込み用Class.
|
Constructor and Description |
---|
EmbeddedServer()
コンストラクタ.
|
EmbeddedServer(String[] args)
コンストラクタ.
|
Modifier and Type | Method and Description |
---|---|
protected void |
cleanupDir(File pathRoot)
フォルダ削除.
|
String[] |
getArgs()
引数取得.
|
EmbeddedServer.DeployProp |
loadJsonfile(String file)
起動設定ファイル(JSON)読み込み.
|
static void |
main(String[] args)
起動用Main
|
void |
setArgs(String[] args)
起動引数を設定.
|
void |
start()
サービス開始処理.
|
protected ClassLoader |
UnpackWar(String pathRoot,
String war)
Warを展開する.
|
public EmbeddedServer()
public EmbeddedServer(String[] args)
args
- 引数.public static void main(String[] args)
args
- 起動時の引数protected void cleanupDir(File pathRoot)
pathRoot
- 削除するフォルダprotected final ClassLoader UnpackWar(String pathRoot, String war)
pathRoot
- 展開先のパス.war
- WARファイルへのパス.public String[] getArgs()
public EmbeddedServer.DeployProp loadJsonfile(String file)
file
- 読み込むファイル(JSON)public void setArgs(String[] args)
args
- 起動引数.public void start()
Copyright (C) 2014 Information Analysis Laboratory, NICT
RaSC is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version.
RaSC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see (http://www.gnu.org/licenses/) .