org.jboss.remoting.security.domain
Class DomainServerSocketFactoryService

java.lang.Object
  extended by org.jboss.remoting.security.domain.DomainServerSocketFactoryService
All Implemented Interfaces:
DomainServerSocketFactoryServiceMBean, org.jboss.remoting.security.ServerSocketFactoryMBean

public class DomainServerSocketFactoryService
extends Object
implements DomainServerSocketFactoryServiceMBean

Author:
Tom Elrod

Constructor Summary
DomainServerSocketFactoryService()
           
 
Method Summary
 void create()
          create the service, do expensive operations etc
 ServerSocket createServerSocket()
          Returns an unbound server socket.
 ServerSocket createServerSocket(int i)
          Returns a server socket bound to the specified port.
 ServerSocket createServerSocket(int i, int i1)
          Returns a server socket bound to the specified port, and uses the specified connection backlog.
 ServerSocket createServerSocket(int i, int i1, InetAddress inetAddress)
          Returns a server socket bound to the specified port, with a specified listen backlog and local IP.
 void destroy()
          destroy the service, tear down
 String getSecurityDomain()
           
 void setSecurityDomain(String securityDomain)
           
 void start()
          start the service, create is already called
 void stop()
          stop the service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainServerSocketFactoryService

public DomainServerSocketFactoryService()
Method Detail

createServerSocket

public ServerSocket createServerSocket()
                                throws IOException
Returns an unbound server socket. The socket is configured with the socket options (such as accept timeout) given to this factory.

Specified by:
createServerSocket in interface org.jboss.remoting.security.ServerSocketFactoryMBean
Returns:
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int i)
                                throws IOException
Returns a server socket bound to the specified port. The socket is configured with the socket options (such as accept timeout) given to this factory.

Specified by:
createServerSocket in interface org.jboss.remoting.security.ServerSocketFactoryMBean
Parameters:
i -
Returns:
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int i,
                                       int i1)
                                throws IOException
Returns a server socket bound to the specified port, and uses the specified connection backlog. The socket is configured with the socket options (such as accept timeout) given to this factory.

Specified by:
createServerSocket in interface org.jboss.remoting.security.ServerSocketFactoryMBean
Parameters:
i -
i1 -
Returns:
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int i,
                                       int i1,
                                       InetAddress inetAddress)
                                throws IOException
Returns a server socket bound to the specified port, with a specified listen backlog and local IP. The bindAddr argument can be used on a multi-homed host for a ServerSocket that will only accept connect requests to one of its addresses. The socket is configured with the socket options (such as accept timeout) given to this factory.

Specified by:
createServerSocket in interface org.jboss.remoting.security.ServerSocketFactoryMBean
Parameters:
i -
i1 -
inetAddress -
Returns:
Throws:
IOException

setSecurityDomain

public void setSecurityDomain(String securityDomain)
Specified by:
setSecurityDomain in interface DomainServerSocketFactoryServiceMBean

getSecurityDomain

public String getSecurityDomain()
Specified by:
getSecurityDomain in interface DomainServerSocketFactoryServiceMBean

start

public void start()
           throws Exception
start the service, create is already called

Specified by:
start in interface DomainServerSocketFactoryServiceMBean
Throws:
Exception

create

public void create()
            throws Exception
create the service, do expensive operations etc

Specified by:
create in interface DomainServerSocketFactoryServiceMBean
Throws:
Exception

stop

public void stop()
stop the service

Specified by:
stop in interface DomainServerSocketFactoryServiceMBean

destroy

public void destroy()
destroy the service, tear down

Specified by:
destroy in interface DomainServerSocketFactoryServiceMBean


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.