private static class ZAuth.AuthActor extends ZActor.SimpleActor
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
actorName |
private java.util.Map<java.lang.String,ZAuth.Auth> |
auths |
private java.util.Properties |
blacklist |
private static java.lang.String |
OK |
private ZMQ.Socket |
replies |
private java.lang.String |
repliesAddress |
private boolean |
repliesEnabled |
private boolean |
verbose |
private java.util.Properties |
whitelist |
Modifier | Constructor and Description |
---|---|
private |
AuthActor(java.lang.String actorName,
java.util.Map<java.lang.String,ZAuth.Auth> auths) |
Modifier and Type | Method and Description |
---|---|
boolean |
backstage(ZMQ.Socket pipe,
ZPoller poller,
int events)
Called when the actor received a control message from its pipe during a loop.
|
private ZAgent |
createAgent(ZContext ctx) |
java.util.List<ZMQ.Socket> |
createSockets(ZContext ctx,
java.lang.Object... args)
Creates and initializes sockets for the double.
|
java.lang.String |
premiere(ZMQ.Socket pipe)
This is the grand premiere!
Called before the creation of the first double and the sockets
2nd in the order call of the global acting.
|
boolean |
stage(ZMQ.Socket socket,
ZMQ.Socket pipe,
ZPoller poller,
int events)
The actor received a message from the created sockets during a loop.
|
void |
start(ZMQ.Socket pipe,
java.util.List<ZMQ.Socket> sockets,
ZPoller poller)
Called when the double is started, before the first loop.
|
private static final java.lang.String OK
private final java.lang.String actorName
private final java.util.Properties whitelist
private final java.util.Properties blacklist
private final java.util.Map<java.lang.String,ZAuth.Auth> auths
private final java.lang.String repliesAddress
private boolean repliesEnabled
private ZMQ.Socket replies
private boolean verbose
private AuthActor(java.lang.String actorName, java.util.Map<java.lang.String,ZAuth.Auth> auths)
public java.lang.String premiere(ZMQ.Socket pipe)
ZActor.Actor
premiere
in interface ZActor.Actor
premiere
in class ZActor.SimpleActor
pipe
- the backstage control pipepublic java.util.List<ZMQ.Socket> createSockets(ZContext ctx, java.lang.Object... args)
ZActor.Actor
createSockets
in interface ZActor.Actor
createSockets
in class ZActor.SimpleActor
ctx
- the context used to create socketsargs
- the arguments passed as parameters of the ZActorpublic void start(ZMQ.Socket pipe, java.util.List<ZMQ.Socket> sockets, ZPoller poller)
ZActor.Actor
start
in interface ZActor.Actor
start
in class ZActor.SimpleActor
pipe
- the backstage control pipesockets
- the managed sockets that were created in the previous steppoller
- the poller where to eventually register the sockets for eventspublic boolean backstage(ZMQ.Socket pipe, ZPoller poller, int events)
ZActor.Actor
backstage
in interface ZActor.Actor
backstage
in class ZActor.SimpleActor
pipe
- the backstage control pipe receiving the messagepoller
- the poller of the double.events
- the events source of the callpublic boolean stage(ZMQ.Socket socket, ZMQ.Socket pipe, ZPoller poller, int events)
ZActor.Actor
stage
in interface ZActor.Actor
stage
in class ZActor.SimpleActor
socket
- the socket receiving the messagepipe
- the backstage control pipepoller
- the poller of the double.events
- the events source of the call