Move this up with its public friends.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5200 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -138,6 +138,23 @@ public class PresentsServer
|
||||
TimeBaseProvider.init(_invmgr, _omgr);
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts up all of the server services and enters the main server event loop.
|
||||
*/
|
||||
public void run ()
|
||||
{
|
||||
// post a unit that will start up the connection manager when everything else in the
|
||||
// dobjmgr queue is processed
|
||||
_omgr.postRunnable(new Runnable() {
|
||||
public void run () {
|
||||
// start up the connection manager
|
||||
_conmgr.start();
|
||||
}
|
||||
});
|
||||
// invoke the dobjmgr event loop
|
||||
_omgr.run();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the default object access policy for all {@link DObject} instances. The default
|
||||
* default policy is to allow all subscribers but reject all modifications by the client.
|
||||
@@ -163,23 +180,6 @@ public class PresentsServer
|
||||
return Client.DEFAULT_DATAGRAM_PORTS;
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts up all of the server services and enters the main server event loop.
|
||||
*/
|
||||
public void run ()
|
||||
{
|
||||
// post a unit that will start up the connection manager when everything else in the
|
||||
// dobjmgr queue is processed
|
||||
_omgr.postRunnable(new Runnable() {
|
||||
public void run () {
|
||||
// start up the connection manager
|
||||
_conmgr.start();
|
||||
}
|
||||
});
|
||||
// invoke the dobjmgr event loop
|
||||
_omgr.run();
|
||||
}
|
||||
|
||||
/**
|
||||
* Called once the invoker and distributed object manager have both completed processing all
|
||||
* remaining events and are fully shutdown. <em>Note:</em> this is called as the last act of
|
||||
|
||||
Reference in New Issue
Block a user