Revision 038ac9a4 src/com/rackspace/cloud/servers/api/client/EntityManager.java

b/src/com/rackspace/cloud/servers/api/client/EntityManager.java
7 7

  
8 8
/**
9 9
 * @author Mike Mayo - mike.mayo@rackspace.com - twitter.com/greenisus
10
 *
10
 * 
11 11
 */
12 12
public class EntityManager {
13
	
13

  
14 14
	protected String cacheBuster() {
15 15
		Calendar calendar = Calendar.getInstance();
16 16
		java.util.Date now = calendar.getTime();
17
		java.sql.Timestamp currentTimestamp = new java.sql.Timestamp(now.getTime());		
17
		java.sql.Timestamp currentTimestamp = new java.sql.Timestamp(
18
				now.getTime());
18 19
		return "?now=" + currentTimestamp.getTime();
19 20
	}
20
		
21

  
21 22
	//
22 23
	// CRUD Operations
23 24
	//
24
	
25
	public void create(Entity entity) throws CloudServersException {		
25

  
26
	public void create(Entity entity) throws CloudServersException {
26 27
	}
27
	
28

  
28 29
	public void remove(Entity e) {
29
		
30

  
30 31
	}
31
	
32

  
32 33
	public void update(Entity e) {
33
		
34

  
34 35
	}
35
	
36

  
36 37
	public void refresh(Entity e) {
37
		
38

  
38 39
	}
39
	
40

  
40 41
	public Entity find(long id) throws CloudServersException {
41 42
		return null;
42 43
	}
43
	
44

  
44 45
	//
45 46
	// Polling Operations
46 47
	//
47 48
	public void wait(Entity e) {
48
		
49

  
49 50
	}
50
	
51

  
51 52
	public void wait(Entity e, long timeout) {
52
	
53

  
53 54
	}
54 55
	/*
55
	public void notify(Entity e, ChangeListener ch) {
56
		
57
	}
58
	
59
	public void stopNotify(Entity e, ChangeListener ch) {
60
		
61
	}
62
	*/
63
	
56
	 * public void notify(Entity e, ChangeListener ch) {
57
	 * 
58
	 * }
59
	 * 
60
	 * public void stopNotify(Entity e, ChangeListener ch) {
61
	 * 
62
	 * }
63
	 */
64

  
64 65
	//
65 66
	// Lists
66 67
	//
67 68
	/*
68
	public ArrayList createList(boolean detail) throws CloudServersException {
69
		return null;
70
	}
71
	public EntityList createDeltaList(boolean detail, long changesSince) {
72
		return null;
73
	}	
74
	public EntityList createList(boolean detail, long offset, long limit) {
75
		return null;
76
	}
77
	public EntityList createDeltaList(boolean detail, long changesSince, long offset, long limit) {
78
		return null;
79
	}
80
	*/
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
	 */
81 76
}

Also available in: Unified diff