Package | Description |
---|---|
org.elkoserver.foundation.actor |
Elko server classes representing entities with remote connections to a server.
|
org.elkoserver.foundation.json |
JSON message handling infrastructure inside Elko servers.
|
org.elkoserver.foundation.server |
Core common server implementation classes for Elko.
|
org.elkoserver.server.context |
The Elko Context Server.
|
org.elkoserver.server.workshop |
The Elko Workshop Server.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BasicProtocolActor
Interface to be implemented by actor classes making use of the
BasicProtocolHandler message handler implementation, or handlers derived
from it. |
Modifier and Type | Class and Description |
---|---|
class |
Actor
An object representing some entity interacting with this server (whatever
server this is) over the net.
|
class |
NonRoutingActor
An
Actor that receives untargeted JSON messages over its connection. |
class |
RoutingActor
An
Actor that receives targeted JSON messages over its connection. |
Modifier and Type | Method and Description |
---|---|
void |
NonRoutingActor.debug(Deliverer from,
String msg)
JSON method for the 'debug' message.
|
void |
RefTable.dispatchMessage(Deliverer from,
DispatchTarget target,
JSONObject message)
Dispatch a JSON message directly to the appropriate method of a given
object.
|
void |
RefTable.dispatchMessage(Deliverer from,
JSONObject message)
Dispatch a JSON message to the appropriate method on the object that the
message says it is addressed to.
|
void |
NonRoutingActor.ping(Deliverer from,
OptString tag)
JSON method for the 'ping' message.
|
void |
NonRoutingActor.pong(Deliverer from,
OptString tag)
JSON method for the 'pong' message.
|
Modifier and Type | Method and Description |
---|---|
Deliverer |
SourceRetargeter.findEffectiveSource(DispatchTarget target)
Designate an object that should be treated as the source of a message
instead of this object.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageDispatcher.dispatchMessage(Deliverer from,
DispatchTarget target,
JSONObject message)
Dispatch a received JSON message by invoking the appropriate JSON method
on the appropriate object with the parameters from the message.
|
void |
DefaultDispatchTarget.handleMessage(Deliverer from,
JSONObject message)
Handle a message for which the
MessageDispatcher could not
find an appropriate specific method to invoke. |
Modifier and Type | Class and Description |
---|---|
class |
ServiceActor
Actor for a connection to an external service.
|
class |
ServiceLink
Class representing a connection to a service rather than to a specific
client or server.
|
Modifier and Type | Class and Description |
---|---|
class |
Context
A
Context is a place for interaction between connected users. |
class |
InternalActor
Actor for an internal connection to a context server from within the server
farm.
|
class |
User
A User represents a connection to someone entered into a context from a
client.
|
Modifier and Type | Method and Description |
---|---|
Deliverer |
User.neighbors()
Obtain a message deliverer for sending messages to the other users
in this user's context.
|
Deliverer |
Context.neighbors(Deliverer exclude)
Obtain a Deliverer that will deliver to all of a user's neighbors in
this context.
|
static Deliverer |
Context.toList(List<BasicObject> toList)
Obtain a Deliverer that will deliver to an arbitrary list of users.
|
static Deliverer |
Context.toListExcluding(List<BasicObject> toList,
Deliverer exclude)
Obtain a Deliverer that will deliver to an arbitrary list of users
except for one distinguished user.
|
Modifier and Type | Method and Description |
---|---|
void |
Context.exit(Deliverer from)
Handle the 'exit' verb.
|
void |
BasicObject.handleMessage(Deliverer from,
JSONObject msg)
Handle an otherwise unhandled message.
|
Deliverer |
Context.neighbors(Deliverer exclude)
Obtain a Deliverer that will deliver to all of a user's neighbors in
this context.
|
void |
User.sendObjectDescription(Deliverer to,
Referenceable maker)
Transmit a description of this user as a series of 'make' messages,
such that the receiver will be able to construct a local presence of it.
|
void |
Item.sendObjectDescription(Deliverer to,
Referenceable maker)
Transmit a description of this item as a series of 'make' messages,
such that the receiver will be able to construct a local presence of it.
|
void |
Context.sendObjectDescription(Deliverer to,
Referenceable maker)
Transmit a description of this context as a series of 'make' messages,
such that the receiver will be able to construct a local presence of it.
|
abstract void |
BasicObject.sendObjectDescription(Deliverer to,
Referenceable maker)
Transmit a description of this object as a series of 'make' messages,
such that the receiver will be able to construct a local presence of it.
|
void |
Context.sendToNeighbors(Deliverer exclude,
JSONLiteral message)
Send a message to everyone in this context save one.
|
void |
User.sendUserDescription(Deliverer to,
Referenceable maker,
boolean you)
Transmit a description of this user as a series of 'make' messages.
|
static Deliverer |
Context.toListExcluding(List<BasicObject> toList,
Deliverer exclude)
Obtain a Deliverer that will deliver to an arbitrary list of users
except for one distinguished user.
|
boolean |
BasicObject.visibleTo(Deliverer receiver)
Test if this object is visible to a given receiver.
|
Modifier and Type | Class and Description |
---|---|
class |
WorkshopActor
Actor for a connection to a workshop.
|
Copyright © 2017. All rights reserved.