1 package org.objectweb.petals.jbi.mock; 2 3 import java.util.List ; 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 componentName, 14 String installURL, String zipURL, String installState, 15 String lifecycleState) throws Exception { 16 return null; 17 } 18 19 public ServiceAssemblyState createServiceAssemblyStateHolder(String saName, 20 String installURL, String zipURL, String lifecycleState) 21 throws Exception { 22 return null; 23 } 24 25 public SharedLibraryState createSharedLibraryStateHolder(String slName, 26 String installURL, String zipURL) throws Exception { 27 return null; 28 } 29 30 public ComponentState deleteComponentStateHolder(String componentName) 31 throws Exception { 32 return null; 33 } 34 35 public ServiceAssemblyState deleteServiceAssemblyStateHolder(String saName) 36 throws Exception { 37 return null; 38 } 39 40 public SharedLibraryState deleteSharedLibraryStateHolder(String slName) 41 throws Exception { 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 return false; 56 } 57 58 public boolean recoverAllSharedLibrary() throws ManagementException { 59 return false; 60 } 61 62 public List <ComponentState> retrieveAllComponentStates() { 63 return null; 64 } 65 66 public List <ServiceAssemblyState> retrieveAllServiceAssemblyStates() { 67 return null; 68 } 69 70 public List <SharedLibraryState> retrieveAllSharedLibraryStates() { 71 return null; 72 } 73 74 public void updateComponentInstallationState(String componentName, 75 String installState) throws Exception { 76 throw new Exception ("updateComponentInstallationState testing exception"); 77 78 } 79 80 public void updateComponentLifeCycleState(String componentName, 81 String lifecycleState) throws Exception { 82 83 } 84 85 public void updateServiceAssemblyState(String saName, String lifecycleState) 86 throws Exception { 87 } 88 89 } 90 | Popular Tags |