public class EtherealHost
extends com.jme3.network.service.AbstractHostedConnectionService
| Constructor and Description | 
|---|
EtherealHost()  | 
EtherealHost(ObjectStateProtocol objectProtocol,
            ZoneGrid grid,
            com.simsilica.mathd.Vec3i clientZoneExtents)  | 
EtherealHost(ZoneGrid grid)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addListener(StateListener l)  | 
ObjectStateProtocol | 
getObjectProtocol()  | 
long | 
getStateCollectionInterval()  | 
long | 
getStateCollectionSleepTime()  | 
NetworkStateListener | 
getStateListener(com.jme3.network.HostedConnection hc)  | 
TimeSource | 
getTimeSource()
Returns the aurhoritative time source on the server. 
 | 
ZoneManager | 
getZones()  | 
protected void | 
onInitialize(com.jme3.network.service.HostedServiceManager s)  | 
void | 
removeListener(StateListener l)  | 
void | 
setConnectionObject(com.jme3.network.HostedConnection hc,
                   java.lang.Long selfId,
                   com.simsilica.mathd.Vec3d initialPosition)
Called during connection setup to tell SimEthereal which tracked object
  is the player and what their initial position is. 
 | 
void | 
setObjectProtocol(ObjectStateProtocol objectProtocol)  | 
void | 
setStateCollectionInterval(long nanos)
Sets the state collection interval that the StateCollector will use
  to pull history from the ZoneManager and deliver it to the clients. 
 | 
void | 
setStateCollectionSleepTime(long millis)
Sets the sleep() time for the state collector's idle periods. 
 | 
void | 
setTimeSource(TimeSource timeSource)
Returns the aurhoritative time source on the server. 
 | 
void | 
start()  | 
void | 
startHostingOnConnection(com.jme3.network.HostedConnection hc)  | 
void | 
stop()  | 
void | 
stopHostingOnConnection(com.jme3.network.HostedConnection hc)  | 
void | 
terminate(com.jme3.network.service.HostedServiceManager serviceManager)  | 
connectionAdded, connectionRemoved, getAutoHost, setAutoHostpublic EtherealHost()
public EtherealHost(ZoneGrid grid)
public EtherealHost(ObjectStateProtocol objectProtocol, ZoneGrid grid, com.simsilica.mathd.Vec3i clientZoneExtents)
public TimeSource getTimeSource()
public void setTimeSource(TimeSource timeSource)
public ZoneManager getZones()
public void setObjectProtocol(ObjectStateProtocol objectProtocol)
public ObjectStateProtocol getObjectProtocol()
public void addListener(StateListener l)
public void removeListener(StateListener l)
public void setStateCollectionInterval(long nanos)
public long getStateCollectionInterval()
public void setStateCollectionSleepTime(long millis)
public long getStateCollectionSleepTime()
protected void onInitialize(com.jme3.network.service.HostedServiceManager s)
onInitialize in class com.jme3.network.service.AbstractService<com.jme3.network.service.HostedServiceManager>public void terminate(com.jme3.network.service.HostedServiceManager serviceManager)
terminate in interface com.jme3.network.service.HostedServiceterminate in interface com.jme3.network.service.Service<com.jme3.network.service.HostedServiceManager>terminate in class com.jme3.network.service.AbstractHostedServicepublic void start()
start in interface com.jme3.network.service.HostedServicestart in interface com.jme3.network.service.Service<com.jme3.network.service.HostedServiceManager>start in class com.jme3.network.service.AbstractService<com.jme3.network.service.HostedServiceManager>public void stop()
stop in interface com.jme3.network.service.HostedServicestop in interface com.jme3.network.service.Service<com.jme3.network.service.HostedServiceManager>stop in class com.jme3.network.service.AbstractService<com.jme3.network.service.HostedServiceManager>public NetworkStateListener getStateListener(com.jme3.network.HostedConnection hc)
public void startHostingOnConnection(com.jme3.network.HostedConnection hc)
startHostingOnConnection in class com.jme3.network.service.AbstractHostedConnectionServicepublic void setConnectionObject(com.jme3.network.HostedConnection hc,
                                java.lang.Long selfId,
                                com.simsilica.mathd.Vec3d initialPosition)
public void stopHostingOnConnection(com.jme3.network.HostedConnection hc)
stopHostingOnConnection in class com.jme3.network.service.AbstractHostedConnectionService