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
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final Stringprotected final Supplier<SocketBindingManager>protected final Supplier<NetworkInterfaceBinding>protected final IntegerFields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionOutboundSocketBindingService(Consumer<OutboundSocketBinding> outboundSocketBindingConsumer, Supplier<SocketBindingManager> socketBindingManagerSupplier, Supplier<NetworkInterfaceBinding> sourceInterfaceSupplier, String name, Integer sourcePort, boolean fixedSourcePort) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract OutboundSocketBindingCreate and return theOutboundSocketBindingfor this outbound socket binding servicegetValue()voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
Field Details
-
outboundSocketName
-
sourcePort
-
socketBindingManagerSupplier
-
sourceInterfaceSupplier
-
fixedSourcePort
protected final boolean fixedSourcePort
-
-
Constructor Details
-
OutboundSocketBindingService
public OutboundSocketBindingService(Consumer<OutboundSocketBinding> outboundSocketBindingConsumer, Supplier<SocketBindingManager> socketBindingManagerSupplier, Supplier<NetworkInterfaceBinding> sourceInterfaceSupplier, String name, Integer sourcePort, boolean fixedSourcePort)
-
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext context) - Specified by:
startin interfaceorg.jboss.msc.Service
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<OutboundSocketBinding>- Throws:
IllegalStateExceptionIllegalArgumentException
-
createOutboundSocketBinding
Create and return theOutboundSocketBindingfor this outbound socket binding service- Returns:
-