Class ShardState

java.lang.Object
org.alfresco.repo.index.shard.ShardState
All Implemented Interfaces:
Serializable

public class ShardState extends Object implements Serializable
Store shard state for auto discovery
Author:
Andy
See Also:
  • Constructor Details

    • ShardState

      public ShardState()
  • Method Details

    • getShardInstance

      public ShardInstance getShardInstance()
      Returns:
      the shardInstance
    • setShardInstance

      public void setShardInstance(ShardInstance shardInstance)
      Parameters:
      shardInstance - the shardInstance to set
    • isMaster

      public boolean isMaster()
      Returns:
      the isMaster
    • setMaster

      public void setMaster(boolean isMaster)
      Parameters:
      isMaster - the isMaster to set
    • getPropertyBag

      public HashMap<String,String> getPropertyBag()
      Returns:
      the propertyBag
    • setPropertyBag

      public void setPropertyBag(HashMap<String,String> propertyBag)
      Parameters:
      propertyBag - the propertyBag to set
    • getLastUpdated

      public long getLastUpdated()
      Returns:
      the lastUpdated
    • setLastUpdated

      public void setLastUpdated(long lastUpdated)
      Parameters:
      lastUpdated - the lastUpdated to set
    • getLastIndexedChangeSetId

      public long getLastIndexedChangeSetId()
      Returns:
      the lastIndexedChangeSetId
    • setLastIndexedChangeSetId

      public void setLastIndexedChangeSetId(long lastIndexedChangeSetId)
      Parameters:
      lastIndexedChangeSetId - the lastIndexedChangeSetId to set
    • getLastIndexedTxCommitTime

      public long getLastIndexedTxCommitTime()
      Returns:
      the lastIndexedTxCommitTime
    • setLastIndexedTxCommitTime

      public void setLastIndexedTxCommitTime(long lastIndexedTxCommitTime)
      Parameters:
      lastIndexedTxCommitTime - the lastIndexedTxCommitTime to set
    • getLastIndexedTxId

      public long getLastIndexedTxId()
      Returns:
      the lastIndexedTxId
    • setLastIndexedTxId

      public void setLastIndexedTxId(long lastIndexedTxId)
      Parameters:
      lastIndexedTxId - the lastIndexedTxId to set
    • getLastIndexedChangeSetCommitTime

      public long getLastIndexedChangeSetCommitTime()
      Returns:
      the lastIndexedChangeSetCommitTime
    • setLastIndexedChangeSetCommitTime

      public void setLastIndexedChangeSetCommitTime(long lastIndexedChangeSetCommitTime)
      Parameters:
      lastIndexedChangeSetCommitTime - the lastIndexedChangeSetCommitTime to set
    • toString

      public String toString()
      Overrides:
      toString in class Object