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 TypeMethodDescriptionvoidaddHttpProvider(int index, IHTTPProvider2 httpProvider) voidaddHttpProvider(IHTTPProvider httpProvider) voidaddHttpProvider(IHTTPProvider2 httpProvider) voidvoidconfigureSocketAcceptor(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()intgetPort()Get portintGet the number of threads to use to service this incoming portGet full class name or SSLFactory classbooleanisAdmin()booleanisSecure()booleanbooleanvoidsetDomainName(String domainName) Set domainName.voidsetHTTPIdent2Response(String httpIdent2Response) voidsetHTTPIdentResponse(String httpIdentResponse) voidsetIpAddress(String ipAddress) Set ipAddress for object.voidvoidsetPort(int port) Set portvoidsetProcessorCount(int processorCount) Set the number of threads to use to service this incoming portvoidsetSSLConfig(HostPortSSLConfig sslConfig) voidsetSslFactoryClass(String sslFactoryClass) Set full class name of SSLFactory classvoidsetSuspended(boolean isSuspended) voidsetTypeStr(String typeStr) intsize(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()
-