Package com.wowza.wms.vhost
Class HostPort
- Object
-
- com.wowza.wms.vhost.HostPort
-
public class HostPort extends Object
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 Modifier and Type Field Description static String
TYPE_ADMIN
static String
TYPE_STREAMING
-
Constructor Summary
Constructors Constructor Description HostPort()
Create an empty HostPort object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHttpProvider(int index, IHTTPProvider2 httpProvider)
void
addHttpProvider(IHTTPProvider httpProvider)
void
addHttpProvider(IHTTPProvider2 httpProvider)
void
addHTTPStreamerAdapterID(String ID)
void
configureSocketAcceptor(org.apache.mina.transport.socket.nio.SocketAcceptorConfig socketConfig)
Configure a socketAcceportjava.net.InetAddress
getAddress()
Get the ipAddress as an InetAddress objectString
getAddressRawStr()
String
getAddressStr()
Get a String representation of the addressHostPortConfig
getConfiguation()
Get the socket configurationString
getHTTPIdent2Response()
String
getHTTPIdentResponse()
java.util.List<IHTTPProvider>
getHttpProviders()
java.util.List<String>
getHTTPStreamerAdapterIDs()
String
getName()
int
getPort()
Get portint
getProcessorCount()
Get the number of threads to use to service this incoming portHostPortSSLConfig
getSSLConfig()
String
getSslFactoryClass()
Get full class name or SSLFactory classString
getTypeStr()
boolean
isAdmin()
boolean
isSecure()
boolean
isStreaming()
boolean
isSuspended()
void
setDomainName(String domainName)
Set domainName.void
setHTTPIdent2Response(String httpIdent2Response)
void
setHTTPIdentResponse(String httpIdentResponse)
void
setIpAddress(String ipAddress)
Set ipAddress for object.void
setName(String name)
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)
String
toString()
Return object as formatted stringString
toString(boolean mBeanSafe)
Return object as formatted string
-
-
-
Field Detail
-
TYPE_ADMIN
public static final String TYPE_ADMIN
- See Also:
- Constant Field Values
-
TYPE_STREAMING
public static final String TYPE_STREAMING
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDomainName
public void setDomainName(String domainName)
Set domainName. A domainName of * defines a local connection.- Parameters:
domainName
- domainName like www.mycompany.com or * for local
-
getAddress
public java.net.InetAddress 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
public String getAddressStr()
Get a String representation of the address- Returns:
- String representation of the address/domainName. If * it will return [any]
-
getAddressRawStr
public String getAddressRawStr()
-
setIpAddress
public void setIpAddress(String ipAddress)
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
public String getSslFactoryClass()
Get full class name or SSLFactory class- Returns:
- full class name or SSLFactory or "" if not specified
-
setSslFactoryClass
public void setSslFactoryClass(String sslFactoryClass)
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
public String toString(boolean mBeanSafe)
Return object as formatted string- Parameters:
mBeanSafe
- make the name safe for JMX management interface- Returns:
- formmatted string
-
toString
public String toString()
Return object as formatted string- Overrides:
toString
in classObject
- Returns:
- formmatted string
-
getConfiguation
public HostPortConfig 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
public java.util.List<IHTTPProvider> getHttpProviders()
-
addHttpProvider
public void addHttpProvider(IHTTPProvider httpProvider)
-
addHttpProvider
public void addHttpProvider(IHTTPProvider2 httpProvider)
-
addHttpProvider
public void addHttpProvider(int index, IHTTPProvider2 httpProvider)
-
size
public int size(int index, IHTTPProvider2 httpProvider)
-
isSuspended
public boolean isSuspended()
-
setSuspended
public void setSuspended(boolean isSuspended)
-
getHTTPStreamerAdapterIDs
public java.util.List<String> getHTTPStreamerAdapterIDs()
-
addHTTPStreamerAdapterID
public void addHTTPStreamerAdapterID(String ID)
-
isSecure
public boolean isSecure()
-
getSSLConfig
public HostPortSSLConfig getSSLConfig()
-
setSSLConfig
public void setSSLConfig(HostPortSSLConfig sslConfig)
-
getHTTPIdentResponse
public String getHTTPIdentResponse()
-
setHTTPIdentResponse
public void setHTTPIdentResponse(String httpIdentResponse)
-
getHTTPIdent2Response
public String getHTTPIdent2Response()
-
setHTTPIdent2Response
public void setHTTPIdent2Response(String httpIdent2Response)
-
getTypeStr
public String getTypeStr()
-
setTypeStr
public void setTypeStr(String typeStr)
-
getName
public String getName()
-
setName
public void setName(String name)
-
isAdmin
public boolean isAdmin()
-
isStreaming
public boolean isStreaming()
-
-