Package com.levigo.jadice.server.multivm
Class MVMPoolManager
- java.lang.Object
-
- com.levigo.jadice.server.multivm.MVMPoolManager
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.jmx.export.naming.SelfNaming
@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
Deprecated.The multi-VM mode will be removed with the next major releaseThis class manages a set (team) of jadice server instances in a multi-VM instance pool. Instances are monitored for having died or become locked up.
-
-
Constructor Summary
Constructors Constructor Description MVMPoolManager()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getVMCount
@ManagedAttribute(description="The effective number of VMs to use") public int getVMCount()
Deprecated.
-
getPerProcessorVMCount
@ManagedAttribute(description="The per-processor number of VMs to use") public int getPerProcessorVMCount()
Deprecated.- Returns:
- the perProcessorVMCount
-
setPerProcessorVMCount
public void setPerProcessorVMCount(int perProcessorVMCount)
Deprecated.- Parameters:
perProcessorVMCount
- the perProcessorVMCount to set
-
getFixedVMCount
@ManagedAttribute(description="The fixed number of VMs to use") public int getFixedVMCount()
Deprecated.- Returns:
- the fixedVMCount
-
setFixedVMCount
public void setFixedVMCount(int fixedVMCount)
Deprecated.- Parameters:
fixedVMCount
- the fixedVMCount to set
-
isRunning
@ManagedAttribute(description="Flag indicating whether the pool is running") public boolean isRunning()
Deprecated.
-
afterPropertiesSet
public void afterPropertiesSet() throws MalformedObjectNameException
Deprecated.- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
MalformedObjectNameException
-
destroy
public void destroy()
Deprecated.- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-
getInstanceJVMOptions
@ManagedAttribute(description="Additional arguments to apply to each instance JVM startup") public List<String> getInstanceJVMOptions()
Deprecated.- Returns:
- the instanceJVMOptions
-
setInstanceJVMOptions
public void setInstanceJVMOptions(List<String> instanceJVMOptions)
Deprecated.- Parameters:
instanceJVMOptions
- the instanceJVMOptions to set
-
getInstanceHeartbeatTimeout
public int getInstanceHeartbeatTimeout()
Deprecated.- Returns:
- the instanceHeartbeatTimeout
-
setInstanceHeartbeatTimeout
public void setInstanceHeartbeatTimeout(int instanceHeartbeatTimeout)
Deprecated.- Parameters:
instanceHeartbeatTimeout
- the instanceHeartbeatTimeout to set
-
getObjectName
public ObjectName getObjectName() throws MalformedObjectNameException
Deprecated.- Specified by:
getObjectName
in interfaceorg.springframework.jmx.export.naming.SelfNaming
- Throws:
MalformedObjectNameException
-
getJMXContext
public static JMXContext getJMXContext()
Deprecated.
-
setJMXContext
public void setJMXContext(JMXContext ctx)
Deprecated.
-
-