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