org.osgi.jmx.service.coordinator
public interface CoordinatorMBean
| Modifier and Type | Field and Description |
|---|---|
static javax.management.openmbean.CompositeType |
COORDINATION_TYPE |
static javax.management.openmbean.TabularType |
COORDINATIONS_TYPE
Defines a list of
COORDINATION_TYPE |
static java.lang.String |
ID
The key ID, used in
ID_ITEM. |
static Item |
ID_ITEM
The item for the id of an Coordination object.
|
static java.lang.String |
NAME
The key NAME, used in
NAME_ITEM. |
static Item |
NAME_ITEM
The item for the user name for an authorization object.
|
static java.lang.String |
OBJECTNAME
User Admin MBean object name.
|
static java.lang.String |
TIMEOUT
The key TIMEOUT, used in
TIMEOUT_ITEM. |
static Item |
TIMEOUT_ITEM
The item for the id of an Coordination object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTimeout(long id,
long timeout)
Set/Change the timeout of a Coordination.
|
boolean |
fail(long id,
java.lang.String reason)
Fail a Coordination.
|
javax.management.openmbean.CompositeData |
getCoordination(long id)
Get a Coordination.
|
javax.management.openmbean.TabularData |
listCoordinations(java.lang.String regexFilter)
List the current coordinations.
|
static final java.lang.String OBJECTNAME
static final java.lang.String NAME
NAME_ITEM.static final Item NAME_ITEM
NAME and the type is SimpleType.STRING.static final java.lang.String ID
ID_ITEM.static final Item ID_ITEM
ID and
the type is SimpleType.LONG. The id must be generated by the
Mbean and map to a unique Coordination (which should no be pinned in
memory because of this).static final java.lang.String TIMEOUT
TIMEOUT_ITEM.static final Item TIMEOUT_ITEM
ID and
the type is SimpleType.LONG.static final javax.management.openmbean.CompositeType COORDINATION_TYPE
static final javax.management.openmbean.TabularType COORDINATIONS_TYPE
COORDINATION_TYPEjavax.management.openmbean.TabularData listCoordinations(java.lang.String regexFilter)
throws java.io.IOException
COORDINATIONS_TYPE.regexFilter - a regular expression filter on the coordination nameCOORDINATIONS_TYPE.java.io.IOException - if the operation failsjavax.management.openmbean.CompositeData getCoordination(long id)
throws java.io.IOException
COORDINATION_TYPE.id - The id of a CoordinationCOORDINATION_TYPE.java.io.IOException - if the operation failsboolean fail(long id,
java.lang.String reason)
throws java.io.IOException
id - The id of the coordination to be failed.reason - true if the coordination was failed by this call,
otherwise false.java.io.IOExceptionvoid addTimeout(long id,
long timeout)
throws java.io.IOException
id - The id of the Coordinationtimeout - The nr of milliseconds for the next timeout.java.io.IOException