public class Gatekeeper extends Object
Authorizer
object. This is the Authorizer
's linkage back to the systems that
do most of the real work in the Gatekeeper.Modifier and Type | Method and Description |
---|---|
void |
ensureAuthorizedAdmin(BasicProtocolActor from)
Guard function to guarantee that an operation is being attempted by an
actor who is authorized to do admin operations.
|
ObjDB |
openObjectDatabase(String propRoot)
Open an asynchronous database.
|
BootProperties |
properties()
Get the server's configuration properties.
|
RefTable |
refTable()
Get the object reference table for this gatekeeper.
|
void |
requestReservation(String protocol,
String context,
String actor,
ArgRunnable handler)
Issue a request for a reservation to the Director.
|
String |
serverName()
Get the Gatekeeper's name.
|
Trace |
trace()
Get the trace object.
|
public void ensureAuthorizedAdmin(BasicProtocolActor from) throws MessageHandlerException
MessageHandlerException
- if this actor is not authorized to
perform administrative operations.public ObjDB openObjectDatabase(String propRoot)
propRoot
- Prefix string for all the properties describing the
database that is to be opened.public BootProperties properties()
public RefTable refTable()
public void requestReservation(String protocol, String context, String actor, ArgRunnable handler)
protocol
- The protocol for the requested reservation (i.e., the
protocol that the client wishes to speak to the server providing the
context).context
- The requested context.actor
- The requested actor.handler
- Object to handle the reservation result. When the
result becomes available, it will be passed as an instance of ReservationResult
.public String serverName()
public Trace trace()
Copyright © 2017. All rights reserved.