Class Q2.QEntry
java.lang.Object
org.jpos.q2.Q2.QEntry
- Enclosing class:
Q2
-
Constructor Summary
ConstructorsConstructorDescriptionQEntry()Creates an empty entry; fields are populated as deployment progresses.QEntry(long deployed, ObjectInstance instance) Creates an entry pre-populated with a deploy timestamp and JMX instance. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the deploy timestamp.Returns the JMX registration for the deployed QBean.Returns the underlying QBean (or QPersist) instance.Returns theObjectNameof the deployed QBean.booleanReturns whether this QBean is configured for eager start.booleanisQBean()Returns whether the bound object implementsQBean.booleanReturns whether the bound object implementsQPersist.voidsetDeployed(long deployed) Updates the deploy timestamp.voidsetEagerStart(boolean eagerStart) Sets whether this QBean should start immediately on deploy.voidsetInstance(ObjectInstance instance) Sets the JMX registration for the deployed QBean.voidBinds the underlying QBean (or QPersist) instance.
-
Constructor Details
-
QEntry
public QEntry()Creates an empty entry; fields are populated as deployment progresses. -
QEntry
Creates an entry pre-populated with a deploy timestamp and JMX instance.- Parameters:
deployed- deploy timestamp in milliseconds since the epochinstance- JMX registration for the deployed QBean
-
-
Method Details
-
getDeployed
Returns the deploy timestamp.- Returns:
- deploy timestamp in milliseconds since the epoch
-
setDeployed
Updates the deploy timestamp.- Parameters:
deployed- deploy timestamp in milliseconds since the epoch
-
setInstance
Sets the JMX registration for the deployed QBean.- Parameters:
instance- JMX registration for the deployed QBean
-
getInstance
Returns the JMX registration for the deployed QBean.- Returns:
- JMX registration for the deployed QBean, or
nullif not yet registered
-
getObjectName
Returns theObjectNameof the deployed QBean.- Returns:
- the JMX
ObjectNameof the deployed QBean, ornullif not registered
-
setObject
-
getObject
-
isQBean
-
isQPersist
-
isEagerStart
Returns whether this QBean is configured for eager start.- Returns:
truewhen this QBean should be started immediately on deploy
-
setEagerStart
Sets whether this QBean should start immediately on deploy.- Parameters:
eagerStart- whether this QBean should be started immediately on deploy
-