Class HostAndPort
- java.lang.Object
-
- org.opennms.core.ipc.sink.kafka.server.offset.HostAndPort
-
public class HostAndPort extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HostAndPort()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HostAndPort
fromString(java.lang.String hostWithPort)
java.lang.String
getHost()
static HostAndPort
getNextHostAndPort(HostAndPort hostAndPort)
int
getPort()
void
setHost(java.lang.String host)
void
setPort(int port)
java.lang.String
toString()
-
-
-
Method Detail
-
fromString
public static final HostAndPort fromString(java.lang.String hostWithPort)
-
getNextHostAndPort
public static HostAndPort getNextHostAndPort(HostAndPort hostAndPort)
-
getHost
public java.lang.String getHost()
-
setHost
public void setHost(java.lang.String host)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-