org.globus.cog.karajan.util
Class BoundContact

java.lang.Object
  extended by org.globus.cog.karajan.util.Contact
      extended by org.globus.cog.karajan.util.BoundContact
Direct Known Subclasses:
BoundContact.Localhost

public class BoundContact
extends Contact


Nested Class Summary
static class BoundContact.Localhost
           
 
Field Summary
static BoundContact LOCALHOST
           
 
Constructor Summary
BoundContact()
           
BoundContact(String host)
           
 
Method Summary
 void addService(Service sc)
           
 boolean equals(Object obj)
           
 int getActiveTasks()
           
 int getCpus()
           
 String getHost()
           
 Map getProperties()
           
 Object getProperty(String name)
           
 Service getService(int type, String provider)
           
 Service getService(TaskHandlerWrapper handler)
           
 Map getServices()
           
static int getServiceType(int handlerType)
           
static int getServiceType(String type)
           
 int hashCode()
           
 boolean hasProperty(String name)
           
 boolean hasService(int type, String provider)
           
 boolean hasService(TaskHandlerWrapper handler)
           
 boolean isVirtual()
           
 void removeService(int type, String provider)
           
 void setActiveTasks(int activeTasks)
           
 void setCpus(int cpus)
           
 void setHost(String host)
           
 void setProperties(Map properties)
           
 String toString()
           
 
Methods inherited from class org.globus.cog.karajan.util.Contact
getConstraints, getId, setConstraints
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCALHOST

public static final BoundContact LOCALHOST
Constructor Detail

BoundContact

public BoundContact()

BoundContact

public BoundContact(String host)
Method Detail

setHost

public void setHost(String host)

getHost

public String getHost()

addService

public void addService(Service sc)

removeService

public void removeService(int type,
                          String provider)

hasService

public boolean hasService(int type,
                          String provider)

hasService

public boolean hasService(TaskHandlerWrapper handler)

getService

public Service getService(int type,
                          String provider)

getService

public Service getService(TaskHandlerWrapper handler)

getServiceType

public static int getServiceType(int handlerType)

getServiceType

public static int getServiceType(String type)

getServices

public Map getServices()

getCpus

public int getCpus()

setCpus

public void setCpus(int cpus)

isVirtual

public boolean isVirtual()
Specified by:
isVirtual in class Contact

getActiveTasks

public int getActiveTasks()

setActiveTasks

public void setActiveTasks(int activeTasks)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Contact

hashCode

public int hashCode()
Overrides:
hashCode in class Contact

getProperties

public Map getProperties()

setProperties

public void setProperties(Map properties)

hasProperty

public boolean hasProperty(String name)

getProperty

public Object getProperty(String name)