Package org.alfresco.repo.index.shard
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShardState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLastIndexedChangeSetCommitTime()
long
getLastIndexedChangeSetId()
long
getLastIndexedTxCommitTime()
long
getLastIndexedTxId()
long
getLastUpdated()
HashMap<String,String>
getPropertyBag()
ShardInstance
getShardInstance()
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)
String
toString()
-
-
-
Method Detail
-
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
-
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
-
-