當前位置: 首頁>>代碼示例>>Java>>正文


Java ShardMethodEnum類代碼示例

本文整理匯總了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;
}
 
開發者ID:Alfresco,項目名稱:community-edition-old,代碼行數:34,代碼來源:MetadataTracker.java

示例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"));
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:6,代碼來源:ShardMethodEnumTest.java

示例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"));
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:6,代碼來源:ShardMethodEnumTest.java

示例4: testTypeACLBasedOnMurmurHash

import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeACLBasedOnMurmurHash()
{
    Assert.assertEquals(ShardMethodEnum.ACL_ID, ShardMethodEnum.getShardMethod("ACL_ID"));
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:6,代碼來源:ShardMethodEnumTest.java

示例5: testTypeDBID

import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeDBID()
{
    Assert.assertEquals(ShardMethodEnum.DB_ID, ShardMethodEnum.getShardMethod("DB_ID"));
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:6,代碼來源:ShardMethodEnumTest.java

示例6: testTypeEXPLICITID

import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeEXPLICITID()
{
    Assert.assertEquals(ShardMethodEnum.EXPLICIT_ID, ShardMethodEnum.getShardMethod("EXPLICIT_ID"));
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:6,代碼來源:ShardMethodEnumTest.java

示例7: testTypeDateTimeStamp

import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeDateTimeStamp()
{
    Assert.assertEquals(ShardMethodEnum.DATE, ShardMethodEnum.getShardMethod("DATE"));
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:6,代碼來源:ShardMethodEnumTest.java

示例8: testTypeProperty

import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeProperty()
{
    Assert.assertEquals(ShardMethodEnum.PROPERTY, ShardMethodEnum.getShardMethod("PROPERTY"));
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:6,代碼來源:ShardMethodEnumTest.java

示例9: testUnknown

import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testUnknown()
{
    Assert.assertEquals(ShardMethodEnum.UNKOWN, ShardMethodEnum.getShardMethod("UNKOWN"));
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:6,代碼來源:ShardMethodEnumTest.java

示例10: testNull

import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testNull()
{
    Assert.assertEquals(ShardMethodEnum.UNKOWN, ShardMethodEnum.getShardMethod(null));
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:6,代碼來源:ShardMethodEnumTest.java

示例11: testEmpty

import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testEmpty()
{
    Assert.assertEquals(ShardMethodEnum.UNKOWN, ShardMethodEnum.getShardMethod(""));
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:6,代碼來源:ShardMethodEnumTest.java

示例12: testTypeDateYear

import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeDateYear()
{
    Assert.assertEquals(ShardMethodEnum.DATE_YEAR, ShardMethodEnum.getShardMethod("DATE_YEAR"));
}
 
開發者ID:Alfresco,項目名稱:community-edition-old,代碼行數:6,代碼來源:ShardMethodEnumTest.java

示例13: testTypeDateMonth

import org.alfresco.repo.index.shard.ShardMethodEnum; //導入依賴的package包/類
@Test
public void testTypeDateMonth()
{
    Assert.assertEquals(ShardMethodEnum.DATE_MONTH, ShardMethodEnum.getShardMethod("DATE_MONTH"));
}
 
開發者ID:Alfresco,項目名稱:community-edition-old,代碼行數:6,代碼來源:ShardMethodEnumTest.java


注:本文中的org.alfresco.repo.index.shard.ShardMethodEnum類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。