1 31 package org.objectweb.proactive.core.descriptor.data; 32 33 import java.security.cert.X509Certificate ; 34 35 import org.apache.log4j.Logger; 36 import org.objectweb.proactive.Job; 37 import org.objectweb.proactive.core.ProActiveException; 38 import org.objectweb.proactive.core.node.Node; 39 import org.objectweb.proactive.core.node.NodeException; 40 import org.objectweb.proactive.ext.security.PolicyServer; 41 42 43 53 public interface VirtualNode extends java.io.Serializable , Job { 54 static Logger logger = Logger.getLogger(VirtualNode.class.getName()); 55 56 60 public void setProperty(String property); 61 62 67 public void setTimeout(String timeout, boolean waitForTimeout); 68 69 73 public String getProperty(); 74 75 79 public void setName(String s); 80 81 85 public String getName(); 86 87 91 public void addVirtualMachine(VirtualMachine virtualMachine); 92 93 98 public VirtualMachine getVirtualMachine(); 99 100 103 public void activate(); 104 105 109 public int getNodeCount(); 110 111 115 public int createdNodeCount(); 116 117 123 public Node getNode() throws NodeException; 124 125 131 public Node getNode(int index) throws NodeException; 132 133 138 public String [] getNodesURL() throws NodeException; 139 140 145 public Node[] getNodes() throws NodeException; 146 147 153 public Node getNode(String url) throws NodeException; 154 155 160 public void createNodeOnCurrentJvm(String protocol); 161 162 171 public void killAll(boolean softly); 172 173 180 public Object getUniqueAO() throws ProActiveException; 181 182 185 public boolean isActivated(); 186 187 205 public void setRuntimeInformations(String information, String value) 206 throws ProActiveException; 207 208 212 public X509Certificate getCreatorCertificate() throws ProActiveException; 213 214 217 public PolicyServer getPolicyServer(); 218 219 public void setPolicyServer(PolicyServer server); 220 public void setPolicyFile(String file); 221 } 222 | Popular Tags |