Class CommonUpstream
- java.lang.Object
-
- org.apache.shenyu.common.dto.convert.selector.CommonUpstream
-
- Direct Known Subclasses:
DivideUpstream,DubboUpstream,GrpcUpstream,TarsUpstream,WebSocketUpstream
public class CommonUpstream extends java.lang.Objectthis is common upstream.
-
-
Constructor Summary
Constructors Constructor Description CommonUpstream()Instantiates a new Common upstream.CommonUpstream(java.lang.String protocol, java.lang.String upstreamHost, java.lang.String upstreamUrl, boolean status, long timestamp)Instantiates a new Common upstream.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static booleandefaultStatus()Default status boolean.booleanequals(java.lang.Object o)java.lang.StringgetProtocol()get protocol.longgetTimestamp()get timestamp.java.lang.StringgetUpstreamHost()get upstreamHost.java.lang.StringgetUpstreamUrl()get upstreamUrl.inthashCode()booleanisStatus()get status.voidsetProtocol(java.lang.String protocol)set protocol.voidsetStatus(boolean status)set status.voidsetTimestamp(long timestamp)set timestamp.voidsetUpstreamHost(java.lang.String upstreamHost)set upstreamHost.voidsetUpstreamUrl(java.lang.String upstreamUrl)set upstreamUrl.java.lang.StringtoString()
-
-
-
Constructor Detail
-
CommonUpstream
public CommonUpstream()
Instantiates a new Common upstream.
-
CommonUpstream
public CommonUpstream(java.lang.String protocol, java.lang.String upstreamHost, java.lang.String upstreamUrl, boolean status, long timestamp)Instantiates a new Common upstream.- Parameters:
protocol- the protocolupstreamHost- the upstream hostupstreamUrl- the upstream urlstatus- the upstream statustimestamp- the upstream timestamp
-
-
Method Detail
-
getUpstreamHost
public java.lang.String getUpstreamHost()
get upstreamHost.- Returns:
- upstreamHost upstream host
-
setUpstreamHost
public void setUpstreamHost(java.lang.String upstreamHost)
set upstreamHost.- Parameters:
upstreamHost- upstreamHost
-
getProtocol
public java.lang.String getProtocol()
get protocol.- Returns:
- protocol protocol
-
setProtocol
public void setProtocol(java.lang.String protocol)
set protocol.- Parameters:
protocol- protocol
-
getUpstreamUrl
public java.lang.String getUpstreamUrl()
get upstreamUrl.- Returns:
- upstreamUrl upstream url
-
setUpstreamUrl
public void setUpstreamUrl(java.lang.String upstreamUrl)
set upstreamUrl.- Parameters:
upstreamUrl- upstreamUrl
-
isStatus
public boolean isStatus()
get status.- Returns:
- status boolean
-
setStatus
public void setStatus(boolean status)
set status.- Parameters:
status- status
-
getTimestamp
public long getTimestamp()
get timestamp.- Returns:
- timestamp timestamp
-
setTimestamp
public void setTimestamp(long timestamp)
set timestamp.- Parameters:
timestamp- timestamp
-
defaultStatus
protected static boolean defaultStatus()
Default status boolean.- Returns:
- the boolean
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-