Package com.wowza.wms.vhost
Class HostPort
Object
com.wowza.wms.vhost.HostPort
HostPort: data object that describes a socket connection. The address can be defined by ipAddress or by domainName. It can also contain a reference to an SSLFactory class that can be used to create a secure connection to the server.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHttpProvider
(int index, IHTTPProvider2 httpProvider) void
addHttpProvider
(IHTTPProvider httpProvider) void
addHttpProvider
(IHTTPProvider2 httpProvider) void
void
configureSocketAcceptor
(org.apache.mina.transport.socket.nio.SocketAcceptorConfig socketConfig) Configure a socketAcceportGet the ipAddress as an InetAddress objectGet a String representation of the addressGet the socket configurationgetName()
int
getPort()
Get portint
Get the number of threads to use to service this incoming portGet full class name or SSLFactory classboolean
isAdmin()
boolean
isSecure()
boolean
boolean
void
setDomainName
(String domainName) Set domainName.void
setHTTPIdent2Response
(String httpIdent2Response) void
setHTTPIdentResponse
(String httpIdentResponse) void
setIpAddress
(String ipAddress) Set ipAddress for object.void
void
setPort
(int port) Set portvoid
setProcessorCount
(int processorCount) Set the number of threads to use to service this incoming portvoid
setSSLConfig
(HostPortSSLConfig sslConfig) void
setSslFactoryClass
(String sslFactoryClass) Set full class name of SSLFactory classvoid
setSuspended
(boolean isSuspended) void
setTypeStr
(String typeStr) int
size
(int index, IHTTPProvider2 httpProvider) toString()
Return object as formatted stringtoString
(boolean mBeanSafe) Return object as formatted string
-
Field Details
-
TYPE_ADMIN
- See Also:
-
TYPE_STREAMING
- See Also:
-
-
Constructor Details
-
HostPort
public HostPort()Create an empty HostPort object
-
-
Method Details
-
setDomainName
Set domainName. A domainName of * defines a local connection.- Parameters:
domainName
- domainName like www.mycompany.com or * for local
-
getAddress
Get the ipAddress as an InetAddress object- Returns:
- ipAddress as an InetAddress object. At this point the domainName (if specified) will be resolved.
-
getAddressStr
Get a String representation of the address- Returns:
- String representation of the address/domainName. If * it will return [any]
-
getAddressRawStr
-
setIpAddress
Set ipAddress for object. A ipAddress of * defines a local connection.- Parameters:
ipAddress
- ipAddress like 127.0.0.1 or * for local
-
getPort
public int getPort()Get port- Returns:
- port
-
setPort
public void setPort(int port) Set port- Parameters:
port
- port
-
getSslFactoryClass
Get full class name or SSLFactory class- Returns:
- full class name or SSLFactory or "" if not specified
-
setSslFactoryClass
Set full class name of SSLFactory class- Parameters:
sslFactoryClass
- full class name or SSLFactory or "" if not specified
-
getProcessorCount
public int getProcessorCount()Get the number of threads to use to service this incoming port- Returns:
- number of processor threads
-
setProcessorCount
public void setProcessorCount(int processorCount) Set the number of threads to use to service this incoming port- Parameters:
processorCount
- number of processor threads
-
toString
Return object as formatted string- Parameters:
mBeanSafe
- make the name safe for JMX management interface- Returns:
- formmatted string
-
toString
Return object as formatted string -
getConfiguation
Get the socket configuration- Returns:
- socket configuration
-
configureSocketAcceptor
public void configureSocketAcceptor(org.apache.mina.transport.socket.nio.SocketAcceptorConfig socketConfig) Configure a socketAcceport- Parameters:
socketConfig
- socket acceptor
-
getHttpProviders
-
addHttpProvider
-
addHttpProvider
-
addHttpProvider
-
size
-
isSuspended
public boolean isSuspended() -
setSuspended
public void setSuspended(boolean isSuspended) -
getHTTPStreamerAdapterIDs
-
addHTTPStreamerAdapterID
-
isSecure
public boolean isSecure() -
getSSLConfig
-
setSSLConfig
-
getHTTPIdentResponse
-
setHTTPIdentResponse
-
getHTTPIdent2Response
-
setHTTPIdent2Response
-
getTypeStr
-
setTypeStr
-
getName
-
setName
-
isAdmin
public boolean isAdmin() -
isStreaming
public boolean isStreaming()
-