Package org.apache.ignite.spi
Class IgniteSpiMBeanAdapter
- java.lang.Object
-
- org.apache.ignite.spi.IgniteSpiMBeanAdapter
-
- All Implemented Interfaces:
IgniteSpiManagementMBean
public class IgniteSpiMBeanAdapter extends Object implements IgniteSpiManagementMBean
This class provides convenient adapter for MBean implementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected IgniteSpiAdapterspiAdapter
-
Constructor Summary
Constructors Constructor Description IgniteSpiMBeanAdapter(IgniteSpiAdapter spiAdapter)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIgniteHome()Gets Ignite installation home folder (i.e.UUIDgetLocalNodeId()Gets ID of the local node.StringgetName()Gets name of the SPI.longgetStartTimestamp()Get start timestamp of this SPI.StringgetStartTimestampFormatted()Gets string presentation of the start timestamp.longgetUpTime()Gets up-time of this SPI in ms.StringgetUpTimeFormatted()Gets string presentation of up-time for this SPI.
-
-
-
Field Detail
-
spiAdapter
protected IgniteSpiAdapter spiAdapter
-
-
Constructor Detail
-
IgniteSpiMBeanAdapter
public IgniteSpiMBeanAdapter(IgniteSpiAdapter spiAdapter)
Constructor- Parameters:
spiAdapter- Spi implementation.
-
-
Method Detail
-
getStartTimestampFormatted
public final String getStartTimestampFormatted()
Gets string presentation of the start timestamp.- Specified by:
getStartTimestampFormattedin interfaceIgniteSpiManagementMBean- Returns:
- String presentation of the start timestamp.
-
getUpTimeFormatted
public final String getUpTimeFormatted()
Gets string presentation of up-time for this SPI.- Specified by:
getUpTimeFormattedin interfaceIgniteSpiManagementMBean- Returns:
- String presentation of up-time for this SPI.
-
getStartTimestamp
public final long getStartTimestamp()
Get start timestamp of this SPI.- Specified by:
getStartTimestampin interfaceIgniteSpiManagementMBean- Returns:
- Start timestamp of this SPI.
-
getUpTime
public final long getUpTime()
Gets up-time of this SPI in ms.- Specified by:
getUpTimein interfaceIgniteSpiManagementMBean- Returns:
- Up-time of this SPI.
-
getLocalNodeId
public UUID getLocalNodeId()
Gets ID of the local node.- Specified by:
getLocalNodeIdin interfaceIgniteSpiManagementMBean- Returns:
- ID of the local node.
-
getIgniteHome
public final String getIgniteHome()
Gets Ignite installation home folder (i.e. ${IGNITE_HOME});- Specified by:
getIgniteHomein interfaceIgniteSpiManagementMBean- Returns:
- Ignite installation home folder.
-
getName
public String getName()
Gets name of the SPI.- Specified by:
getNamein interfaceIgniteSpiManagementMBean- Returns:
- Name of the SPI.
-
-