Package org.alfresco.repo.index.shard
Class ShardState
java.lang.Object
org.alfresco.repo.index.shard.ShardState
- All Implemented Interfaces:
Serializable
Store shard state for auto discovery
- Author:
- Andy
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonglonglonglongbooleanisMaster()voidsetLastIndexedChangeSetCommitTime(long lastIndexedChangeSetCommitTime) voidsetLastIndexedChangeSetId(long lastIndexedChangeSetId) voidsetLastIndexedTxCommitTime(long lastIndexedTxCommitTime) voidsetLastIndexedTxId(long lastIndexedTxId) voidsetLastUpdated(long lastUpdated) voidsetMaster(boolean isMaster) voidsetPropertyBag(HashMap<String, String> propertyBag) voidsetShardInstance(ShardInstance shardInstance) toString()
-
Constructor Details
-
ShardState
public ShardState()
-
-
Method Details
-
getShardInstance
- Returns:
- the shardInstance
-
setShardInstance
- 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
- Returns:
- the propertyBag
-
setPropertyBag
- 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
-