public class ProcessManagerService extends java.lang.Object implements ProcessManagerServiceMBean
| Constructor and Description |
|---|
ProcessManagerService() |
ProcessManagerService(java.io.File storageLocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindMBeanServer(javax.management.MBeanServer mbeanServer) |
protected ProcessController |
createController(int id,
ProcessConfig config,
java.io.File rootDir,
java.io.File installDir) |
protected Installation |
createInstallation(int id,
java.io.File rootDir,
ProcessConfig config) |
protected java.io.File |
createInstallDir(int id) |
protected int |
createNextId()
Returns the next process ID
|
protected void |
downloadContent(java.net.URL url,
java.io.File installDir) |
java.util.concurrent.Executor |
getExecutor() |
java.io.File |
getStorageLocation() |
void |
init() |
Installation |
install(InstallOptions options,
InstallTask postInstall)
Installs a process with an optional URL of the controller JSON
together with an optional install step
|
Installation |
installJar(InstallOptions parameters)
Installs an executable jar as a new managed process
|
protected Installation |
installViaScript(java.net.URL controllerUrl,
InstallTask installTask) |
com.google.common.collect.ImmutableMap<java.lang.Integer,Installation> |
listInstallationMap() |
com.google.common.collect.ImmutableList<Installation> |
listInstallations()
Returns the current installed processes which may or may not be running right now
|
protected ProcessConfig |
loadControllerJson(java.net.URL controllerJson) |
void |
registerMBeanServer(javax.management.MBeanServer mbeanServer) |
void |
setExecutor(java.util.concurrent.Executor executor) |
void |
setStorageLocation(java.io.File storageLocation) |
java.lang.String |
toString() |
void |
unbindMBeanServer(javax.management.MBeanServer mbeanServer) |
void |
unregisterMBeanServer(javax.management.MBeanServer mbeanServer) |
public ProcessManagerService()
throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameExceptionpublic ProcessManagerService(java.io.File storageLocation)
throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameExceptionpublic void bindMBeanServer(javax.management.MBeanServer mbeanServer)
public void unbindMBeanServer(javax.management.MBeanServer mbeanServer)
public void registerMBeanServer(javax.management.MBeanServer mbeanServer)
public void unregisterMBeanServer(javax.management.MBeanServer mbeanServer)
public void init()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic com.google.common.collect.ImmutableList<Installation> listInstallations()
ProcessManagerlistInstallations in interface ProcessManagerpublic com.google.common.collect.ImmutableMap<java.lang.Integer,Installation> listInstallationMap()
listInstallationMap in interface ProcessManagerpublic Installation install(InstallOptions options, InstallTask postInstall) throws java.lang.Exception
ProcessManagerinstall in interface ProcessManagerjava.lang.Exceptionpublic Installation installJar(InstallOptions parameters) throws java.lang.Exception
ProcessManagerinstallJar in interface ProcessManagerjava.lang.Exceptionpublic java.io.File getStorageLocation()
public void setStorageLocation(java.io.File storageLocation)
public java.util.concurrent.Executor getExecutor()
public void setExecutor(java.util.concurrent.Executor executor)
protected Installation installViaScript(java.net.URL controllerUrl, InstallTask installTask) throws java.lang.Exception
java.lang.Exceptionprotected void downloadContent(java.net.URL url,
java.io.File installDir)
throws java.io.IOException,
CommandFailedException
java.io.IOExceptionCommandFailedExceptionprotected ProcessConfig loadControllerJson(java.net.URL controllerJson) throws java.io.IOException
java.io.IOExceptionprotected int createNextId()
protected java.io.File createInstallDir(int id)
protected Installation createInstallation(int id, java.io.File rootDir, ProcessConfig config)
protected ProcessController createController(int id, ProcessConfig config, java.io.File rootDir, java.io.File installDir)
Copyright © 2014 Red Hat. All Rights Reserved.