Package ubic.gemma.web.util
Class InternalStaticAssetServer
- java.lang.Object
-
- ubic.gemma.web.util.InternalStaticAssetServer
-
- All Implemented Interfaces:
org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
,StaticAssetServer
public class InternalStaticAssetServer extends Object implements StaticAssetServer, org.springframework.context.SmartLifecycle
-
-
Constructor Summary
Constructors Constructor Description InternalStaticAssetServer(Path npmExe, Path prefix, String baseUrl, boolean autoStartup, Path logFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseUrl()
String
getLaunchInstruction()
Obtain launch instructions if the server is not running.int
getPhase()
boolean
isAlive()
boolean
isAutoStartup()
boolean
isRunning()
void
start()
void
stop()
void
stop(Runnable callback)
-
-
-
Method Detail
-
getBaseUrl
public String getBaseUrl()
- Specified by:
getBaseUrl
in interfaceStaticAssetServer
-
start
public void start()
- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-
isAlive
public boolean isAlive()
- Specified by:
isAlive
in interfaceStaticAssetServer
-
getLaunchInstruction
public String getLaunchInstruction()
Description copied from interface:StaticAssetServer
Obtain launch instructions if the server is not running.- Specified by:
getLaunchInstruction
in interfaceStaticAssetServer
-
isAutoStartup
public boolean isAutoStartup()
- Specified by:
isAutoStartup
in interfaceorg.springframework.context.SmartLifecycle
-
stop
public void stop(Runnable callback)
- Specified by:
stop
in interfaceorg.springframework.context.SmartLifecycle
-
getPhase
public int getPhase()
- Specified by:
getPhase
in interfaceorg.springframework.context.Phased
-
-