Package com.nt.udc.admin.server
Class ServerUtils
java.lang.Object
com.nt.udc.admin.server.ServerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AdminServerAPIstatic Stringstatic Stringstatic Stringstatic Stringstatic ASProxygetProxy()static AdminServerAPIgetSystemModel(LoggerIfc logger) static voidhandleAdminServerAPIException(String invocationDescription, String serverDescription, String serverMethodDescription, com.nt.common.exceptions.APIException theException) protected static voidhandleInnerException(Exception innerEx) static voidhandleTimeOutException(String invocationDescription, String serverDescription, String serverMethodDescription, com.nt.common.exceptions.TimeoutException te) handles the session time out exceptionstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidsetDebug(boolean b) static voidsetDemo(boolean b) static voidsetIpAndPort(String ip, String port) static voidShows message within Exception as an error pop up box.
-
Constructor Details
-
ServerUtils
public ServerUtils()
-
-
Method Details
-
getAdminServerHostIP
-
getAdminServerPort
-
getDataServerHostIP
-
getDataServerPort
-
setAdminServerHostIP
-
setAdminServerPort
-
setDataServerHostIP
-
setDataServerPort
-
setDemo
public static void setDemo(boolean b) -
setDebug
public static void setDebug(boolean b) -
setIpAndPort
-
getAdminServer
-
killAdminServerRef
public static void killAdminServerRef() -
getSystemModel
-
getProxy
-
handleAdminServerAPIException
-
handleInnerException
-
handleTimeOutException
public static void handleTimeOutException(String invocationDescription, String serverDescription, String serverMethodDescription, com.nt.common.exceptions.TimeoutException te) handles the session time out exception- Parameters:
invocationDescription- describes where the method was called from.serverDescription- describes the server that contains the method.serverMethodDescription- describes the method that was called.te- is the exception that was thrown
-
showErrorPopup
Shows message within Exception as an error pop up box.- Parameters:
ex-
-