org.cougaar.core.wp.resolver

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Cougaar12_4 » org.cougaar.core.wp.resolver 
org.cougaar.core.wp.resolver
Java Source File NameTypeComment
CacheManager.javaClass This component is the white pages client-side cache.
CacheService.javaInterface This service is the CacheManager 's interface for the Resolver for cache lookups.
ClientTransport.javaClass This component sends and receives messages for the resolver.
Lease.javaClass A "successful lease" response from the ClientTransport 's ModifyService , indicating to the LeaseManager that either a new Record was successfully bound or an existing Lease was extended.
LeaseDenied.javaClass A "lease denied" response from the ClientTransport 's ModifyService , indicating to the LeaseManager a failed bind or lease renewal.

The UID will match the UID of the Record that has been denied.

Currently this can only be caused by server-side deconfliction over race conditions, primarily based upon agent incarnation numbers.

For example, say AgentX moves from NodeA to NodeB. The following binds may be in progress:

 NodeA sends:
 AgentX={..., version=version:///1234/5678, ...}
 NodeB sends:
 AgentX={..., version=version:///1234/9999, ...}
 
The format of the version entry URI is:
 version:///incarnation/moveId
 
where the incarnation number is incremented per restart (excluding moves) and the moveId is incremented per move or restart (i.e.
LeaseManager.javaClass This component watches for bind/unbind requests and maintains the leases in the server.
LeaseNotKnown.javaClass An "unknown lease uid" response from the ClientTransport 's ModifyService , indicating to the LeaseManager that an attempt to renew a lease failed because the server doesn't know a lease with the specified UID.

If a client attempts to renew a Lease by passing the UID, and the server doesn't know the UID, then this response is returned to request the full Record of data.

This is used to cover two cases:

  1. The server expired the lease due to lack of renewal (e.g.
LeaseService.javaInterface This service is the LeaseManager 's interface for the Resolver for bind/unbind requests.
LookupService.javaInterface This service is the ClientTransport 's interface to the CacheManager for lookup messaging.

This API hides the MTS and messaging details.

ModifyService.javaInterface This service is the ClientTransport 's interface for the LeaseManager for sending bind/unbind messages.

This API hides the MTS and messaging details.

NameTag.javaClass A simple wrapper around an object that adds a String name.

This is used to tag a request (e.g.

PingService.javaInterface This service is advertised by the ClientTransport for the SelectManager to send "ping" messages to white pages servers.

This API hides the MTS and messaging details.

Record.javaClass A data response from a successful LookupService lookup, or a request parameter to a ModifyService lease renewal.

The UID is specific to this view of the data.

RecordIsValid.javaClass A data response from a successful ClientTransport LookupService lookup to the CacheManager , which validates the client's cached Record and extends the TTL for the cached data.

This is only used if the client passed a non-null UID in the lookup.

The client sent the UID of the Record, and this "RecordIsValid" confirms that the Record with that UID hasn't changed and permits the client to cache the Record for a little longer.

It's possible for a client to evict the entry before the "record is valid" is received, e.g.

Resolver.javaClass This component is the front-end for the client-side white pages resolver, which advertises the WhitePagesService .
ResolverClient.javaInterface Optional client interface used by the ResolverProxy .
ResolverContainer.javaClass This component is an empty org.cougaar.core.component.Container for the white pages Resolver components.
ResolverProxy.javaClass This component an optional proxy to the WhitePagesService resolver that obtains the local agent's name and tags all requests with that name.

This should be loaded into all agents.

SelectManager.javaClass This component advertises the SelectService , which controls the ClientTransport 's server selection and uses the BootstrapService to initialize the cache.

This implementation uses the BootstrapService to discover servers and the PingService to send ping messages to the found servers, measuring the round-trip-time (RTT).

SelectService.javaInterface This service is the "server selection service" advertised by the SelectManager that the ClientTransport uses to select a white pages server.

The primary job of this service is to locate servers and select the best one.

ServiceFinder.javaClass A utility class to hide late-binding Service lookups.
ServiceProviderBase.javaClass A base class for a ServiceProvider with registered clients.
TransportBase.javaClass This component is a base class that handles MessageSwitchService details for the ClientTransport .

This is nearly generic; with a bit more work it could be a useful generic base class.

Util.javaClass Utility methods for batching requests.
WPAnswer.javaClass A message from a white pages server to a client, or between servers.
WPQuery.javaClass A message from a white pages cache to a server, or between servers.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.