public class NodeStatusConverterFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Function1<NodeStatus,types.Rpc.SingleBytes> |
domainConverter |
protected org.slf4j.Logger |
logger |
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
protected Function1<types.Rpc.SingleBytes,NodeStatus> |
rpcConverter |
Constructor and Description |
---|
NodeStatusConverterFactory() |
Modifier and Type | Method and Description |
---|---|
protected Time |
convertToTime(java.lang.String val)
Parse
val and convert time in microseconds. |
ModelConverter<NodeStatus,types.Rpc.SingleBytes> |
create() |
protected com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
protected final transient org.slf4j.Logger logger
protected final com.fasterxml.jackson.databind.ObjectMapper mapper
protected final Function1<NodeStatus,types.Rpc.SingleBytes> domainConverter
protected final Function1<types.Rpc.SingleBytes,NodeStatus> rpcConverter
public ModelConverter<NodeStatus,types.Rpc.SingleBytes> create()
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
protected Time convertToTime(java.lang.String val) throws java.io.IOException
val
and convert time in microseconds.val
- string to parsejava.io.IOException
- Fail to parseParsingUtils.convertToTime(String)