KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > jbi > mock > MockSystemState


1 package org.objectweb.petals.jbi.mock;
2
3 import java.util.List JavaDoc;
4
5 import org.objectweb.petals.jbi.management.service.ManagementException;
6 import org.objectweb.petals.jbi.management.systemstate.ComponentState;
7 import org.objectweb.petals.jbi.management.systemstate.ServiceAssemblyState;
8 import org.objectweb.petals.jbi.management.systemstate.SharedLibraryState;
9 import org.objectweb.petals.jbi.management.systemstate.SystemState;
10
11 public class MockSystemState implements SystemState {
12
13     public ComponentState createComponentStateHolder(String JavaDoc componentName,
14             String JavaDoc installURL, String JavaDoc zipURL, String JavaDoc installState,
15             String JavaDoc lifecycleState) throws Exception JavaDoc {
16         return null;
17     }
18
19     public ServiceAssemblyState createServiceAssemblyStateHolder(String JavaDoc saName,
20             String JavaDoc installURL, String JavaDoc zipURL, String JavaDoc lifecycleState)
21         throws Exception JavaDoc {
22         return null;
23     }
24
25     public SharedLibraryState createSharedLibraryStateHolder(String JavaDoc slName,
26             String JavaDoc installURL, String JavaDoc zipURL) throws Exception JavaDoc {
27         return null;
28     }
29
30     public ComponentState deleteComponentStateHolder(String JavaDoc componentName)
31         throws Exception JavaDoc {
32         return null;
33     }
34
35     public ServiceAssemblyState deleteServiceAssemblyStateHolder(String JavaDoc saName)
36         throws Exception JavaDoc {
37         return null;
38     }
39
40     public SharedLibraryState deleteSharedLibraryStateHolder(String JavaDoc slName)
41         throws Exception JavaDoc {
42         return null;
43     }
44
45     public boolean recoverAllComponent() throws ManagementException {
46         return false;
47     }
48
49     public boolean recoverAllEntities() {
50         return false;
51     }
52
53     public boolean recoverAllServiceAssembly() throws ManagementException {
54         // TODO Auto-generated method stub
55
return false;
56     }
57
58     public boolean recoverAllSharedLibrary() throws ManagementException {
59         return false;
60     }
61
62     public List JavaDoc<ComponentState> retrieveAllComponentStates() {
63         return null;
64     }
65
66     public List JavaDoc<ServiceAssemblyState> retrieveAllServiceAssemblyStates() {
67         return null;
68     }
69
70     public List JavaDoc<SharedLibraryState> retrieveAllSharedLibraryStates() {
71         return null;
72     }
73
74     public void updateComponentInstallationState(String JavaDoc componentName,
75             String JavaDoc installState) throws Exception JavaDoc {
76         throw new Exception JavaDoc("updateComponentInstallationState testing exception");
77
78     }
79
80     public void updateComponentLifeCycleState(String JavaDoc componentName,
81             String JavaDoc lifecycleState) throws Exception JavaDoc {
82
83     }
84
85     public void updateServiceAssemblyState(String JavaDoc saName, String JavaDoc lifecycleState)
86         throws Exception JavaDoc {
87     }
88
89 }
90
Popular Tags