| Package | Description |
|---|---|
| com.jme3.network |
The network package contains the public API for the jME3
SpiderMonkey networking module.
|
| com.jme3.network.base | |
| com.jme3.network.rmi | |
| com.jme3.network.service | |
| com.jme3.network.service.rmi | |
| com.jme3.network.service.rpc | |
| com.jme3.network.service.serializer | |
| com.jme3.network.util |
| Modifier and Type | Method and Description |
|---|---|
HostedConnection |
Server.getConnection(int id)
Retrieves a hosted connection by ID.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<HostedConnection> |
Server.getConnections()
Retrieves a read-only collection of all currently connected connections.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ConnectionListener.connectionAdded(Server server,
HostedConnection conn)
Called when a connection has been added to the specified server and
is fully setup.
|
void |
ConnectionListener.connectionRemoved(Server server,
HostedConnection conn)
Called when a connection has been removed from the specified
server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Server.addMessageListener(MessageListener<? super HostedConnection> listener)
Adds a listener that will be notified when any message or object
is received from one of the clients.
|
void |
Server.addMessageListener(MessageListener<? super HostedConnection> listener,
java.lang.Class... classes)
Adds a listener that will be notified when messages of the specified
types are received from one of the clients.
|
void |
Server.broadcast(Filter<? super HostedConnection> filter,
Message message)
Sends the specified message to all connected clients that match
the filter.
|
void |
Server.broadcast(int channel,
Filter<? super HostedConnection> filter,
Message message)
Sends the specified message over the specified alternate channel to all connected
clients that match the filter.
|
void |
Server.removeMessageListener(MessageListener<? super HostedConnection> listener)
Removes a previously registered wildcard listener.
|
void |
Server.removeMessageListener(MessageListener<? super HostedConnection> listener,
java.lang.Class... classes)
Removes a previously registered type-specific listener from
the specified types.
|
| Modifier and Type | Class and Description |
|---|---|
protected class |
DefaultServer.Connection |
| Modifier and Type | Method and Description |
|---|---|
protected HostedConnection |
DefaultServer.getConnection(Endpoint endpoint) |
protected HostedConnection |
KernelAdapter.getConnection(Endpoint p) |
HostedConnection |
DefaultServer.getConnection(int id) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<HostedConnection> |
DefaultServer.getConnections() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultServer.dispatch(HostedConnection source,
Message m) |
protected void |
DefaultServer.fireConnectionAdded(HostedConnection conn) |
protected void |
DefaultServer.fireConnectionRemoved(HostedConnection conn) |
void |
DefaultServer.Redispatch.messageReceived(HostedConnection source,
Message m) |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultServer.addMessageListener(MessageListener<? super HostedConnection> listener) |
void |
DefaultServer.addMessageListener(MessageListener<? super HostedConnection> listener,
java.lang.Class... classes) |
void |
DefaultServer.broadcast(Filter<? super HostedConnection> filter,
Message message) |
void |
DefaultServer.broadcast(int channel,
Filter<? super HostedConnection> filter,
Message message) |
void |
DefaultServer.removeMessageListener(MessageListener<? super HostedConnection> listener) |
void |
DefaultServer.removeMessageListener(MessageListener<? super HostedConnection> listener,
java.lang.Class... classes) |
| Constructor and Description |
|---|
FilterAdapter(Filter<? super HostedConnection> delegate) |
KernelAdapter(DefaultServer server,
Kernel kernel,
MessageProtocol protocol,
MessageListener<HostedConnection> messageDispatcher,
boolean reliable) |
| Modifier and Type | Method and Description |
|---|---|
void |
ObjectStore.ServerEventHandler.connectionAdded(Server server,
HostedConnection conn) |
void |
ObjectStore.ServerEventHandler.connectionRemoved(Server server,
HostedConnection conn) |
void |
ObjectStore.ServerEventHandler.messageReceived(HostedConnection source,
Message m) |
| Constructor and Description |
|---|
RemoteObject(ObjectStore store,
HostedConnection client) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
HostedServiceManager.addConnection(HostedConnection hc)
Called internally when a new connection has been added so that the
services can be notified.
|
void |
AbstractHostedConnectionService.connectionAdded(Server server,
HostedConnection hc)
Called internally when a new connection is detected for
the server.
|
void |
HostedServiceManager.ConnectionObserver.connectionAdded(Server server,
HostedConnection hc) |
void |
AbstractHostedService.connectionAdded(Server server,
HostedConnection hc)
Default implementation does nothing.
|
void |
AbstractHostedConnectionService.connectionRemoved(Server server,
HostedConnection hc)
Called internally when an existing connection is leaving
the server.
|
void |
HostedServiceManager.ConnectionObserver.connectionRemoved(Server server,
HostedConnection hc) |
void |
AbstractHostedService.connectionRemoved(Server server,
HostedConnection hc)
Default implementation does nothing.
|
protected void |
HostedServiceManager.removeConnection(HostedConnection hc)
Called internally when a connection has been removed so that the
services can be notified.
|
abstract void |
AbstractHostedConnectionService.startHostingOnConnection(HostedConnection hc)
Performs implementation specific connection hosting setup.
|
abstract void |
AbstractHostedConnectionService.stopHostingOnConnection(HostedConnection hc)
Performs implementation specific connection tear-down.
|
| Modifier and Type | Method and Description |
|---|---|
static HostedConnection |
RmiContext.getRmiConnection()
Returns the HostedConnection that is responsible for any
RMI-related calls on this thread.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RmiHostedService.connectionAdded(Server server,
HostedConnection hc)
Called internally when a new connection is detected for
the server.
|
void |
RmiHostedService.connectionRemoved(Server server,
HostedConnection hc)
Called internally when an existing connection is leaving
the server.
|
RmiRegistry |
RmiHostedService.getRmiRegistry(HostedConnection hc)
Returns the RMI registry for the specific HostedConnection.
|
void |
RmiHostedService.startHostingOnConnection(HostedConnection hc)
Sets up RMI hosting services for the hosted connection allowing
getRmiRegistry() to return a valid RmiRegistry object.
|
void |
RmiHostedService.stopHostingOnConnection(HostedConnection hc)
Removes any RMI hosting services associated with the specified
connection.
|
| Constructor and Description |
|---|
RmiRegistry(HostedConnection context,
RpcConnection rpc,
short rmiId,
byte defaultChannel) |
| Modifier and Type | Method and Description |
|---|---|
RpcConnection |
RpcHostedService.getRpcConnection(HostedConnection hc)
Retrieves the RpcConnection for the specified HostedConnection
if that HostedConnection has had RPC services started using
startHostingOnConnection() (or via autohosting).
|
void |
RpcHostedService.startHostingOnConnection(HostedConnection hc)
Sets up RPC hosting services for the hosted connection allowing
getRpcConnection() to return a valid RPC connection object.
|
void |
RpcHostedService.stopHostingOnConnection(HostedConnection hc)
Removes any RPC hosting services associated with the specified
connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ServerSerializerRegistrationsService.connectionAdded(Server server,
HostedConnection hc) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
SessionDataDelegator.getSourceDelegate(HostedConnection source)
Returns the attributeName attribute of the supplied source
HostConnection.
|
protected void |
SessionDataDelegator.miss(HostedConnection source)
Called internally when there is no session object
for the current attribute name attached to the passed source
HostConnection.
|