1 31 package org.objectweb.proactive.core.runtime.ibis; 32 33 import ibis.rmi.Remote; 34 import ibis.rmi.RemoteException; 35 36 import org.apache.log4j.Logger; 37 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 import java.security.cert.X509Certificate ; 51 52 import java.util.ArrayList ; 53 54 55 61 public interface RemoteProActiveRuntime extends Remote { 62 static Logger logger = Logger.getLogger(RemoteProActiveRuntime.class.getName()); 63 64 public String createLocalNode(String nodeName, 65 boolean replacePreviousBinding, PolicyServer ps, String vnname, 66 String jobId) throws RemoteException, NodeException; 67 68 public void killAllNodes() throws RemoteException; 69 70 public void killNode(String nodeName) throws RemoteException; 71 72 public void createVM(UniversalProcess remoteProcess) 74 throws RemoteException, java.io.IOException ; 75 76 public String [] getLocalNodeNames() throws RemoteException; 78 79 public VMInformation getVMInformation() throws RemoteException; 82 83 public void register(ProActiveRuntime proActiveRuntimeDist, 84 String proActiveRuntimeName, String creatorID, String creationProtocol, 85 String vmName) throws RemoteException; 86 87 public ProActiveRuntime[] getProActiveRuntimes() throws RemoteException; 88 89 public ProActiveRuntime getProActiveRuntime(String proActiveRuntimeName) 90 throws RemoteException; 91 92 public void killRT(boolean softly) throws RemoteException; 93 94 public String getURL() throws RemoteException; 95 96 public ArrayList getActiveObjects(String nodeName) 97 throws RemoteException; 98 99 public ArrayList getActiveObjects(String nodeName, String objectName) 100 throws RemoteException; 101 102 public VirtualNode getVirtualNode(String virtualNodeName) 103 throws RemoteException; 104 105 public void registerVirtualNode(String virtualNodeName, 106 boolean replacePreviousBinding) throws RemoteException; 107 108 public void unregisterVirtualNode(String virtualNodeName) 109 throws RemoteException; 110 111 public void unregisterAllVirtualNodes() throws RemoteException; 112 113 public String getJobID(String nodeUrl) throws RemoteException; 114 115 public UniversalBody createBody(String nodeName, 116 ConstructorCall bodyConstructorCall, boolean isNodeLocal) 117 throws RemoteException, ConstructorCallExecutionFailedException, 118 java.lang.reflect.InvocationTargetException ; 119 120 public UniversalBody receiveBody(String nodeName, Body body) 121 throws RemoteException; 122 123 126 public X509Certificate getCreatorCertificate() throws RemoteException; 127 128 public PolicyServer getPolicyServer() throws RemoteException; 129 130 public void setProActiveSecurityManager(ProActiveSecurityManager ps) 131 throws RemoteException; 132 133 public String getVNName(String Nodename) throws RemoteException; 134 135 138 public void setDefaultNodeVirtualNodeName(String s) 139 throws RemoteException; 140 141 public void updateLocalNodeVirtualName() throws RemoteException; 142 143 public void listVirtualNodes() throws RemoteException; 144 145 public PolicyServer getNodePolicyServer(String nodeName) 146 throws RemoteException; 147 148 152 public void enableSecurityIfNeeded() throws RemoteException; 153 154 158 public X509Certificate getNodeCertificate(String nodeName) 159 throws RemoteException; 160 161 165 public ArrayList getEntities(String nodeName) throws RemoteException; 166 167 171 public ArrayList getEntities(UniversalBody uBody) throws RemoteException; 172 173 176 public ArrayList getEntities() throws RemoteException; 177 } 178 | Popular Tags |