org.objectweb.proactive.core.descriptor.data
Interface VirtualMachine

All Superinterfaces:
ServiceUser
All Known Implementing Classes:
VirtualMachineImpl

public interface VirtualMachine
extends ServiceUser

A VirtualMachine is a conceptual entity that represents a JVM running a ProActiveRuntime

Since:
ProActive 0.9.3
Version:
1.0, 2002/09/20
Author:
ProActive Team
See Also:
ProActiveDescriptor, VirtualNode

Method Summary
 java.lang.String getCreatorId()
          Returns the value of creatorId field.
 java.lang.String getHostName()
          Returns the name of the machine where the process mapped to this virtual machine was launched.
 java.lang.String getName()
          Returns the name of this VirtualMachine
 java.lang.String getNodeNumber()
          Returns the number of nodes that will be created on this VirtualMachine
 ExternalProcess getProcess()
          Returns the process mapped to this VirtualMachine
 UniversalService getService()
          Returns the service mapped to this VirtualMachine
 boolean hasProcess()
          Returns true if this machine his mapped onto a process false if mapped onto a service
 void setCreatorId(java.lang.String creatorId)
          Sets the creatorId field to the given value
 void setHostsNumber(java.lang.String nodeNumber)
          Sets the number of nodes that will be created on this VirtualMachine.
 void setName(java.lang.String s)
          Sets the name of this VirtualMachine
 void setProcess(ExternalProcess p)
          Sets the process mapped to this VirtualMachine to the given process
 void setService(UniversalService service)
          Sets the service mapped to this VirtualMachine to the given service
 
Methods inherited from interface org.objectweb.proactive.core.descriptor.services.ServiceUser
getUserClass
 

Method Detail

setHostsNumber

public void setHostsNumber(java.lang.String nodeNumber)
                    throws java.io.IOException
Sets the number of nodes that will be created on this VirtualMachine.

Parameters:
nodeNumber -
Throws:
java.io.IOException

getNodeNumber

public java.lang.String getNodeNumber()
Returns the number of nodes that will be created on this VirtualMachine

Returns:
String

setName

public void setName(java.lang.String s)
Sets the name of this VirtualMachine

Parameters:
s -

getName

public java.lang.String getName()
Returns the name of this VirtualMachine

Returns:
String

setProcess

public void setProcess(ExternalProcess p)
Sets the process mapped to this VirtualMachine to the given process

Parameters:
p -

getProcess

public ExternalProcess getProcess()
Returns the process mapped to this VirtualMachine

Returns:
ExternalProcess

setService

public void setService(UniversalService service)
Sets the service mapped to this VirtualMachine to the given service

Specified by:
setService in interface ServiceUser
Parameters:
service -

getService

public UniversalService getService()
Returns the service mapped to this VirtualMachine

Returns:
the service mapped to this VirtualMachine

getHostName

public java.lang.String getHostName()
Returns the name of the machine where the process mapped to this virtual machine was launched.

Returns:
String

setCreatorId

public void setCreatorId(java.lang.String creatorId)
Sets the creatorId field to the given value

Parameters:
creatorId - The Id of the VirtualNode that created this VirtualMachine

getCreatorId

public java.lang.String getCreatorId()
Returns the value of creatorId field.

Returns:
String The Id of the VirtualNode that created this VirtualMachine

hasProcess

public boolean hasProcess()
Returns true if this machine his mapped onto a process false if mapped onto a service

Returns:
boolean if the machine result of a lookup


Copyright ? April 2005 INRIA All Rights Reserved.