1 31 package org.objectweb.proactive.core.runtime.jini; 32 33 import org.apache.log4j.Logger; 34 35 import org.objectweb.proactive.Body; 36 import org.objectweb.proactive.core.body.UniversalBody; 37 import org.objectweb.proactive.core.descriptor.data.VirtualNode; 38 import org.objectweb.proactive.core.mop.ConstructorCall; 39 import org.objectweb.proactive.core.mop.ConstructorCallExecutionFailedException; 40 import org.objectweb.proactive.core.node.NodeException; 41 import org.objectweb.proactive.core.process.UniversalProcess; 42 import org.objectweb.proactive.core.runtime.ProActiveRuntime; 43 import org.objectweb.proactive.core.runtime.VMInformation; 44 import org.objectweb.proactive.ext.security.PolicyServer; 45 import org.objectweb.proactive.ext.security.ProActiveSecurityManager; 46 47 import java.rmi.RemoteException ; 48 49 import java.security.cert.X509Certificate ; 50 51 import java.util.ArrayList ; 52 53 54 60 public interface JiniRuntime extends java.rmi.Remote { 61 static Logger logger = Logger.getLogger(JiniRuntime.class.getName()); 62 63 public String createLocalNode(String nodeName, 64 boolean replacePreviousBinding, PolicyServer ps, String vnname, 65 String jobId) throws java.rmi.RemoteException , NodeException; 66 67 public void killAllNodes() throws java.rmi.RemoteException ; 68 69 public void killNode(String nodeName) throws java.rmi.RemoteException ; 70 71 public void createVM(UniversalProcess remoteProcess) 73 throws java.rmi.RemoteException , java.io.IOException ; 74 75 public String [] getLocalNodeNames() throws java.rmi.RemoteException ; 77 78 public VMInformation getVMInformation() throws java.rmi.RemoteException ; 81 82 public void register(ProActiveRuntime proActiveRuntimeDist, 83 String proActiveRuntimeName, String creatorID, String creationProtocol, 84 String vmName) throws java.rmi.RemoteException ; 85 86 public ProActiveRuntime[] getProActiveRuntimes() 87 throws java.rmi.RemoteException ; 88 89 public ProActiveRuntime getProActiveRuntime(String proActiveRuntimeName) 90 throws java.rmi.RemoteException ; 91 92 public void killRT(boolean softly) throws java.rmi.RemoteException ; 93 94 public String getURL() throws java.rmi.RemoteException ; 95 96 public ArrayList getActiveObjects(String nodeName) 97 throws java.rmi.RemoteException ; 98 99 public ArrayList getActiveObjects(String nodeName, String objectName) 100 throws java.rmi.RemoteException ; 101 102 public VirtualNode getVirtualNode(String virtualNodeName) 103 throws java.rmi.RemoteException ; 104 105 public void registerVirtualNode(String virtualNodeName, 106 boolean replacePreviousBinding) throws java.rmi.RemoteException ; 107 108 public void unregisterVirtualNode(String virtualNodeName) 109 throws java.rmi.RemoteException ; 110 111 public void unregisterAllVirtualNodes() throws java.rmi.RemoteException ; 112 113 public String getJobID(String nodeUrl) throws java.rmi.RemoteException ; 114 115 public UniversalBody createBody(String nodeName, 116 ConstructorCall bodyConstructorCall, boolean isNodeLocal) 117 throws java.rmi.RemoteException , 118 ConstructorCallExecutionFailedException, 119 java.lang.reflect.InvocationTargetException ; 120 121 public UniversalBody receiveBody(String nodeName, Body body) 122 throws java.rmi.RemoteException ; 123 124 127 public X509Certificate getCreatorCertificate() 128 throws java.rmi.RemoteException ; 129 130 public PolicyServer getPolicyServer() throws RemoteException ; 131 132 public void setProActiveSecurityManager(ProActiveSecurityManager ps) 133 throws java.rmi.RemoteException ; 134 135 public String getVNName(String Nodename) throws RemoteException ; 136 137 140 public void setDefaultNodeVirtualNodeName(String s) 141 throws java.rmi.RemoteException ; 142 143 public void updateLocalNodeVirtualName() 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 |