public class ServerInvokerImpl extends java.lang.Object implements ServerInvoker, Dispatched
ServerInvoker.ServiceFactory| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ExecutorService |
blockingExecutor |
protected java.util.Map<org.fusesource.hawtbuf.UTF8Buffer,io.fabric8.dosgi.tcp.ServerInvokerImpl.ServiceFactoryHolder> |
holders |
protected static org.slf4j.Logger |
LOGGER |
protected org.fusesource.hawtdispatch.DispatchQueue |
queue |
protected TransportServer |
server |
| Constructor and Description |
|---|
ServerInvokerImpl(java.lang.String address,
org.fusesource.hawtdispatch.DispatchQueue queue,
java.util.Map<java.lang.String,SerializationStrategy> serializationStrategies) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConnectAddress() |
java.net.InetSocketAddress |
getSocketAddress() |
protected void |
onCommand(Transport transport,
java.lang.Object data) |
org.fusesource.hawtdispatch.DispatchQueue |
queue() |
void |
registerService(java.lang.String id,
ServerInvoker.ServiceFactory service,
java.lang.ClassLoader classLoader) |
void |
start()
Starts the service.
|
void |
start(java.lang.Runnable onComplete)
Starts the service.
|
void |
stop()
Stops the service.
|
void |
stop(java.lang.Runnable onComplete)
Stops the service.
|
void |
unregisterService(java.lang.String id) |
protected static final org.slf4j.Logger LOGGER
protected final java.util.concurrent.ExecutorService blockingExecutor
protected final org.fusesource.hawtdispatch.DispatchQueue queue
protected final TransportServer server
protected final java.util.Map<org.fusesource.hawtbuf.UTF8Buffer,io.fabric8.dosgi.tcp.ServerInvokerImpl.ServiceFactoryHolder> holders
public ServerInvokerImpl(java.lang.String address,
org.fusesource.hawtdispatch.DispatchQueue queue,
java.util.Map<java.lang.String,SerializationStrategy> serializationStrategies)
throws java.lang.Exception
java.lang.Exceptionpublic java.net.InetSocketAddress getSocketAddress()
public org.fusesource.hawtdispatch.DispatchQueue queue()
queue in interface Dispatchedpublic java.lang.String getConnectAddress()
getConnectAddress in interface ServerInvokerpublic void registerService(java.lang.String id,
ServerInvoker.ServiceFactory service,
java.lang.ClassLoader classLoader)
registerService in interface ServerInvokerpublic void unregisterService(java.lang.String id)
unregisterService in interface ServerInvokerpublic void start()
throws java.lang.Exception
Servicepublic void start(java.lang.Runnable onComplete)
throws java.lang.Exception
Servicepublic void stop()
Servicepublic void stop(java.lang.Runnable onComplete)
Serviceprotected void onCommand(Transport transport, java.lang.Object data)
Copyright © 2014 Red Hat. All Rights Reserved.