/* Generated by Together */

package cobalt.deployment.descriptor.dist;

import cobalt.deployment.descriptor.EjbDescriptor;

/**
 * Title:        WebLogic 5.1 stateless session ejb component descriptor
 * Description:  Represents WebLogic 5.1-specific stateless session ejb component for standard stateless session ejb component
 * Copyright:    Copyright (c) 2001
 * Company:      ETRI
 * @author Yeon Jun Choi
 * @version 1.0
 */

public class Weblogic51StatelessEjbDescriptor extends Weblogic51EjbDescriptor {
	public Weblogic51StatelessEjbDescriptor(EjbDescriptor descriptor) {
        super(descriptor);
    }
    public int getMaxBeansInFreePool(){
            return getInt("max-beans-in-free-pool", 32768);
        }

    public String getMaxBeansInFreePoolString(){
            return getString("max-beans-in-free-pool");
        }

    public void setMaxBeansInFreePool(int maxBeansInFreePool){
            setInt("max-beans-in-free-pool", maxBeansInFreePool);
        }

    public int getInitialBeansInFreePool(){
            return getInt("initial-beans-in-free-pool", 0);
        }

    public String getInitialBeansInFreePoolString(){
            return getString("initial-beans-in-free-pool");
        }

    public void setInitialBeansInFreePool(int initialBeansInFreePool){
            setInt("initial-beans-in-free-pool", initialBeansInFreePool);
        }

    public boolean isBeanClusterable(){
            return getBoolean("stateless-bean-is-clusterable", true);
        }

    public String isBeanClusterableString(){
            return getString("stateless-bean-is-clusterable");
        }

    public void setBeanClusterable(boolean clusterable){
            setBoolean("stateless-bean-is-clusterable", clusterable);
        }

    public String getBeanLoadAlgorithm(){
            return getString("stateless-bean-load-algorithm");
        }

    public void setBeanLoadAlgorithm(String loadAlgorithm){
            setString("stateless-bean-load-algorithm", loadAlgorithm);
        }

    public String getBeanCallRouterClass(){
            return getString("stateless-bean-call-router-class");
        }

    public void setBeanCallRouterClass(String callRouterClass){
            setString("stateless-bean-call-router-class", callRouterClass);
        }

    public boolean isIdempotent(){
            return getBoolean("stateless-bean-methods-are-idempotent", false);
        }

    public String isIdempotentString(){
            return getString("stateless-bean-methods-are-idempotent");
        }

    public void setIdempotent(boolean idempotent){
            setBoolean("stateless-bean-methods-are-idempotent", idempotent);
        }

    public boolean isBeanIdempotent(){
            return getBoolean("stateless-bean-methods-are-idempotent", false);
        }

    public String isBeanIdempotentString(){
            return getString("stateless-bean-methods-are-idempotent");
        }

    public void setBeanIdempotent(boolean idempotent){
            setBoolean("stateless-bean-methods-are-idempotent", idempotent);
        }

    /*
    private int maxBeansInFreePool;
    private int initialBeansInFreePool;
    private boolean idempotent;
    */
}
