1 31 package org.objectweb.proactive.core.runtime.rmi; 32 33 import java.rmi.RemoteException ; 34 import java.security.cert.X509Certificate ; 35 import java.util.ArrayList ; 36 37 import org.apache.log4j.Logger; 38 import org.objectweb.proactive.Body; 39 import org.objectweb.proactive.core.body.UniversalBody; 40 import org.objectweb.proactive.core.descriptor.data.VirtualNode; 41 import org.objectweb.proactive.core.mop.ConstructorCall; 42 import org.objectweb.proactive.core.mop.ConstructorCallExecutionFailedException; 43 import org.objectweb.proactive.core.node.NodeException; 44 import org.objectweb.proactive.core.process.UniversalProcess; 45 import org.objectweb.proactive.core.runtime.ProActiveRuntime; 46 import org.objectweb.proactive.core.runtime.VMInformation; 47 import org.objectweb.proactive.ext.security.PolicyServer; 48 import org.objectweb.proactive.ext.security.ProActiveSecurityManager; 49 50 51 57 public interface RemoteProActiveRuntime extends java.rmi.Remote { 58 static Logger logger = Logger.getLogger(RemoteProActiveRuntime.class.getName()); 59 60 public String createLocalNode(String nodeName, 61 boolean replacePreviousBinding, PolicyServer ps, String VNname, String jobId) 62 throws java.rmi.RemoteException , NodeException; 63 64 public void killAllNodes() throws java.rmi.RemoteException ; 65 66 public void killNode(String nodeName) throws java.rmi.RemoteException ; 67 68 public void createVM(UniversalProcess remoteProcess) 70 throws java.rmi.RemoteException , java.io.IOException ; 71 72 public String [] getLocalNodeNames() throws java.rmi.RemoteException ; 74 75 public VMInformation getVMInformation() throws java.rmi.RemoteException ; 78 79 public void register(ProActiveRuntime proActiveRuntimeDist, 80 String proActiveRuntimeName, String creatorID, String creationProtocol,String vmName) 81 throws java.rmi.RemoteException ; 82 83 public ProActiveRuntime[] getProActiveRuntimes() 84 throws java.rmi.RemoteException ; 85 86 public ProActiveRuntime getProActiveRuntime(String proActiveRuntimeName) 87 throws java.rmi.RemoteException ; 88 89 public void killRT(boolean softly) throws java.rmi.RemoteException ; 90 91 public String getURL() throws java.rmi.RemoteException ; 92 93 public ArrayList getActiveObjects(String nodeName) 94 throws java.rmi.RemoteException ; 95 96 public ArrayList getActiveObjects(String nodeName, String objectName) 97 throws java.rmi.RemoteException ; 98 99 public VirtualNode getVirtualNode(String virtualNodeName) 100 throws java.rmi.RemoteException ; 101 102 public void registerVirtualNode(String virtualNodeName, 103 boolean replacePreviousBinding) throws java.rmi.RemoteException ; 104 105 public void unregisterVirtualNode(String virtualNodeName) 106 throws java.rmi.RemoteException ; 107 108 public void unregisterAllVirtualNodes() throws java.rmi.RemoteException ; 109 110 public String getJobID(String nodeUrl) throws java.rmi.RemoteException ; 111 112 public UniversalBody createBody(String nodeName, 113 ConstructorCall bodyConstructorCall, boolean isNodeLocal) 114 throws java.rmi.RemoteException , 115 ConstructorCallExecutionFailedException, 116 java.lang.reflect.InvocationTargetException ; 117 118 public UniversalBody receiveBody(String nodeName, Body body) 119 throws java.rmi.RemoteException ; 120 123 public X509Certificate getCreatorCertificate() 124 throws java.rmi.RemoteException ; 125 126 public PolicyServer getPolicyServer() throws java.rmi.RemoteException ; 127 128 public void setProActiveSecurityManager(ProActiveSecurityManager ps) 129 throws java.rmi.RemoteException ; 130 131 public String getVNName(String Nodename) throws java.rmi.RemoteException ; 132 133 136 public void setDefaultNodeVirtualNodeNAme(String s) 137 throws java.rmi.RemoteException ; 138 139 public void updateLocalNodeVirtualName() throws RemoteException ; 140 public PolicyServer getNodePolicyServer(String nodeName)throws RemoteException ; 141 142 143 147 public void enableSecurityIfNeeded()throws RemoteException ; 148 149 public X509Certificate getNodeCertificate(String nodeName) throws RemoteException ; 150 151 155 public ArrayList getEntities(String nodeName)throws RemoteException ; 156 157 161 public ArrayList getEntities(UniversalBody uBody)throws RemoteException ; 162 163 164 165 168 public ArrayList getEntities() throws RemoteException ; 169 170 171 172 } 173 | Popular Tags |