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 TypeMethodDescriptionlong
long
long
long
long
boolean
isMaster()
void
setLastIndexedChangeSetCommitTime
(long lastIndexedChangeSetCommitTime) void
setLastIndexedChangeSetId
(long lastIndexedChangeSetId) void
setLastIndexedTxCommitTime
(long lastIndexedTxCommitTime) void
setLastIndexedTxId
(long lastIndexedTxId) void
setLastUpdated
(long lastUpdated) void
setMaster
(boolean isMaster) void
setPropertyBag
(HashMap<String, String> propertyBag) void
setShardInstance
(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
-