1 22 package org.objectweb.petals.jbi.management.systemstate; 23 24 import java.util.List ; 25 26 import org.objectweb.petals.jbi.management.service.ManagementException; 27 28 35 public interface SystemState { 36 37 48 ComponentState createComponentStateHolder(String componentName, 49 String installURL, String zipURL, String installState, 50 String lifecycleState) throws Exception ; 51 52 62 ServiceAssemblyState createServiceAssemblyStateHolder(String saName, 63 String installURL, String zipURL, String lifecycleState) 64 throws Exception ; 65 66 75 SharedLibraryState createSharedLibraryStateHolder(String slName, 76 String installURL, String zipURL) throws Exception ; 77 78 84 ComponentState deleteComponentStateHolder(String componentName) 85 throws Exception ; 86 87 93 ServiceAssemblyState deleteServiceAssemblyStateHolder(String saName) 94 throws Exception ; 95 96 102 SharedLibraryState deleteSharedLibraryStateHolder(String slName) 103 throws Exception ; 104 105 110 boolean recoverAllComponent() throws ManagementException; 111 112 119 boolean recoverAllEntities() throws ManagementException; 120 121 126 boolean recoverAllServiceAssembly() throws ManagementException; 127 128 133 boolean recoverAllSharedLibrary() throws ManagementException; 134 135 List <ComponentState> retrieveAllComponentStates(); 136 137 List <ServiceAssemblyState> retrieveAllServiceAssemblyStates(); 138 139 List <SharedLibraryState> retrieveAllSharedLibraryStates(); 140 141 147 void updateComponentInstallationState(String componentName, 148 String installState) throws Exception ; 149 150 156 void updateComponentLifeCycleState(String componentName, 157 String lifecycleState) throws Exception ; 158 159 165 void updateServiceAssemblyState(String saName, String lifecycleState) 166 throws Exception ; 167 168 } 169 | Popular Tags |