Statistics
| Branch: | Revision:

root / src / com / rackspace / cloud / loadbalancer / api / client / EntityManager.java @ 23bc5e75

History | View | Annotate | Download (1.4 kB)

1 23bc5e75 Phillip Toohill
/**
2 23bc5e75 Phillip Toohill
 * 
3 23bc5e75 Phillip Toohill
 */
4 23bc5e75 Phillip Toohill
package com.rackspace.cloud.loadbalancer.api.client;
5 23bc5e75 Phillip Toohill
6 23bc5e75 Phillip Toohill
import java.util.Calendar;
7 23bc5e75 Phillip Toohill
8 23bc5e75 Phillip Toohill
import com.rackspace.cloud.loadbalancers.api.client.http.LoadBalancersException;
9 23bc5e75 Phillip Toohill
10 23bc5e75 Phillip Toohill
public class EntityManager {
11 23bc5e75 Phillip Toohill
        
12 23bc5e75 Phillip Toohill
        protected String cacheBuster() {
13 23bc5e75 Phillip Toohill
                Calendar calendar = Calendar.getInstance();
14 23bc5e75 Phillip Toohill
                java.util.Date now = calendar.getTime();
15 23bc5e75 Phillip Toohill
                java.sql.Timestamp currentTimestamp = new java.sql.Timestamp(now.getTime());                
16 23bc5e75 Phillip Toohill
                return "?now=" + currentTimestamp.getTime();
17 23bc5e75 Phillip Toohill
        }
18 23bc5e75 Phillip Toohill
                
19 23bc5e75 Phillip Toohill
        //
20 23bc5e75 Phillip Toohill
        // CRUD Operations
21 23bc5e75 Phillip Toohill
        //
22 23bc5e75 Phillip Toohill
        
23 23bc5e75 Phillip Toohill
        public void create(Entity entity) throws LoadBalancersException {                
24 23bc5e75 Phillip Toohill
        }
25 23bc5e75 Phillip Toohill
        
26 23bc5e75 Phillip Toohill
        public void remove(Entity e) {
27 23bc5e75 Phillip Toohill
                
28 23bc5e75 Phillip Toohill
        }
29 23bc5e75 Phillip Toohill
        
30 23bc5e75 Phillip Toohill
        public void update(Entity e) {
31 23bc5e75 Phillip Toohill
                
32 23bc5e75 Phillip Toohill
        }
33 23bc5e75 Phillip Toohill
        
34 23bc5e75 Phillip Toohill
        public void refresh(Entity e) {
35 23bc5e75 Phillip Toohill
                
36 23bc5e75 Phillip Toohill
        }
37 23bc5e75 Phillip Toohill
        
38 23bc5e75 Phillip Toohill
        public Entity find(long id) throws Exception {
39 23bc5e75 Phillip Toohill
                return null;
40 23bc5e75 Phillip Toohill
        }
41 23bc5e75 Phillip Toohill
        
42 23bc5e75 Phillip Toohill
        //
43 23bc5e75 Phillip Toohill
        // Polling Operations
44 23bc5e75 Phillip Toohill
        //
45 23bc5e75 Phillip Toohill
        public void wait(Entity e) {
46 23bc5e75 Phillip Toohill
                
47 23bc5e75 Phillip Toohill
        }
48 23bc5e75 Phillip Toohill
        
49 23bc5e75 Phillip Toohill
        public void wait(Entity e, long timeout) {
50 23bc5e75 Phillip Toohill
        
51 23bc5e75 Phillip Toohill
        }
52 23bc5e75 Phillip Toohill
        /*
53 23bc5e75 Phillip Toohill
        public void notify(Entity e, ChangeListener ch) {
54 23bc5e75 Phillip Toohill
                
55 23bc5e75 Phillip Toohill
        }
56 23bc5e75 Phillip Toohill
        
57 23bc5e75 Phillip Toohill
        public void stopNotify(Entity e, ChangeListener ch) {
58 23bc5e75 Phillip Toohill
                
59 23bc5e75 Phillip Toohill
        }
60 23bc5e75 Phillip Toohill
        */
61 23bc5e75 Phillip Toohill
        
62 23bc5e75 Phillip Toohill
        //
63 23bc5e75 Phillip Toohill
        // Lists
64 23bc5e75 Phillip Toohill
        //
65 23bc5e75 Phillip Toohill
        /*
66 23bc5e75 Phillip Toohill
        public ArrayList createList(boolean detail) throws LoadBalancersException {
67 23bc5e75 Phillip Toohill
                return null;
68 23bc5e75 Phillip Toohill
        }
69 23bc5e75 Phillip Toohill
        public EntityList createDeltaList(boolean detail, long changesSince) {
70 23bc5e75 Phillip Toohill
                return null;
71 23bc5e75 Phillip Toohill
        }        
72 23bc5e75 Phillip Toohill
        public EntityList createList(boolean detail, long offset, long limit) {
73 23bc5e75 Phillip Toohill
                return null;
74 23bc5e75 Phillip Toohill
        }
75 23bc5e75 Phillip Toohill
        public EntityList createDeltaList(boolean detail, long changesSince, long offset, long limit) {
76 23bc5e75 Phillip Toohill
                return null;
77 23bc5e75 Phillip Toohill
        }
78 23bc5e75 Phillip Toohill
        */
79 23bc5e75 Phillip Toohill
}