public abstract class OutboundSocketBindingService extends Object implements org.jboss.msc.service.Service<OutboundSocketBinding>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fixedSourcePort |
protected String |
outboundSocketName |
protected org.jboss.msc.value.InjectedValue<SocketBindingManager> |
socketBindingManagerInjectedValue |
protected org.jboss.msc.value.InjectedValue<NetworkInterfaceBinding> |
sourceInterfaceInjectedValue |
protected Integer |
sourcePort |
| Constructor and Description |
|---|
OutboundSocketBindingService(String name,
Integer sourcePort,
boolean fixedSourcePort) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract OutboundSocketBinding |
createOutboundSocketBinding()
Create and return the
OutboundSocketBinding for this outbound socket binding service |
protected org.jboss.msc.inject.Injector<SocketBindingManager> |
getSocketBindingManagerInjector() |
protected org.jboss.msc.inject.Injector<NetworkInterfaceBinding> |
getSourceNetworkInterfaceBindingInjector() |
OutboundSocketBinding |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
protected final String outboundSocketName
protected final Integer sourcePort
protected final org.jboss.msc.value.InjectedValue<SocketBindingManager> socketBindingManagerInjectedValue
protected final org.jboss.msc.value.InjectedValue<NetworkInterfaceBinding> sourceInterfaceInjectedValue
protected final boolean fixedSourcePort
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic OutboundSocketBinding getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<OutboundSocketBinding>IllegalStateExceptionIllegalArgumentExceptionprotected org.jboss.msc.inject.Injector<SocketBindingManager> getSocketBindingManagerInjector()
protected org.jboss.msc.inject.Injector<NetworkInterfaceBinding> getSourceNetworkInterfaceBindingInjector()
protected abstract OutboundSocketBinding createOutboundSocketBinding()
OutboundSocketBinding for this outbound socket binding serviceCopyright © 2018 JBoss by Red Hat. All rights reserved.