ConnectionManager

org.nlogo.hubnet.server.ConnectionManager
class ConnectionManager(val connection: ConnectionInterface, val clientEventListener: ClientEventListener, workspace: AbstractWorkspaceScala) extends ConnectionManagerInterface, Runnable

Attributes

Source
ConnectionManager.scala
Graph
Supertypes
trait Runnable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def broadcast(tag: String, message: Any): Unit

Attributes

Source
ConnectionManager.scala
def broadcast(obj: Any): Unit

Attributes

Source
ConnectionManager.scala
def broadcastPlotControl(a: Any, plotName: String): Unit

Attributes

Source
ConnectionManager.scala
def clearOverride(client: String, agentKind: AgentKind, varName: String, overrides: Seq[Long]): Boolean

Attributes

Source
ConnectionManager.scala

Attributes

Source
ConnectionManager.scala

Returns a handshake message containing the current Interface specification. Called by ServerSideConnection.

Returns a handshake message containing the current Interface specification. Called by ServerSideConnection.

Attributes

Source
ConnectionManager.scala

Places a MessageEnvelope received from a client on the queue to be accessed by the NetLogo code when hubnet-fetch-message and hubnet-message-waiting? called.

Places a MessageEnvelope received from a client on the queue to be accessed by the NetLogo code when hubnet-fetch-message and hubnet-message-waiting? called.

Attributes

Source
ConnectionManager.scala

Completes the login process for a client. Called by ServerSideConnection.

Completes the login process for a client. Called by ServerSideConnection.

Attributes

Returns

true if the client was succesfully logged on, false if the desired client id is already taken.

Source
ConnectionManager.scala

Attributes

Source
ConnectionManager.scala

Attributes

Source
ConnectionManager.scala

Attributes

Source
ConnectionManager.scala

Attributes

Source
ConnectionManager.scala
def logMessage(message: String): Unit

Attributes

Source
ConnectionManager.scala
def port: Int

Attributes

Source
ConnectionManager.scala
def putClientData(messageEnvelope: MessageEnvelope): Unit

Enqueues a message from the client to the manager.

Enqueues a message from the client to the manager.

Attributes

Source
ConnectionManager.scala

Attributes

Source
ConnectionManager.scala
def removeClient(userid: String, notifyClient: Boolean, reason: String): Boolean

Removes a client. Deletes the client from the client map and disconnects it.

Removes a client. Deletes the client from the client map and disconnects it.

Attributes

Source
ConnectionManager.scala
def run(): Unit

Attributes

Source
ConnectionManager.scala
def send(userId: String, tag: String, message: Serializable & AnyRef): Boolean

Sends a message to a client. Specified by AbstractConnectionManager.

Sends a message to a client. Specified by AbstractConnectionManager.

Attributes

Returns

true if the message was sent

Source
ConnectionManager.scala
def sendAgentPerspective(client: String, perspective: Int, agentKind: AgentKind, id: Long, radius: Double, serverMode: Boolean): Unit

Attributes

Source
ConnectionManager.scala
def sendOverrideList(client: String, agentKind: AgentKind, varName: String, overrides: Map[Long, AnyRef]): Boolean

Attributes

Source
ConnectionManager.scala
def sendPlot(clientId: String, plot: PlotInterface): Unit

Attributes

Source
ConnectionManager.scala
def sendPlotControl(userId: String, a: Any, plotName: String): Unit

Attributes

Source
ConnectionManager.scala
def sendPlots(clientId: String): Unit

Attributes

Source
ConnectionManager.scala
def sendTextMessage(node: String, text: String): Boolean

Attributes

Source
ConnectionManager.scala
def sendUserMessage(node: String, text: String): Boolean

Attributes

Source
ConnectionManager.scala
def setClientInterface(interfaceType: String, interfaceInfo: Iterable[ClientInterface]): Unit

Attributes

Source
ConnectionManager.scala
def setViewEnabled(mirror: Boolean): Unit

Attributes

Source
ConnectionManager.scala
def shutdown(): Boolean

Attributes

Returns

true if the AbtractConnectionManager shuts down succesfully

Source
ConnectionManager.scala
def startup(serverName: String, selectedNetwork: (NetworkInterface, InetAddress)): Boolean

Attributes

Source
ConnectionManager.scala