1 6 7 package SOFA.SOFAnet.Admin.RMI; 8 9 import java.rmi.Remote ; 10 import java.rmi.RemoteException ; 11 import SOFA.SOFAnode.TR.ComponentInfo; 12 import SOFA.SOFAnet.Repository.Licence; 13 import SOFA.SOFAnet.Repository.NodeNameFilter; 14 import SOFA.SOFAnet.Repository.ShareGroups; 15 import SOFA.SOFAnet.Repository.BundleOffer; 16 import SOFA.SOFAnet.Repository.LocalInfo; 17 import SOFA.SOFAnet.Repository.BundleContent; 18 import SOFA.SOFAnet.Repository.InputTrigger; 19 import SOFA.SOFAnet.Repository.OutputTrigger; 20 import SOFA.SOFAnet.Repository.Contract; 21 import SOFA.SOFAnet.Search.SearchPattern; 22 import SOFA.SOFAnet.Search.SearchReplyItem; 23 import SOFA.SOFAnet.Search.RMI.RMISearchConfiguration; 24 25 29 public interface RMIAdminInterface extends Remote 30 { 31 String [] binBundlesList() throws RemoteException ; 32 String [] licencesList() throws RemoteException ; 33 String [] localInfosList() throws RemoteException ; 34 LocalInfoDesc[] localInfoDescsList() throws RemoteException ; 35 ComponentInfo[] componentsInTRList() throws RemoteException ; 36 String [] bundleOffersList() throws RemoteException ; 37 String [] inputTriggersList() throws RemoteException ; 38 InputTriggerDesc[] inputTriggerDescsList() throws RemoteException ; 39 String [] outputTriggersList() throws RemoteException ; 40 OutputTriggerDesc[] outputTriggerDescsList() throws RemoteException ; 41 String [] contractsList() throws RemoteException ; 42 ContractDesc[] contractDescsList() throws RemoteException ; 43 44 Licence getLicence(String bundleName) throws RemoteException ; 45 void updateLicence(String bundleName, Licence licence) throws RMIAdminException, RemoteException ; 46 47 BundleOffer getBundleOffer(String bundleName) throws RemoteException ; 48 void deleteBundleOffer(String bundleName) throws RemoteException ; 49 50 LocalInfo getLocalInfo(String bundleName) throws RemoteException ; 51 52 BundleContent getInstalledBundleContent(String bundleName) throws RemoteException ; 53 BundleContent getSharedBundleContent(String bundleName) throws RemoteException ; 54 55 void deleteComponentsFromTR(ComponentInfo[] components, boolean interfaces, boolean inferiors) throws RMIAdminException, RemoteException ; 56 57 InputTrigger getInputTrigger(String name) throws RemoteException ; 58 void updateInputTrigger(String name, InputTrigger inputTrigger) throws RMIAdminException, RemoteException ; 59 60 OutputTrigger getOutputTrigger(String name) throws RemoteException ; 61 void updateOutputTrigger(String name, OutputTrigger outputTrigger) throws RMIAdminException, RemoteException ; 62 63 Contract getContract(String name) throws RemoteException ; 64 void updateContract(String name, Contract contract) throws RMIAdminException, RemoteException ; 65 66 RMISearchConfiguration getRMISearchConfiguration() throws RemoteException ; 67 void setRMISearchConfiguration(RMISearchConfiguration configuration) throws RemoteException ; 68 void applyRMISearchConfiguration() throws RemoteException ; 69 70 void installBundle(String bundleName, boolean reinstall) throws RMIAdminException, RemoteException ; 71 void uninstallBundle(String bundleName, boolean deleteComponents, boolean includingInterfaces, boolean force) throws RMIAdminException, RemoteException ; 72 void createBinaryBundle(String bundleName, boolean overwrite) throws RMIAdminException, RemoteException ; 73 void deleteBinaryBundle(String bundleName) throws RMIAdminException, RemoteException ; 74 void deleteBundle(String bundleName) throws RMIAdminException, RemoteException ; 75 void createUserBundle(String bundleName, ComponentInfo[] components, boolean subcomponents) throws RMIAdminException, RemoteException ; 76 String createComponentBundle(ComponentInfo component, boolean subcomponents) throws RMIAdminException, RemoteException ; 77 78 boolean testPush(String bundleName, String nodeName, boolean offer) throws RMIAdminException, RemoteException ; 79 boolean testPull(String bundleName, String nodeName, String contractID) throws RMIAdminException, RemoteException ; 80 void pushBundle(String bundleName, String nodeName, int numberOfLicences) throws RMIAdminException, RemoteException ; 81 void pullBundle(String bundleName, String nodeName, String contractID, boolean synchro) throws RMIAdminException, RemoteException ; 82 void pushBundleOffer(String bundleName, String nodeName) throws RMIAdminException, RemoteException ; 83 void createBundleOfferFromBinBundle(String bundleName, boolean overwrite) throws RMIAdminException, RemoteException ; 84 void generateTriggersOfContract(String contractID, boolean firstDelete) throws RMIAdminException, RemoteException ; 85 void deleteTriggersOfContract(String contractID) throws RMIAdminException, RemoteException ; 86 87 void shareBundle(String bundleName, int numberOfLicences, ShareGroups shareGroups, NodeNameFilter nodeFilter, boolean equality, boolean reshare) throws RMIAdminException, RemoteException ; 88 void unshareBundle(String bundleName, boolean recoverLicences, boolean force) throws RMIAdminException, RemoteException ; 89 void acquireSharedBundle(String bundleName, String nodeName, boolean tryNoShareClient) throws RMIAdminException, RemoteException ; 90 void stopShareClientOfBundle(String bundleName, boolean returnLicence, boolean force) throws RMIAdminException, RemoteException ; 91 public void makeShareClientsReturnBundle(String bundleName) throws RMIAdminException, RemoteException ; 92 93 SearchReplyItem[] search(SearchPattern searchPattern, boolean firstOnly, String shareGroup, int timeout) throws RMIAdminException, RemoteException ; 94 } 95 | Popular Tags |