JOpt.SDK.Implementation
Class PreferredResource

java.lang.Object
  extended byJOpt.SDK.Implementation.PreferredResource
All Implemented Interfaces:
IPreferredResource

public class PreferredResource
extends java.lang.Object
implements IPreferredResource


Constructor Summary
PreferredResource()
           
 
Method Summary
 java.lang.String getPreferredResourceId()
           
 int getPriority()
           
 void setPreferredResourceId(java.lang.String resourceId)
           
 void setPriority(int priority)
          Set the priority of a preferred resource 10 = highest priority -> JOpt will try to use this resource first 1 = lowest priority -> JOpt will try to use this resource at least, but still before any resource that is not in the preferred resource list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferredResource

public PreferredResource()
Method Detail

setPreferredResourceId

public void setPreferredResourceId(java.lang.String resourceId)
Specified by:
setPreferredResourceId in interface IPreferredResource

getPreferredResourceId

public java.lang.String getPreferredResourceId()
Specified by:
getPreferredResourceId in interface IPreferredResource

setPriority

public void setPriority(int priority)
Description copied from interface: IPreferredResource
Set the priority of a preferred resource 10 = highest priority -> JOpt will try to use this resource first 1 = lowest priority -> JOpt will try to use this resource at least, but still before any resource that is not in the preferred resource list

Specified by:
setPriority in interface IPreferredResource
Parameters:
priority -

getPriority

public int getPriority()
Specified by:
getPriority in interface IPreferredResource