本文整理匯總了Java中org.alfresco.repo.index.shard.ShardMethodEnum類的典型用法代碼示例。如果您正苦於以下問題:Java ShardMethodEnum類的具體用法?Java ShardMethodEnum怎麽用?Java ShardMethodEnum使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ShardMethodEnum類屬於org.alfresco.repo.index.shard包,在下文中一共展示了ShardMethodEnum類的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getShardState
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
/**
* @param state
* @return
*/
private ShardState getShardState()
{
TrackerState state = super.getTrackerState();
ShardState shardstate = ShardStateBuilder.shardState()
.withMaster(isMaster)
.withLastUpdated(System.currentTimeMillis())
.withLastIndexedChangeSetCommitTime(state.getLastIndexedChangeSetCommitTime())
.withLastIndexedChangeSetId(state.getLastIndexedChangeSetId())
.withLastIndexedTxCommitTime(state.getLastIndexedTxCommitTime())
.withLastIndexedTxId(state.getLastIndexedTxId())
.withShardInstance()
.withBaseUrl(infoSrv.getBaseUrl())
.withPort(infoSrv.getPort())
.withHostName(infoSrv.getHostName())
.withShard()
.withInstance(shardInstance)
.withFloc()
.withNumberOfShards(shardCount)
.withAddedStoreRef(storeRef)
.withTemplate(shardTemplate)
.withHasContent(transformContent)
.withShardMethod(ShardMethodEnum.MOD_ACL_ID)
.endFloc()
.endShard()
.endShardInstance()
.build();
return shardstate;
}
示例2: testTypeACLLegacy
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeACLLegacy()
{
Assert.assertEquals(ShardMethodEnum.MOD_ACL_ID, ShardMethodEnum.getShardMethod("MOD_ACL_ID"));
}
示例3: testDBIDRange
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testDBIDRange()
{
Assert.assertEquals(ShardMethodEnum.DB_ID_RANGE, ShardMethodEnum.getShardMethod("DB_ID_RANGE"));
}
示例4: testTypeACLBasedOnMurmurHash
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeACLBasedOnMurmurHash()
{
Assert.assertEquals(ShardMethodEnum.ACL_ID, ShardMethodEnum.getShardMethod("ACL_ID"));
}
示例5: testTypeDBID
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeDBID()
{
Assert.assertEquals(ShardMethodEnum.DB_ID, ShardMethodEnum.getShardMethod("DB_ID"));
}
示例6: testTypeEXPLICITID
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeEXPLICITID()
{
Assert.assertEquals(ShardMethodEnum.EXPLICIT_ID, ShardMethodEnum.getShardMethod("EXPLICIT_ID"));
}
示例7: testTypeDateTimeStamp
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeDateTimeStamp()
{
Assert.assertEquals(ShardMethodEnum.DATE, ShardMethodEnum.getShardMethod("DATE"));
}
示例8: testTypeProperty
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeProperty()
{
Assert.assertEquals(ShardMethodEnum.PROPERTY, ShardMethodEnum.getShardMethod("PROPERTY"));
}
示例9: testUnknown
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testUnknown()
{
Assert.assertEquals(ShardMethodEnum.UNKOWN, ShardMethodEnum.getShardMethod("UNKOWN"));
}
示例10: testNull
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testNull()
{
Assert.assertEquals(ShardMethodEnum.UNKOWN, ShardMethodEnum.getShardMethod(null));
}
示例11: testEmpty
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testEmpty()
{
Assert.assertEquals(ShardMethodEnum.UNKOWN, ShardMethodEnum.getShardMethod(""));
}
示例12: testTypeDateYear
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeDateYear()
{
Assert.assertEquals(ShardMethodEnum.DATE_YEAR, ShardMethodEnum.getShardMethod("DATE_YEAR"));
}
示例13: testTypeDateMonth
import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeDateMonth()
{
Assert.assertEquals(ShardMethodEnum.DATE_MONTH, ShardMethodEnum.getShardMethod("DATE_MONTH"));
}