Michael Bayne
6fe9ad8a6e
Finished wiring up oid list tracking; made shutdown() work on the cher
...
server; added an easy mechanism to write test modules and invoke them on
the server.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@192 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-08 00:28:49 +00:00
Michael Bayne
5320567957
Commented out some debug logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@190 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-07 21:25:13 +00:00
Michael Bayne
71de825456
Finished up session termination processing; added code to track
...
subscriptions and clear them out when the client disconnects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@189 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-07 21:20:48 +00:00
Michael Bayne
782e9501d6
Implemented object destruction; wired up some missing stuff; created a
...
test server to make some testing easier; various other cleanups.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@188 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-07 20:38:58 +00:00
Michael Bayne
17135945d1
Had to modify the way control is transferred to the dobjmgr thread during
...
session resumption because the client is not subscribed to the client
object at that time. This way is cleaner anyway.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@185 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-04 03:26:00 +00:00
Michael Bayne
db9f2283f3
Modified the client side of the invocation services to communicate the
...
invocation request id to the invocation requester and then also to pass it
along when delivering the invocation response.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@180 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-04 02:54:01 +00:00
Michael Bayne
7f82de4146
Changed InvocationReceiver into an interface because it needn't be a class
...
and that allows classes that normally do other things to register
themselves as an invocation receiver.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@179 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-04 02:31:20 +00:00
Michael Bayne
7688865b96
Modified client internals to ensure that sessionWillStart(),
...
sessionWillResume() and sendBootstrapData() are all consistently called on
the dobjmgr thread because that is the most useful. Added
sessionDidTerminate() but session termination is not implemented yet.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@177 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-04 01:54:34 +00:00
Michael Bayne
c1dd28330f
Register the ReleaseLockEvent.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@174 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-04 01:05:25 +00:00
Michael Bayne
b164f2abc6
No need to tell subscribers about lock release.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@173 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-04 01:05:12 +00:00
Michael Bayne
8d5beffad7
Fixed a bug with removing oids.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@172 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-04 01:04:49 +00:00
Michael Bayne
7873ee98f7
Added facilities for creating named locks on distributed objects that will
...
allow services to prevent repeated invocations of themselves from stepping
on one another because of the serial nature of event processing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@171 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-04 00:39:44 +00:00
Michael Bayne
a831089362
Revamped toString() to be more derived class friendly. Added a
...
ReleaseLockEvent which will be used by the distributed object locking
facilities.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@169 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-04 00:32:11 +00:00
Michael Bayne
973504e06a
Fixed some bugs related to reading partial frames.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@165 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-03 03:10:15 +00:00
Michael Bayne
3990a2d4c3
Log a stack trace if we have a network error.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@164 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-03 03:09:58 +00:00
Michael Bayne
162b179fa7
Changed Client to CherClient.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@162 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-03 02:25:49 +00:00
Michael Bayne
9520eca656
Add hooks for derived classes to do things at the start of a client
...
session and when it resumes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@161 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-03 02:21:16 +00:00
Michael Bayne
aa8011efce
Use a really fast select time so that things are snappy when testing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@159 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-03 02:12:52 +00:00
Michael Bayne
ae73c73ac4
Commented out debug logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@158 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-03 02:12:27 +00:00
Michael Bayne
44f19a5d68
Make nextInvocationId() public so that others have access to monotonically
...
increasing request ids if they need 'em.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@157 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-03 02:12:12 +00:00
Michael Bayne
ba74e4600b
Modified toString() to be extensible.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@150 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-02 06:01:13 +00:00
Michael Bayne
d718b2000b
Register the OidListFieldMarshaller.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@149 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-02 05:13:29 +00:00
Michael Bayne
59ad4a7955
Added support for marshalling oid lists.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@147 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-02 05:09:21 +00:00
Michael Bayne
9d93650b65
Fixed javadoc @see syntax.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@143 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-02 04:49:08 +00:00
Michael Bayne
a8ef12d483
Whoops. Was putting wrong thing in client map.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@126 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-25 17:59:30 +00:00
Michael Bayne
14d47f8c85
Allow credentials to be set after creating the client.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@122 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-25 00:51:05 +00:00
Michael Bayne
0c59e20f23
Logon not login.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@121 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-25 00:26:44 +00:00
Michael Bayne
b56a70ff34
Allow configuration to use derived class for Client and ClientObject.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@108 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-23 21:13:56 +00:00
Michael Bayne
b22d3bb9bd
Added convenience function for zero-argument response.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@107 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-23 21:13:29 +00:00
Michael Bayne
1c8e363f98
Preparing for the additions that will allow oid list tracking facilities
...
to be put in place.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@106 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-23 21:12:55 +00:00
Michael Bayne
3798a6a763
requestOid{Add|Remove}(): called by (eventually automatically generated)
...
derived classes to add/remove oids to/from an oid list field.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@105 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-23 21:11:48 +00:00
Michael Bayne
6c8c08a033
Removed unneeded imports.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@100 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-21 01:09:55 +00:00
Michael Bayne
b6a8e3d598
Added oid lists and the ability to add and remove oids from them
...
(incomplete).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@99 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-21 01:06:49 +00:00
Michael Bayne
398362623b
Added comments that explain the temporal validity constraints on the
...
objects available via the context.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@98 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-21 01:06:24 +00:00
Michael Bayne
1f610d73e9
Log class jockeying; implemented a test client at the party layer that
...
does proper context object creation; small progress on locmgr stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@95 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-20 23:23:50 +00:00
Michael Bayne
581e773eb7
Created a CherContext which will be supplied to code that makes use of the
...
cher services.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@91 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-20 19:49:06 +00:00
Michael Bayne
5678b1edb6
Added code to load up configuration information at server init time.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@78 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-19 21:29:01 +00:00
Michael Bayne
e912b18e27
toString()stravaganza!
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@77 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-19 19:30:14 +00:00
Michael Bayne
41488822dc
Modified invocation request procedure to provide a reference to the client
...
object that initiated the request. Implemented the invocation notification
side of things.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@76 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-19 19:18:07 +00:00
Michael Bayne
359af834ae
Use StringUtil.toString() to toString() our args array so that it is
...
readable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@75 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-19 19:17:06 +00:00
Michael Bayne
f8ccff8f23
More progress on the invocation services.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@74 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-19 18:08:20 +00:00
Michael Bayne
406d181d1a
Use a one second select loop delay for testing purposes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@73 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-19 18:06:57 +00:00
Michael Bayne
d55ce27b2b
Created a test service and provider and sorted out further details.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@71 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-19 07:48:25 +00:00
Michael Bayne
7238d75f89
Initialize _clobj member directly; pass proper subscriber to
...
createObject().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@69 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-19 07:17:46 +00:00
Michael Bayne
915f3db6f1
More work on invocation manager; modified startup sequence so that server
...
can get shit together before bootstrapping the client.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@68 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-19 07:09:16 +00:00
Michael Bayne
6663aae772
Beginnings of invocation services implementation.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@67 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-19 05:56:20 +00:00
Michael Bayne
7cb9d84d54
Wired up the remainder of event dispatch and added facilities for cleaning
...
up after objects when they have no more subscribers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@38 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-06-13 05:17:55 +00:00
Michael Bayne
6fd554de7c
Be more verbose about logging typed object errors.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@37 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-06-13 05:16:25 +00:00
Michael Bayne
55a648dcf9
These need zero argument constructors to allow for unserialization.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@36 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-06-13 05:15:49 +00:00
Michael Bayne
c8b13e3bca
Documented valid dobj types in DObject; implemented value marshaller which
...
can read and write all of the valid dobj types over the network; wired up
the attribute changed events to serialize and unserialize their values.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@35 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-06-12 02:57:30 +00:00