public abstract static class ZProxy.Proxy.SimpleProxy extends Object implements ZProxy.Proxy
ZProxy.Proxy.SimpleProxy
Constructor and Description |
---|
SimpleProxy() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(ZMQ.Socket pipe,
ZMsg cfg,
ZMQ.Socket frontend,
ZMQ.Socket backend,
ZMQ.Socket capture,
Object[] args)
Configures the proxy with a custom message.
|
boolean |
custom(ZMQ.Socket pipe,
String cmd,
ZMQ.Socket frontend,
ZMQ.Socket backend,
ZMQ.Socket capture,
Object[] args)
Handles a custom command not recognized by the proxy.
|
boolean |
restart(ZMsg cfg,
ZMQ.Socket socket,
ZProxy.Plug place,
Object[] args)
Performs a hot restart of the given socket.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, create
public boolean restart(ZMsg cfg, ZMQ.Socket socket, ZProxy.Plug place, Object[] args)
ZProxy.Proxy
restart
in interface ZProxy.Proxy
cfg
- the custom configuration message sent by the control.socket
- the socket to hot restartplace
- the position for the socket in the proxyargs
- the optional array of arguments that has been passed at the creation of the ZProxy.public boolean configure(ZMQ.Socket pipe, ZMsg cfg, ZMQ.Socket frontend, ZMQ.Socket backend, ZMQ.Socket capture, Object[] args)
ZProxy.Proxy
configure
in interface ZProxy.Proxy
pipe
- the control pipecfg
- the custom configuration message sent by the controlfrontend
- the frontend socketbackend
- the backend socketcapture
- the optional capture socketargs
- the optional array of arguments that has been passed at the creation of the ZProxy.public boolean custom(ZMQ.Socket pipe, String cmd, ZMQ.Socket frontend, ZMQ.Socket backend, ZMQ.Socket capture, Object[] args)
ZProxy.Proxy
custom
in interface ZProxy.Proxy
pipe
- the control pipecmd
- the unrecognized commandfrontend
- the frontend socketbackend
- the backend socketcapture
- the optional capture socketargs
- the optional array of arguments that has been passed at the creation of the ZProxy.Copyright © 2019. All rights reserved.