Package org.jboss.modcluster.mcmp.impl
Class DefaultMCMPResponseParser
- java.lang.Object
-
- org.jboss.modcluster.mcmp.impl.DefaultMCMPResponseParser
-
- All Implemented Interfaces:
MCMPResponseParser
public class DefaultMCMPResponseParser extends Object implements MCMPResponseParser
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description DefaultMCMPResponseParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Set<ResetRequestSource.VirtualHost>>parseInfoResponse(String response)Parses the response from a INFO request.booleanparsePingResponse(String response)Parses the response from a PING request.intparseStopAppResponse(String response)Parses the response from a STOP-APP request.
-
-
-
Method Detail
-
parseInfoResponse
public Map<String,Set<ResetRequestSource.VirtualHost>> parseInfoResponse(String response)
Description copied from interface:MCMPResponseParserParses the response from a INFO request.- Specified by:
parseInfoResponsein interfaceMCMPResponseParser- Parameters:
response- an INFO-RSP- Returns:
- a map of virtual hosts per jvm route.
-
parsePingResponse
public boolean parsePingResponse(String response)
Description copied from interface:MCMPResponseParserParses the response from a PING request.- Specified by:
parsePingResponsein interfaceMCMPResponseParser- Parameters:
response- a PING-RSP.- Returns:
- true, if the ping was successful, false otherwise.
-
parseStopAppResponse
public int parseStopAppResponse(String response)
Description copied from interface:MCMPResponseParserParses the response from a STOP-APP request.- Specified by:
parseStopAppResponsein interfaceMCMPResponseParser- Parameters:
response- a STOP-APP-RSP- Returns:
- the number of current requests
-
-