Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (1.3 kB)

1
/**
2
 * 
3
 */
4
package com.rackspace.cloud.loadbalancer.api.client;
5

    
6
import java.util.Calendar;
7

    
8

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