summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/entity/proxy/package-info.java
blob: 404ca0799c0e93f4a2c1c4f8d2d800aac8ba9f8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
 * The Proxy API is a major part of the client-side functionality of the 
 * CRISTAL API, which provides client-side proxy objects that represent the 
 * Items and Agents on the server. It is the main entry point for many 
 * components, such as Scripts and Job execution. An AgentProxy is returned on
 * login, and should be used as the root for all user-based CRISTAL interactions. 
 * 
 * <p>The Proxy API provides the following functionality:
 * 
 * <ul>
 * <li><b>Transparent storage integration</b> - Combines direct database access
 * with remote calls to data retrieval methods on the Items. This allows client 
 * processes to load Item data directly from databases whenever possible 
 * without bothering the CRISTAL server. For example, the LDAP Lookup 
 * implementation allows client processes to load Item Properties directly from 
 * the LDAP server.</li>
 * 
 * <li><b>Data object browsing and loading</b> - The proxy objects allow client
 * processes to browse through the storage cluster structure beneath the Item, 
 * and access the objects directly without having to unmarshall their XML forms.
 * All object types have their own get methods, so there's no need to construct
 * their paths nor cast.</b>
 *
 * <li><b>Item object and directory change notification</b> - When a proxy
 * object is created, it notifies the CRISTAL server that its Item is located
 * on, and it notified of all additions, deletions and modifications of objects
 * within that Item so it can remain up-to-date. Client applications may use 
 * the {@link ProxyObserver} interface to be notified of changes, using 
 * {@link MemberSubscription} instances to set up push subscriptions to cluster
 * contents. It also provides a mechanism for subscribing to directory paths, 
 * so that domain tree browsers can implement asynchronous loading and update
 * themselves when the tree changes.</li>
 * 
 * <li><b>Job querying</b> - Job objects may be retrieved directly from an 
 * ItemProxy, and may also be filtered by Activity name.</li>
 * 
 * <li><b>Job execution</b> - The {@link AgentProxy} provides the main 
 * execution method for Jobs. This method performs outcome validation and 
 * executes required CRISTAL Scripts in the client process before the execution 
 * is requested on the server. Additional execution methods to call Predefined
 * Steps are also available.
 * 
 * <li><b>Utility methods for resolution and marshalling</b> - The AgentProxy 
 * provides utility methods for finding Items in the directory by name, path, 
 * or system key, and gives access to the Castor XML marshalling system to 
 * transform CRISTAL objects to XML and back again.</li>
 * </ul>
 * <p>The core object of the Proxy API is the ProxyManager, which is initialized 
 * as a static member of the Gateway on initialization. This object can be used
 * to create a Proxy object from a Path from the directory, and maintains a
 * connection to the server called the Proxy Update Notification Channel, 
 * through which it subscribes to Items it holds proxies for so it can be 
 * informed of changes to Item data through {@link ProxyMessage} objects.
 * 
 */
package com.c2kernel.entity.proxy;