@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()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Deprecated.
|
void |
destroy()
Deprecated.
|
int |
getFixedVMCount()
Deprecated.
|
int |
getInstanceHeartbeatTimeout()
Deprecated.
|
List<String> |
getInstanceJVMOptions()
Deprecated.
|
static JMXContext |
getJMXContext()
Deprecated.
|
ObjectName |
getObjectName()
Deprecated.
|
int |
getPerProcessorVMCount()
Deprecated.
|
int |
getVMCount()
Deprecated.
|
boolean |
isRunning()
Deprecated.
|
void |
setFixedVMCount(int fixedVMCount)
Deprecated.
|
void |
setInstanceHeartbeatTimeout(int instanceHeartbeatTimeout)
Deprecated.
|
void |
setInstanceJVMOptions(List<String> instanceJVMOptions)
Deprecated.
|
void |
setJMXContext(JMXContext ctx)
Deprecated.
|
void |
setPerProcessorVMCount(int perProcessorVMCount)
Deprecated.
|
@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 © 2018 levigo holding gmbh. All rights reserved.