Package net.risesoft.api.watch
Class CheckStatusTask
- java.lang.Object
-
- net.risesoft.api.watch.CheckStatusTask
-
- All Implemented Interfaces:
io.netty.util.TimerTask
public class CheckStatusTask extends Object implements io.netty.util.TimerTask
-
-
Constructor Summary
Constructors Constructor Description CheckStatusTask(String instanceId, String myInstanceId, IServiceService iServiceService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancheck(IServiceInstanceModel iServiceInstance)static StringcreateCheckUrl(IServiceInstanceModel watchInfo)intgetErrorCout()StringgetInstanceId()intgetSuccessCount()voidrun(io.netty.util.Timeout timeout)StringtoString()
-
-
-
Constructor Detail
-
CheckStatusTask
public CheckStatusTask(String instanceId, String myInstanceId, IServiceService iServiceService)
-
-
Method Detail
-
check
public static boolean check(IServiceInstanceModel iServiceInstance)
-
run
public void run(io.netty.util.Timeout timeout) throws Exception- Specified by:
runin interfaceio.netty.util.TimerTask- Throws:
Exception
-
getInstanceId
public String getInstanceId()
-
getErrorCout
public int getErrorCout()
-
getSuccessCount
public int getSuccessCount()
-
createCheckUrl
public static String createCheckUrl(IServiceInstanceModel watchInfo)
-
-