@ManagedResource(objectName="com.levigo.jadice.server:name=MVMPoolManager", description="A managed pool of jadice server VM instances") public class MVMPoolManager extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.jmx.export.naming.SelfNaming
Constructor and Description |
---|
MVMPoolManager() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
int |
getFixedVMCount() |
int |
getInstanceHeartbeatTimeout() |
List<String> |
getInstanceJVMOptions() |
static JMXContext |
getJMXContext() |
ObjectName |
getObjectName() |
int |
getPerProcessorVMCount() |
int |
getVMCount() |
boolean |
isRunning() |
void |
setFixedVMCount(int fixedVMCount) |
void |
setInstanceHeartbeatTimeout(int instanceHeartbeatTimeout) |
void |
setInstanceJVMOptions(List<String> instanceJVMOptions) |
void |
setJMXContext(JMXContext ctx) |
void |
setPerProcessorVMCount(int perProcessorVMCount) |
@ManagedAttribute(description="The effective number of VMs to use") public int getVMCount()
@ManagedAttribute(description="The per-processor number of VMs to use") public int getPerProcessorVMCount()
public void setPerProcessorVMCount(int perProcessorVMCount)
perProcessorVMCount
- the perProcessorVMCount to set@ManagedAttribute(description="The fixed number of VMs to use") public int getFixedVMCount()
public void setFixedVMCount(int fixedVMCount)
fixedVMCount
- the fixedVMCount to set@ManagedAttribute(description="Flag indicating whether the pool is running") public boolean isRunning()
public void afterPropertiesSet() throws MalformedObjectNameException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
MalformedObjectNameException
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
@ManagedAttribute(description="Additional arguments to apply to each instance JVM startup") public List<String> getInstanceJVMOptions()
public void setInstanceJVMOptions(List<String> instanceJVMOptions)
instanceJVMOptions
- the instanceJVMOptions to setpublic int getInstanceHeartbeatTimeout()
public void setInstanceHeartbeatTimeout(int instanceHeartbeatTimeout)
instanceHeartbeatTimeout
- the instanceHeartbeatTimeout to setpublic ObjectName getObjectName() throws MalformedObjectNameException
getObjectName
in interface org.springframework.jmx.export.naming.SelfNaming
MalformedObjectNameException
public static JMXContext getJMXContext()
public void setJMXContext(JMXContext ctx)
Copyright © 2017 levigo holding gmbh. All rights reserved.