Package org.jboss.as.server.services.net
Class OutboundSocketBindingService
- java.lang.Object
-
- org.jboss.as.server.services.net.OutboundSocketBindingService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<OutboundSocketBinding>,org.jboss.msc.value.Value<OutboundSocketBinding>
- Direct Known Subclasses:
LocalDestinationOutboundSocketBindingService,RemoteDestinationOutboundSocketBindingService
public abstract class OutboundSocketBindingService extends Object implements org.jboss.msc.service.Service<OutboundSocketBinding>
Service that represents an outbound socket binding- Author:
- Jaikiran Pai, Richard Opalka
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanfixedSourcePortprotected StringoutboundSocketNameprotected Supplier<SocketBindingManager>socketBindingManagerSupplierprotected Supplier<NetworkInterfaceBinding>sourceInterfaceSupplierprotected IntegersourcePort
-
Constructor Summary
Constructors Constructor Description OutboundSocketBindingService(Consumer<OutboundSocketBinding> outboundSocketBindingConsumer, Supplier<SocketBindingManager> socketBindingManagerSupplier, Supplier<NetworkInterfaceBinding> sourceInterfaceSupplier, String name, Integer sourcePort, boolean fixedSourcePort)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract OutboundSocketBindingcreateOutboundSocketBinding()Create and return theOutboundSocketBindingfor this outbound socket binding serviceOutboundSocketBindinggetValue()voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Field Detail
-
outboundSocketName
protected final String outboundSocketName
-
sourcePort
protected final Integer sourcePort
-
socketBindingManagerSupplier
protected final Supplier<SocketBindingManager> socketBindingManagerSupplier
-
sourceInterfaceSupplier
protected final Supplier<NetworkInterfaceBinding> sourceInterfaceSupplier
-
fixedSourcePort
protected final boolean fixedSourcePort
-
-
Constructor Detail
-
OutboundSocketBindingService
public OutboundSocketBindingService(Consumer<OutboundSocketBinding> outboundSocketBindingConsumer, Supplier<SocketBindingManager> socketBindingManagerSupplier, Supplier<NetworkInterfaceBinding> sourceInterfaceSupplier, String name, Integer sourcePort, boolean fixedSourcePort)
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext context)
- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<OutboundSocketBinding>
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<OutboundSocketBinding>
-
getValue
public OutboundSocketBinding getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<OutboundSocketBinding>- Throws:
IllegalStateExceptionIllegalArgumentException
-
createOutboundSocketBinding
protected abstract OutboundSocketBinding createOutboundSocketBinding()
Create and return theOutboundSocketBindingfor this outbound socket binding service- Returns:
-
-