Package com.netrics.likeit
Class NetricsCharmapStats
- java.lang.Object
-
- com.netrics.likeit.NetricsCharmapStats
-
- All Implemented Interfaces:
NetricsCommonStats
,java.io.Serializable
public class NetricsCharmapStats extends java.lang.Object implements java.io.Serializable
This class contains information about a character map.Objects of this class contain status information on a character map in the server. Charmap objects are created and returned by the NetricsServerInterface cmap_stats method. Normally there is no need to explicitly create a NetricsCharmapStats object.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
CharmapName()
Return the name of the character map.java.lang.String
getCheckpointStatus()
Return the status of any checkpoint for this table.java.lang.String
getLayout()
Deprecated.Deprecated since 5.6.int
getTranId()
Deprecated.UseNetricsCommonStats.getTransactionId()
to obtain the full transaction id.long
getTransactionId()
Returns the full ID of the transaction that owns or claim this item.int
getTranState()
Returns the transaction state for this object.boolean
isDirty()
Returns true if this item is dirty.boolean
isHeld()
Returns true if this object is held by an open transaction.boolean
isUpdated()
Returns true if this item is updated by an open transaction.java.lang.String
toString()
Convert to string representation.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Convert to string representation.- Overrides:
toString
in classjava.lang.Object
-
CharmapName
public java.lang.String CharmapName()
Return the name of the character map.- Returns:
- the name of the character map.
-
getTranState
public int getTranState()
Returns the transaction state for this object. If this object is not associated with a transaction this returns the special value NetricsTranStats.STATE_NULL. Otherwise it is an OR'd combination of one or more of the state values defined in NetricsTranStats.- Specified by:
getTranState
in interfaceNetricsCommonStats
- Returns:
- the transaction state.
-
isDirty
public boolean isDirty()
Returns true if this item is dirty. This return trues if this item has been modified by a transaction that is not yet committed or aborted. Dirty items may not be trustworthy as the modifications may not be complete and may get rolled back if the transaction is aborted.- Specified by:
isDirty
in interfaceNetricsCommonStats
- Returns:
- the dirty flag of the object.
-
isUpdated
public boolean isUpdated()
Returns true if this item is updated by an open transaction. This is not the same as the isDirty value, as an object is dirty if it was replaced, renamed, added or deleted in addition to updated. Updated indicates that some portion of the item was modified.- Specified by:
isUpdated
in interfaceNetricsCommonStats
- Returns:
- the updated flag of the object.
-
isHeld
public boolean isHeld()
Returns true if this object is held by an open transaction. Held means it is being held in association with updates to another item, but it is not itself modified by the transaction. However another operation may have modified this item, so both isHeld and isDirty may return true.- Specified by:
isHeld
in interfaceNetricsCommonStats
- Returns:
- the held flag of the object
-
getTranId
public int getTranId()
Deprecated.UseNetricsCommonStats.getTransactionId()
to obtain the full transaction id.Returns a partial 32-bit id of the transaction that owns or claim this item. If this item has not been modified or held by an open transaction this will be equal to NetricsTranStats.TRAN_ID_NULL (zero).- Specified by:
getTranId
in interfaceNetricsCommonStats
- Returns:
- a full transaction id.
-
getTransactionId
public long getTransactionId()
Returns the full ID of the transaction that owns or claim this item. If this item has not been modified or held by an open transaction this will be equal to NetricsTranStats.TRAN_ID_NULL (zero).- Specified by:
getTransactionId
in interfaceNetricsCommonStats
- Returns:
- a full transaction id.
-
getLayout
@Deprecated public java.lang.String getLayout()
Deprecated.Deprecated since 5.6. This function always returns null.- Specified by:
getLayout
in interfaceNetricsCommonStats
- Returns:
- null
-
getCheckpointStatus
public java.lang.String getCheckpointStatus()
Return the status of any checkpoint for this table. This returns a description of the checkpoint status for a file. The possible return values are:
Last Checkpoint: yyyy/mm/dd-HH:MM:SS if the table was checkpointed
Never Checkpointed if the table is not checkpointed
Checkpoints Disabled if checkpointing is not enabled on this server
No Checkpoint Info if there was an error- Returns:
- the checkpoint status of this table.
-
-