Use below groovy script to find the master node.
import com.liferay.portal.kernel.cluster.*;
out.println("** Master: "+ ClusterMasterExecutorUtil.isMaster());
No comments:
Post a Comment