com.platform.ego.impl
Class ServicePolicy

java.lang.Object
  extended by com.platform.ego.impl.ServicePolicy

public class ServicePolicy
extends java.lang.Object

ServicePolicy specifies management policy of service.

Version:
1.2.3

Constructor Summary
ServicePolicy()
           
 
Method Summary
 java.lang.String[] getDependency()
          Get dependency relationship of service.
 int getHostFailoverInterval()
          Get host failover interval (integer from 0 to INFINIT).
 int getMaxRestarts()
          Get maximum restart times of service.
 java.lang.String getStartType()
          Get type of service start-up.
 void setDependency(java.lang.String[] dependency)
          Set dependency relationship of service.
 void setHostFailoverInterval(int hostFailoverInterval)
          Set host failover interval (integer from 0 to INFINIT).
 void setMaxRestarts(int maxRestarts)
          Set maximum restart times of service.
 void setStartType(java.lang.String startType)
          Set type of service start-up.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicePolicy

public ServicePolicy()
Method Detail

getDependency

public java.lang.String[] getDependency()
Get dependency relationship of service.

Returns:
dependency relationship of service.

setDependency

public void setDependency(java.lang.String[] dependency)
Set dependency relationship of service.

Parameters:
dependency - : specifies dependence relationship of service.

getHostFailoverInterval

public int getHostFailoverInterval()
Get host failover interval (integer from 0 to INFINIT). When the status of a service instance becomes "unknown", this interval defines how long the service controller waits before attempting to find a host replacement.

Returns:
integer from 0 to INFINIT.

setHostFailoverInterval

public void setHostFailoverInterval(int hostFailoverInterval)
Set host failover interval (integer from 0 to INFINIT). When the status of a service instance becomes "unknown", this interval defines how long the service controller waits before attempting to find a host replacement.

Parameters:
hostFailoverInterval - : specifies integer from 0 to INFINIT.

getMaxRestarts

public int getMaxRestarts()
Get maximum restart times of service.

Returns:
maximum restart times of service.

setMaxRestarts

public void setMaxRestarts(int maxRestarts)
Set maximum restart times of service.

Parameters:
maxRestarts - : specifies maximum restart times of service.

getStartType

public java.lang.String getStartType()
Get type of service start-up.

Returns:
type of service start-up.

setStartType

public void setStartType(java.lang.String startType)
Set type of service start-up.

Parameters:
startType - : specifies type of service start-up.


Copyright (C) 1992-2007 Platform Computing Corporation