com.liferay.portal.kernel.dao.shard
Class ShardUtil
java.lang.Object
com.liferay.portal.kernel.dao.shard.ShardUtil
public class ShardUtil
- extends java.lang.Object
View Source
- Author:
- Alexander Chow
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShardUtil
public ShardUtil()
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)