public abstract class AbstractChannelOpenListenerService<T> extends Object implements org.jboss.msc.service.Service<Void>, org.jboss.remoting3.OpenListener
| Modifier and Type | Field and Description |
|---|---|
protected String |
channelName |
protected org.jboss.logging.Logger |
log |
| Constructor and Description |
|---|
AbstractChannelOpenListenerService(String channelName,
org.xnio.OptionMap optionMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelOpened(org.jboss.remoting3.Channel channel) |
protected abstract void |
closeChannelOnShutdown(T channel) |
protected abstract T |
createChannel(org.jboss.remoting3.Channel channel) |
org.jboss.msc.value.InjectedValue<org.jboss.remoting3.Endpoint> |
getEndpointInjector() |
org.jboss.msc.value.InjectedValue<ManagementChannelRegistryService> |
getRegistry() |
org.jboss.msc.service.ServiceName |
getServiceName(org.jboss.msc.service.ServiceName endpointName) |
Void |
getValue() |
void |
registrationTerminated() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
protected final org.jboss.logging.Logger log
protected final String channelName
public AbstractChannelOpenListenerService(String channelName, org.xnio.OptionMap optionMap)
public org.jboss.msc.service.ServiceName getServiceName(org.jboss.msc.service.ServiceName endpointName)
public org.jboss.msc.value.InjectedValue<org.jboss.remoting3.Endpoint> getEndpointInjector()
public org.jboss.msc.value.InjectedValue<ManagementChannelRegistryService> getRegistry()
public Void getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<Void>IllegalStateExceptionIllegalArgumentExceptionpublic void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<Void>org.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<Void>public void channelOpened(org.jboss.remoting3.Channel channel)
channelOpened in interface org.jboss.remoting3.OpenListenerpublic void registrationTerminated()
registrationTerminated in interface org.jboss.remoting3.OpenListenerprotected abstract T createChannel(org.jboss.remoting3.Channel channel)
protected abstract void closeChannelOnShutdown(T channel)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.