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.Actorpremiere in interface ZActor.Actorpremiere in class ZActor.SimpleActorpipe - the backstage control pipepublic java.util.List<ZMQ.Socket> createSockets(ZContext ctx, java.lang.Object... args)
ZActor.ActorcreateSockets in interface ZActor.ActorcreateSockets in class ZActor.SimpleActorctx - 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.Actorstart in interface ZActor.Actorstart in class ZActor.SimpleActorpipe - 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.Actorbackstage in interface ZActor.Actorbackstage in class ZActor.SimpleActorpipe - 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.Actorstage in interface ZActor.Actorstage in class ZActor.SimpleActorsocket - the socket receiving the messagepipe - the backstage control pipepoller - the poller of the double.events - the events source of the call