org.globus.ogsa.utils
Class ServicePropertiesHelper

java.lang.Object
  extended byorg.globus.ogsa.utils.ServicePropertiesHelper

public class ServicePropertiesHelper
extends java.lang.Object


Constructor Summary
ServicePropertiesHelper()
           
 
Method Summary
static ExtensibilityType getAsAny(ServiceProperties properties)
           
static boolean isPersistentLifecycle(ServiceProperties properties)
          Checks if a service has a persistent lifecycle model.
static boolean isPersistentType(ServiceProperties properties)
          Checks if a service is of persistent type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicePropertiesHelper

public ServicePropertiesHelper()
Method Detail

getAsAny

public static ExtensibilityType getAsAny(ServiceProperties properties)
                                  throws GridServiceException
Throws:
GridServiceException

isPersistentLifecycle

public static boolean isPersistentLifecycle(ServiceProperties properties)
Checks if a service has a persistent lifecycle model. Service has a persistent lifecycle model if the ServiceProperties.LIFECYCLE property is set to ServiceProperties.PERSISTENT. Otherwise, false is returned.

Returns:
true if the service has a persistent lifecycle model.

isPersistentType

public static boolean isPersistentType(ServiceProperties properties)
Checks if a service is of persistent type. Service is of a persistent type if the ServiceProperties.PERSISTENT property is not set or it is set to "true". Otherwise, false is returned.

Returns:
true if the service is of persistent type.


Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.