Package org.jboss.modcluster.mcmp.impl
Class DefaultMCMPResponseParser
java.lang.Object
org.jboss.modcluster.mcmp.impl.DefaultMCMPResponseParser
- All Implemented Interfaces:
MCMPResponseParser
- Author:
- Paul Ferraro
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseInfoResponse
(String response) Parses the response from a INFO request.boolean
parsePingResponse
(String response) Parses the response from a PING request.int
parseStopAppResponse
(String response) Parses the response from a STOP-APP request.
-
Constructor Details
-
DefaultMCMPResponseParser
public DefaultMCMPResponseParser()
-
-
Method Details
-
parseInfoResponse
Description copied from interface:MCMPResponseParser
Parses the response from a INFO request.- Specified by:
parseInfoResponse
in interfaceMCMPResponseParser
- Parameters:
response
- an INFO-RSP- Returns:
- a map of virtual hosts per jvm route.
-
parsePingResponse
Description copied from interface:MCMPResponseParser
Parses the response from a PING request.- Specified by:
parsePingResponse
in interfaceMCMPResponseParser
- Parameters:
response
- a PING-RSP.- Returns:
- true, if the ping was successful, false otherwise.
-
parseStopAppResponse
Description copied from interface:MCMPResponseParser
Parses the response from a STOP-APP request.- Specified by:
parseStopAppResponse
in interfaceMCMPResponseParser
- Parameters:
response
- a STOP-APP-RSP- Returns:
- the number of current requests
-