Package jade.imtp.leap.JICP
Class JICPProtocol
- java.lang.Object
-
- jade.imtp.leap.TransportProtocol
-
- jade.imtp.leap.JICP.JICPProtocol
-
public class JICPProtocol extends TransportProtocol
Class declaration- Author:
- Giovanni Caire - TILAB, Ronnie Taib - Motorola, Steffen Rusitschka - Siemens
-
-
Field Summary
Fields Modifier and Type Field Description static byteCOMMAND_TYPEID code for packets carrying IMTP commandsstatic byteCOMPRESSED_INFOstatic byteCONNECT_MEDIATOR_TYPEID code for packets carrying requests to connect to a Mediatorstatic StringCONNECTION_TIMEOUT_KEYstatic byteCREATE_MEDIATOR_TYPEID code for packets carrying requests to create a Mediatorstatic StringCREATION_ATTEMPTS_KEYstatic byteDATA_PRESENT_INFOstatic longDEFAULT_CONNECTION_TIMEOUTstatic intDEFAULT_CREATION_ATTEMPTSstatic byteDEFAULT_INFObit encoded data info constantsstatic longDEFAULT_KEEP_ALIVE_TIMEstatic longDEFAULT_MAX_DISCONNECTION_TIMEDefault MaxDisconnection and retry times for the mediator mechanismstatic intDEFAULT_PORTstatic StringDEFAULT_RECIPIENT_IDDefault recipient IDstatic doubleDEFAULT_RESPONSE_TIMEOUT_MULTIPLICATIVE_FACTORstatic longDEFAULT_RESPONSE_TIMEOUT_OFFSETstatic longDEFAULT_RETRY_TIMEstatic StringDROP_DOWN_TIME_KEYstatic byteDROP_DOWN_TYPEID code for packets carrying requests to drop-down the connection with the mediatorstatic StringDUMMY_IDstatic byteERROR_TYPEID code for packets carrying JICP protocol errorsstatic byteGET_ADDRESS_TYPEID code for packets carrying requests to get the local addressstatic byteGET_CONFIG_OPTIONS_TYPEID code for packets carrying requests to get the local addressstatic StringGET_SERVER_TIME_KEYstatic byteGET_SERVER_TIME_TYPEID code for packets carrying requests to retrieve the current server timestatic StringKEEP_ALIVE_TIME_KEYstatic byteKEEP_ALIVE_TYPEID code for packets carrying keep-alivestatic StringLOCAL_HOST_KEYstatic StringLOCAL_PORT_KEYKeysstatic StringMAX_DISCONNECTION_TIME_KEYstatic StringMEDIATOR_CLASS_KEYstatic StringMEDIATOR_ID_KEYstatic StringMSISDN_KEYstatic StringNAMEThe protocol's name, as used in a URL protocol field.static StringNOT_AUTHORIZED_ERRORstatic StringNOT_FOUND_ERRORstatic byteOK_INFOstatic StringOWNER_KEYDeprecated.UseMicroRuntime.OWNER_KEYstatic byteRECIPIENT_ID_PRESENT_INFOstatic byteRECONNECT_INFOstatic StringRECONNECTION_RETRY_TIME_KEYstatic StringREMOTE_URL_KEYstatic StringRESPONSE_TIMEOUT_MULTIPLICATIVE_FACTOR_KEYstatic StringRESPONSE_TIMEOUT_OFFSET_KEYstatic byteRESPONSE_TYPEID code for packets carrying IMTP responsesstatic StringSERVER_TIME_OFFSET_KEYstatic byteSESSION_ID_PRESENT_INFOstatic byteTERMINATED_INFOstatic StringUNREACHABLE_KEYstatic StringVERSION_KEY
-
Constructor Summary
Constructors Constructor Description JICPProtocol()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddrToString(TransportAddress ta)Constructor declarationTransportAddressbuildAddress(String host, String port, String file, String anchor)static longcomputeTimeout(long timeoutOffset, double factor, int packetLength)static JICPProtocolgetInstance()StringgetName()Method declarationTransportAddressstringToAddr(String s)Method declaration-
Methods inherited from class jade.imtp.leap.TransportProtocol
parseURL
-
-
-
-
Field Detail
-
NAME
public static final String NAME
The protocol's name, as used in a URL protocol field.- See Also:
- Constant Field Values
-
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
-
COMMAND_TYPE
public static final byte COMMAND_TYPE
ID code for packets carrying IMTP commands- See Also:
- Constant Field Values
-
RESPONSE_TYPE
public static final byte RESPONSE_TYPE
ID code for packets carrying IMTP responses- See Also:
- Constant Field Values
-
KEEP_ALIVE_TYPE
public static final byte KEEP_ALIVE_TYPE
ID code for packets carrying keep-alive- See Also:
- Constant Field Values
-
GET_CONFIG_OPTIONS_TYPE
public static final byte GET_CONFIG_OPTIONS_TYPE
ID code for packets carrying requests to get the local address- See Also:
- Constant Field Values
-
GET_ADDRESS_TYPE
public static final byte GET_ADDRESS_TYPE
ID code for packets carrying requests to get the local address- See Also:
- Constant Field Values
-
CREATE_MEDIATOR_TYPE
public static final byte CREATE_MEDIATOR_TYPE
ID code for packets carrying requests to create a Mediator- See Also:
- Constant Field Values
-
CONNECT_MEDIATOR_TYPE
public static final byte CONNECT_MEDIATOR_TYPE
ID code for packets carrying requests to connect to a Mediator- See Also:
- Constant Field Values
-
GET_SERVER_TIME_TYPE
public static final byte GET_SERVER_TIME_TYPE
ID code for packets carrying requests to retrieve the current server time- See Also:
- Constant Field Values
-
DROP_DOWN_TYPE
public static final byte DROP_DOWN_TYPE
ID code for packets carrying requests to drop-down the connection with the mediator- See Also:
- Constant Field Values
-
ERROR_TYPE
public static final byte ERROR_TYPE
ID code for packets carrying JICP protocol errors- See Also:
- Constant Field Values
-
DEFAULT_INFO
public static final byte DEFAULT_INFO
bit encoded data info constants- See Also:
- Constant Field Values
-
COMPRESSED_INFO
public static final byte COMPRESSED_INFO
- See Also:
- Constant Field Values
-
RECIPIENT_ID_PRESENT_INFO
public static final byte RECIPIENT_ID_PRESENT_INFO
- See Also:
- Constant Field Values
-
SESSION_ID_PRESENT_INFO
public static final byte SESSION_ID_PRESENT_INFO
- See Also:
- Constant Field Values
-
DATA_PRESENT_INFO
public static final byte DATA_PRESENT_INFO
- See Also:
- Constant Field Values
-
RECONNECT_INFO
public static final byte RECONNECT_INFO
- See Also:
- Constant Field Values
-
OK_INFO
public static final byte OK_INFO
- See Also:
- Constant Field Values
-
TERMINATED_INFO
public static final byte TERMINATED_INFO
- See Also:
- Constant Field Values
-
DEFAULT_RECIPIENT_ID
public static final String DEFAULT_RECIPIENT_ID
Default recipient ID- See Also:
- Constant Field Values
-
DEFAULT_CREATION_ATTEMPTS
public static final int DEFAULT_CREATION_ATTEMPTS
- See Also:
- Constant Field Values
-
DEFAULT_MAX_DISCONNECTION_TIME
public static final long DEFAULT_MAX_DISCONNECTION_TIME
Default MaxDisconnection and retry times for the mediator mechanism- See Also:
- Constant Field Values
-
DEFAULT_RETRY_TIME
public static final long DEFAULT_RETRY_TIME
- See Also:
- Constant Field Values
-
DEFAULT_KEEP_ALIVE_TIME
public static final long DEFAULT_KEEP_ALIVE_TIME
- See Also:
- Constant Field Values
-
DEFAULT_CONNECTION_TIMEOUT
public static final long DEFAULT_CONNECTION_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_RESPONSE_TIMEOUT_OFFSET
public static final long DEFAULT_RESPONSE_TIMEOUT_OFFSET
- See Also:
- Constant Field Values
-
DEFAULT_RESPONSE_TIMEOUT_MULTIPLICATIVE_FACTOR
public static final double DEFAULT_RESPONSE_TIMEOUT_MULTIPLICATIVE_FACTOR
- See Also:
- Constant Field Values
-
LOCAL_PORT_KEY
public static final String LOCAL_PORT_KEY
Keys- See Also:
- Constant Field Values
-
LOCAL_HOST_KEY
public static final String LOCAL_HOST_KEY
- See Also:
- Constant Field Values
-
REMOTE_URL_KEY
public static final String REMOTE_URL_KEY
- See Also:
- Constant Field Values
-
UNREACHABLE_KEY
public static final String UNREACHABLE_KEY
- See Also:
- Constant Field Values
-
CREATION_ATTEMPTS_KEY
public static final String CREATION_ATTEMPTS_KEY
- See Also:
- Constant Field Values
-
RECONNECTION_RETRY_TIME_KEY
public static final String RECONNECTION_RETRY_TIME_KEY
- See Also:
- Constant Field Values
-
MAX_DISCONNECTION_TIME_KEY
public static final String MAX_DISCONNECTION_TIME_KEY
- See Also:
- Constant Field Values
-
KEEP_ALIVE_TIME_KEY
public static final String KEEP_ALIVE_TIME_KEY
- See Also:
- Constant Field Values
-
DROP_DOWN_TIME_KEY
public static final String DROP_DOWN_TIME_KEY
- See Also:
- Constant Field Values
-
MEDIATOR_CLASS_KEY
public static final String MEDIATOR_CLASS_KEY
- See Also:
- Constant Field Values
-
MEDIATOR_ID_KEY
public static final String MEDIATOR_ID_KEY
- See Also:
- Constant Field Values
-
MSISDN_KEY
public static final String MSISDN_KEY
- See Also:
- Constant Field Values
-
VERSION_KEY
public static final String VERSION_KEY
- See Also:
- Constant Field Values
-
CONNECTION_TIMEOUT_KEY
public static final String CONNECTION_TIMEOUT_KEY
- See Also:
- Constant Field Values
-
RESPONSE_TIMEOUT_OFFSET_KEY
public static final String RESPONSE_TIMEOUT_OFFSET_KEY
- See Also:
- Constant Field Values
-
RESPONSE_TIMEOUT_MULTIPLICATIVE_FACTOR_KEY
public static final String RESPONSE_TIMEOUT_MULTIPLICATIVE_FACTOR_KEY
- See Also:
- Constant Field Values
-
GET_SERVER_TIME_KEY
public static final String GET_SERVER_TIME_KEY
- See Also:
- Constant Field Values
-
SERVER_TIME_OFFSET_KEY
public static final String SERVER_TIME_OFFSET_KEY
- See Also:
- Constant Field Values
-
OWNER_KEY
public static final String OWNER_KEY
Deprecated.UseMicroRuntime.OWNER_KEY- See Also:
- Constant Field Values
-
DUMMY_ID
public static final String DUMMY_ID
- See Also:
- Constant Field Values
-
NOT_FOUND_ERROR
public static final String NOT_FOUND_ERROR
- See Also:
- Constant Field Values
-
NOT_AUTHORIZED_ERROR
public static final String NOT_AUTHORIZED_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static JICPProtocol getInstance()
-
addrToString
public String addrToString(TransportAddress ta) throws ICPException
Constructor declaration- Specified by:
addrToStringin classTransportProtocol- Parameters:
url-- Throws:
ICPException
-
stringToAddr
public TransportAddress stringToAddr(String s) throws ICPException
Method declaration- Specified by:
stringToAddrin classTransportProtocol- Parameters:
s-- Returns:
- Throws:
ICPException
-
buildAddress
public TransportAddress buildAddress(String host, String port, String file, String anchor)
- Specified by:
buildAddressin classTransportProtocol
-
getName
public String getName()
Method declaration- Specified by:
getNamein classTransportProtocol- Returns:
-
computeTimeout
public static final long computeTimeout(long timeoutOffset, double factor, int packetLength)
-
-