gov.bnl.star.offline.scheduler
Class GateKeeperAccessPoint

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.LocalAccessPoint
      extended by gov.bnl.star.offline.scheduler.GateKeeperAccessPoint
All Implemented Interfaces:
java.io.Serializable

public class GateKeeperAccessPoint
extends LocalAccessPoint
implements java.io.Serializable

A configuration object used to describe how to access a site from a gatekeeper.

Author:
Levente Hajdu
See Also:
Serialized Form

Constructor Summary
GateKeeperAccessPoint()
          Creates a new instance of Gateway
 
Method Summary
 java.lang.String getName()
          Returns the name of this gatekeeper Example: "stargrid03.bnl.gov"
 int getUtilization()
          Returns the percent utilization of this gatekeeper relative to other gatekeepers.
 boolean isLocal()
          Returns true if access point is local, if it is a grid access point in return false
 void setName(java.lang.String name)
          Sets the name for a gatekeeper This function is used primarily for configuration in the config file.
 void setUtilization(int utilization)
          Sets the percent utilization of a gateKeeper The defalt is 50 Example: if gateKeeper Z if utilization is set to 90% and gateKeeper Y's is utilization is set to 10% Then one out of 9 jobs will go to gateKeeper Y and the rest to gateKeeper Z.
 
Methods inherited from class gov.bnl.star.offline.scheduler.LocalAccessPoint
addAccessMethod, getAccessMethods, getSite, setAccessMethods, setSite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GateKeeperAccessPoint

public GateKeeperAccessPoint()
Creates a new instance of Gateway

Method Detail

getName

public java.lang.String getName()
Returns the name of this gatekeeper Example: "stargrid03.bnl.gov"


setName

public void setName(java.lang.String name)
Sets the name for a gatekeeper This function is used primarily for configuration in the config file.


setUtilization

public void setUtilization(int utilization)
Sets the percent utilization of a gateKeeper The defalt is 50 Example: if gateKeeper Z if utilization is set to 90% and gateKeeper Y's is utilization is set to 10% Then one out of 9 jobs will go to gateKeeper Y and the rest to gateKeeper Z.


getUtilization

public int getUtilization()
Returns the percent utilization of this gatekeeper relative to other gatekeepers.


isLocal

public boolean isLocal()
Returns true if access point is local, if it is a grid access point in return false

Overrides:
isLocal in class LocalAccessPoint


Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.