Package jade.core
Class MainDetectionManager
- java.lang.Object
-
- jade.core.MainDetectionManager
-
public class MainDetectionManager extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROTO_ADDR_SEPARATORstatic StringPROTO_ADDRESSES_SEPARATORstatic StringPROTO_CMD_GETMAINstatic StringPROTO_CMD_PINGstatic StringPROTO_ENCODINGstatic StringPROTO_RESP_ERRstatic StringPROTO_RESP_NOTFOUNDstatic StringPROTO_RESP_OKstatic StringPROTO_VERSION
-
Constructor Summary
Constructors Constructor Description MainDetectionManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcheckProtocolVersion(String request)static jade.core.MulticastMainDetectionListenercreateListener(ProfileImpl profile, IMTPManager m)static StringdecodeData(byte[] data)static voiddetect(ProfileImpl profile)
-
-
-
Field Detail
-
PROTO_VERSION
public static final String PROTO_VERSION
- See Also:
- Constant Field Values
-
PROTO_ENCODING
public static final String PROTO_ENCODING
- See Also:
- Constant Field Values
-
PROTO_CMD_GETMAIN
public static final String PROTO_CMD_GETMAIN
- See Also:
- Constant Field Values
-
PROTO_CMD_PING
public static final String PROTO_CMD_PING
- See Also:
- Constant Field Values
-
PROTO_ADDRESSES_SEPARATOR
public static final String PROTO_ADDRESSES_SEPARATOR
- See Also:
- Constant Field Values
-
PROTO_ADDR_SEPARATOR
public static final String PROTO_ADDR_SEPARATOR
- See Also:
- Constant Field Values
-
PROTO_RESP_OK
public static final String PROTO_RESP_OK
- See Also:
- Constant Field Values
-
PROTO_RESP_ERR
public static final String PROTO_RESP_ERR
- See Also:
- Constant Field Values
-
PROTO_RESP_NOTFOUND
public static final String PROTO_RESP_NOTFOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
decodeData
public static String decodeData(byte[] data)
-
checkProtocolVersion
public static int checkProtocolVersion(String request) throws Exception
- Throws:
Exception
-
detect
public static void detect(ProfileImpl profile) throws ProfileException
- Throws:
ProfileException
-
createListener
public static jade.core.MulticastMainDetectionListener createListener(ProfileImpl profile, IMTPManager m) throws ProfileException
- Throws:
ProfileException
-
-