com.liferay.portal.kernel.dao.shard
Class ShardUtil

java.lang.Object
  extended by com.liferay.portal.kernel.dao.shard.ShardUtil

public class ShardUtil
extends java.lang.Object

View Source

Author:
Alexander Chow

Constructor Summary
ShardUtil()
           
 
Method Summary
static java.lang.String getCurrentShardName()
           
static javax.sql.DataSource getDataSource()
           
static boolean isEnabled()
           
static java.lang.String popCompanyService()
           
static void pushCompanyService(long companyId)
           
static void pushCompanyService(java.lang.String shardName)
           
 void setShard(Shard shard)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShardUtil

public ShardUtil()
Method Detail

getCurrentShardName

public static java.lang.String getCurrentShardName()

getDataSource

public static javax.sql.DataSource getDataSource()

isEnabled

public static boolean isEnabled()

popCompanyService

public static java.lang.String popCompanyService()

pushCompanyService

public static void pushCompanyService(long companyId)

pushCompanyService

public static void pushCompanyService(java.lang.String shardName)

setShard

public void setShard(Shard shard)