Package org.terracotta.angela.common
Class TerracottaServerInstance
- java.lang.Object
-
- org.terracotta.angela.common.TerracottaServerInstance
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class TerracottaServerInstance extends Object implements Closeable
Terracotta server instance- Author:
- Aurelien Broszniowski
-
-
Constructor Summary
Constructors Constructor Description TerracottaServerInstance(TerracottaServer terracottaServer, File kitDir, File workingDir, License license, Distribution distribution, Topology topology, PortAllocator portAllocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ToolExecutionResultcmd(String terracottaCommand, String[] arguments)voidcreate(TerracottaCommandLineEnvironment env, Map<String,String> envOverrides, List<String> startUpArgs, Duration inactivityKillerDelay)voiddisrupt(Collection<TerracottaServer> targets)DistributiongetDistribution()FilegetKitDir()FilegetLicenseFileLocation()Map<ServerSymbolicName,Integer>getProxiedPorts()TerracottaServerStategetTerracottaServerState()FilegetWorkingDir()ToolExecutionResultjcmd(TerracottaCommandLineEnvironment env, String... arguments)voidstop()voidundisrupt(Collection<TerracottaServer> targets)voidwaitForState(Set<TerracottaServerState> terracottaServerStates)
-
-
-
Constructor Detail
-
TerracottaServerInstance
public TerracottaServerInstance(TerracottaServer terracottaServer, File kitDir, File workingDir, License license, Distribution distribution, Topology topology, PortAllocator portAllocator)
-
-
Method Detail
-
getProxiedPorts
public Map<ServerSymbolicName,Integer> getProxiedPorts()
-
getDistribution
public Distribution getDistribution()
-
create
public void create(TerracottaCommandLineEnvironment env, Map<String,String> envOverrides, List<String> startUpArgs, Duration inactivityKillerDelay)
-
disrupt
public void disrupt(Collection<TerracottaServer> targets)
-
undisrupt
public void undisrupt(Collection<TerracottaServer> targets)
-
stop
public void stop()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
jcmd
public ToolExecutionResult jcmd(TerracottaCommandLineEnvironment env, String... arguments)
-
cmd
public ToolExecutionResult cmd(String terracottaCommand, String[] arguments)
-
waitForState
public void waitForState(Set<TerracottaServerState> terracottaServerStates)
-
getTerracottaServerState
public TerracottaServerState getTerracottaServerState()
-
getKitDir
public File getKitDir()
-
getWorkingDir
public File getWorkingDir()
-
getLicenseFileLocation
public File getLicenseFileLocation()
-
-