Package sk.iway.iwcm.system.cluster
Class ClusterDB
java.lang.Object
sk.iway.iwcm.system.cluster.ClusterDB
ClusterDB.java - objekt pre podporu clustra
riesi primarne refreshovanie instancii objektov na jednotlivych nodoch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddRefresh(Class<?> clas) Poznaci do databazy informaciu o refreshi objektu (=ziskanie getInstance())static voidaddRefresh(Class<?> clas, Long id) static voidaddRefresh(String className) Poznaci do databazy informaciu o refreshi objektu (=ziskanie getInstance())static voidaddRefresh(String className, Long id) Poznaci do databazy informaciu o refreshi objektu/zaznamu v DBstatic voidaddRefreshClusterMonitoring(String nodeName, Class<?> clas) static voidcleanup()Vymaze info o refreshoch pre aktualny objekt po inicializacii systemustatic voiddeleteStartsWith(String className) Delete data from cluster_refresher table where class_name starts with given string It is usseful when we want to remove old refresh requests for the same objectVrati zoznam nodov expandnutych pre rezim auto (napr.getClusterNodeNamesExpandedAuto(long dateFrom) static boolean
-
Constructor Details
-
ClusterDB
protected ClusterDB()
-
-
Method Details
-
addRefresh
Poznaci do databazy informaciu o refreshi objektu (=ziskanie getInstance())- Parameters:
clas-
-
addRefresh
-
addRefresh
Poznaci do databazy informaciu o refreshi objektu (=ziskanie getInstance())- Parameters:
className-
-
addRefresh
Poznaci do databazy informaciu o refreshi objektu/zaznamu v DB- Parameters:
className- - triedaid- - id zaznamu alebo NULL pre refresh celej triedy
-
deleteStartsWith
Delete data from cluster_refresher table where class_name starts with given string It is usseful when we want to remove old refresh requests for the same object- Parameters:
className-
-
addRefreshClusterMonitoring
-
cleanup
public static void cleanup()Vymaze info o refreshoch pre aktualny objekt po inicializacii systemu -
isServerRunningInClusterMode
public static boolean isServerRunningInClusterMode() -
getClusterNodeNames
-
getClusterNodeNamesExpandedAuto
Vrati zoznam nodov expandnutych pre rezim auto (napr. pre vyber nodu v monitoringu) expand sa robi distinct selectom z databazy za posledny mesiac- Returns:
-
getClusterNodeNamesExpandedAuto
-