1 31 package org.objectweb.proactive.core.runtime; 32 33 import org.apache.log4j.Logger; 34 35 import org.objectweb.proactive.Body; 36 import org.objectweb.proactive.Job; 37 import org.objectweb.proactive.core.ProActiveException; 38 import org.objectweb.proactive.core.body.UniversalBody; 39 import org.objectweb.proactive.core.descriptor.data.VirtualNode; 40 import org.objectweb.proactive.core.mop.ConstructorCall; 41 import org.objectweb.proactive.core.mop.ConstructorCallExecutionFailedException; 42 import org.objectweb.proactive.core.node.NodeException; 43 import org.objectweb.proactive.core.process.UniversalProcess; 44 import org.objectweb.proactive.ext.security.PolicyServer; 45 import org.objectweb.proactive.ext.security.ProActiveSecurityManager; 46 47 import java.security.cert.X509Certificate ; 48 49 import java.util.ArrayList ; 50 51 52 76 public interface ProActiveRuntime extends Job { 77 static Logger runtimeLogger = Logger.getLogger(ProActiveRuntime.class.getName()); 78 79 86 public String createLocalNode(String nodeName, 87 boolean replacePreviousBinding, PolicyServer policyServer, 88 String vnName, String jobId) throws NodeException; 89 90 94 public void killAllNodes() throws ProActiveException; 95 96 101 public void killNode(String nodeName) throws ProActiveException; 102 103 109 public void createVM(UniversalProcess remoteProcess) 110 throws java.io.IOException , ProActiveException; 111 112 117 public String [] getLocalNodeNames() throws ProActiveException; 118 119 124 public VMInformation getVMInformation(); 125 126 134 public void register(ProActiveRuntime proActiveRuntimeDist, 135 String proActiveRuntimeName, String creatorID, String creationProtocol, 136 String vmName); 137 138 143 public ProActiveRuntime[] getProActiveRuntimes() throws ProActiveException; 144 145 151 public ProActiveRuntime getProActiveRuntime(String proActiveRuntimeName) 152 throws ProActiveException; 153 154 161 public void killRT(boolean softly) throws Exception ; 162 163 166 public String getURL() throws ProActiveException; 167 168 174 public ArrayList getActiveObjects(String nodeName) 175 throws ProActiveException; 176 177 184 public ArrayList getActiveObjects(String nodeName, String className) 185 throws ProActiveException; 186 187 193 public VirtualNode getVirtualNode(String virtualNodeName) 194 throws ProActiveException; 195 196 200 public void registerVirtualNode(String virtualNodeName, 201 boolean replacePreviousBinding) throws ProActiveException; 202 203 208 public void unregisterVirtualNode(String virtualNodeName) 209 throws ProActiveException; 210 211 215 public void unregisterAllVirtualNodes() throws ProActiveException; 216 217 222 public String getJobID(String nodeUrl) throws ProActiveException; 223 224 242 public UniversalBody createBody(String nodeName, 243 ConstructorCall bodyConstructorCall, boolean isNodeLocal) 244 throws ProActiveException, ConstructorCallExecutionFailedException, 245 java.lang.reflect.InvocationTargetException ; 246 247 261 public UniversalBody receiveBody(String nodeName, Body body) 262 throws ProActiveException; 263 264 266 269 public X509Certificate getCreatorCertificate() throws ProActiveException; 270 271 274 public PolicyServer getPolicyServer() throws ProActiveException; 275 276 public void setProActiveSecurityManager(ProActiveSecurityManager ps) 277 throws ProActiveException; 278 279 public String getVNName(String Nodename) throws ProActiveException; 280 281 public void setDefaultNodeVirtualNodeName(String s) 282 throws ProActiveException; 283 284 public void listVirtualNodes() throws ProActiveException; 285 286 public PolicyServer getNodePolicyServer(String nodeName) 287 throws ProActiveException; 288 289 293 public void enableSecurityIfNeeded() throws ProActiveException; 294 295 299 public X509Certificate getNodeCertificate(String nodeName) 300 throws ProActiveException; 301 302 306 public ArrayList getEntities(String nodeName) throws ProActiveException; 307 308 312 public ArrayList getEntities(UniversalBody uBody) throws ProActiveException; 313 314 317 public ArrayList getEntities() throws ProActiveException; 318 319 322 323 } 325 | Popular Tags |