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