public class DeployerControl extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
deployerName |
protected ExecutorService |
executor |
protected static com.google.inject.Injector |
injector |
protected List<MergeableProperties> |
launchPropertiesList |
protected static Logger |
log |
static ObjectName |
OBJECT_NAME |
protected org.hyperic.sigar.SigarProxy |
sigar |
| Constructor and Description |
|---|
DeployerControl() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Long> |
findChildPids() |
protected List<Long> |
findChildPids(String deployerName) |
protected long |
findOldDeployerPid(String deployerName) |
protected List<Long> |
findOldDeployerPids() |
static JMXConnector |
getJMXConnector(long pid) |
protected List<Long> |
getPidsExcludingPids(String query,
long mypid) |
protected MergeableProperties |
getURLProperties(String url) |
protected void |
killWithQuery(String query,
long termTimeout,
long mypid) |
protected void |
populateProperties(String[] args) |
static void |
setupLogging() |
void |
stop() |
void |
stopOld(String[] args) |
protected void |
usage(String error) |
protected static final Logger log
@Inject protected ExecutorService executor
@Inject protected org.hyperic.sigar.SigarProxy sigar
protected final List<MergeableProperties> launchPropertiesList
protected String deployerName
protected static final com.google.inject.Injector injector
public static final ObjectName OBJECT_NAME
public void stopOld(String[] args)
protected List<Long> getPidsExcludingPids(String query, long mypid) throws org.hyperic.sigar.SigarException
org.hyperic.sigar.SigarExceptionprotected void killWithQuery(String query, long termTimeout, long mypid) throws org.hyperic.sigar.SigarException, IOException, InterruptedException
org.hyperic.sigar.SigarExceptionIOExceptionInterruptedExceptionpublic static JMXConnector getJMXConnector(long pid)
protected void usage(String error)
protected MergeableProperties getURLProperties(String url)
protected void populateProperties(String[] args)
protected List<Long> findChildPids() throws org.hyperic.sigar.SigarException
org.hyperic.sigar.SigarExceptionprotected List<Long> findChildPids(String deployerName) throws org.hyperic.sigar.SigarException
org.hyperic.sigar.SigarExceptionprotected List<Long> findOldDeployerPids() throws org.hyperic.sigar.SigarException
org.hyperic.sigar.SigarExceptionprotected long findOldDeployerPid(String deployerName) throws org.hyperic.sigar.SigarException
org.hyperic.sigar.SigarExceptionpublic static void setupLogging()
public void stop()
Copyright © 2015. All rights reserved.