public abstract static class ZProxy.Proxy.SimpleProxy extends java.lang.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,
java.lang.Object... args)
Configures the proxy with a custom message.
|
boolean |
custom(ZMQ.Socket pipe,
java.lang.String cmd,
ZMQ.Socket frontend,
ZMQ.Socket backend,
ZMQ.Socket capture,
java.lang.Object... args)
Handles a custom command not recognized by the proxy.
|
boolean |
restart(ZMsg cfg,
ZMQ.Socket socket,
ZProxy.Plug place,
java.lang.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, java.lang.Object... args) throws java.io.IOException
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.java.io.IOException
public boolean configure(ZMQ.Socket pipe, ZMsg cfg, ZMQ.Socket frontend, ZMQ.Socket backend, ZMQ.Socket capture, java.lang.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, java.lang.String cmd, ZMQ.Socket frontend, ZMQ.Socket backend, ZMQ.Socket capture, java.lang.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.