com.sun.ejb.base.sfsb.util
Class EJBServerConfigLookup

java.lang.Object
  extended by com.sun.ejb.base.sfsb.util.EJBServerConfigLookup

@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public final class EJBServerConfigLookup
extends java.lang.Object

Author:
lwhite, Mahesh Kannan

Field Summary
protected  EjbDescriptor _ejbDescriptor
          The ejbDescriptor
protected  boolean _haEnabled
           
protected static boolean _isDebugMonitoringEnabled
          is monitoring enabled
protected  java.lang.String DEFAULT_SFSB_HA_PERSISTENCE_TYPE
          The default sfsb-ha-persistence-type (used by Ejb Container for Stateful Session Bean checkpointing and passivation to HADB
protected  java.lang.String DEFAULT_SFSB_NON_HA_PERSISTENCE_TYPE
          The default sfsb-non-ha-persistence-type (used by Ejb Container for Stateful Session Bean checkpointing and passivation to HADB
protected  java.lang.String DEFAULT_STORE_POOL_JNDI_NAME
          The default store-pool-jndi-name (used by Ejb Container for Stateful Session Bean checkpointing and passivation to HADB
 
Constructor Summary
EJBServerConfigLookup()
          Creates a new instance of EJBServerConfigLookup
 
Method Summary
 boolean calculateEjbAvailabilityEnabledFromConfig()
          Get the availability-enabled from domain.xml.
static boolean checkDebugMonitoringEnabled()
           
 boolean getAvailabilityEnabledFromConfig()
          Get the availability-enabled from domain.xml.
 boolean getAvailabilityEnabledFromEjbDescriptor()
          Get the availability-enabled for the bean from sun-ejb-jar.xml.
 boolean getAvailabilityEnabledFromEjbDescriptor(boolean inheritedValue)
          Get the availability-enabled for the bean from sun-ejb-jar.xml.
 java.lang.String getClusterName()
          Get the cluster name from domain.xml for this server.
 boolean getEjbContainerAvailabilityEnabledFromConfig()
          Get the availability-enabled for the ejb container from domain.xml.
 boolean getEjbContainerAvailabilityEnabledFromConfig(boolean inheritedValue)
          Get the availability-enabled for the ejb container from domain.xml.
 java.lang.String getHaStorePoolJndiNameFromConfig()
          Get the sfsb-store-pool-name from domain.xml.
 java.lang.String getPersistenceStoreType()
           
 java.lang.String getSfsbHaPersistenceTypeFromConfig()
          Get the sfsb-ha-persistence-type from domain.xml.
 java.lang.String getSfsbNonHaPersistenceTypeFromConfig()
          Get the sfsb-non-ha-persistence-type from domain.xml.
 java.lang.String getStorePoolJndiNameFromConfig()
          Get the store-pool-jndi-name from domain.xml.
 void initWithEjbDescriptor(EjbDescriptor ejbDescriptor)
          initializes this config object with a specific EJB descriptor
static boolean isDebugMonitoringEnabled()
          Is private (internal) monitoring enabled
static boolean isMonitoringEnabled()
          Is (any) monitoring enabled -- private or public Statistics gathering is based on this value
 boolean needToAddSFSBVersionInterceptors()
           
protected  java.lang.Boolean toBoolean(java.lang.String value)
          convert the input value to the appropriate Boolean value if input value is null, return null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_STORE_POOL_JNDI_NAME

protected final java.lang.String DEFAULT_STORE_POOL_JNDI_NAME
The default store-pool-jndi-name (used by Ejb Container for Stateful Session Bean checkpointing and passivation to HADB

See Also:
Constant Field Values

DEFAULT_SFSB_HA_PERSISTENCE_TYPE

protected final java.lang.String DEFAULT_SFSB_HA_PERSISTENCE_TYPE
The default sfsb-ha-persistence-type (used by Ejb Container for Stateful Session Bean checkpointing and passivation to HADB

See Also:
Constant Field Values

DEFAULT_SFSB_NON_HA_PERSISTENCE_TYPE

protected final java.lang.String DEFAULT_SFSB_NON_HA_PERSISTENCE_TYPE
The default sfsb-non-ha-persistence-type (used by Ejb Container for Stateful Session Bean checkpointing and passivation to HADB

See Also:
Constant Field Values

_ejbDescriptor

protected EjbDescriptor _ejbDescriptor
The ejbDescriptor


_haEnabled

protected boolean _haEnabled

_isDebugMonitoringEnabled

protected static boolean _isDebugMonitoringEnabled
is monitoring enabled

Constructor Detail

EJBServerConfigLookup

public EJBServerConfigLookup()
Creates a new instance of EJBServerConfigLookup

Method Detail

initWithEjbDescriptor

public void initWithEjbDescriptor(EjbDescriptor ejbDescriptor)
initializes this config object with a specific EJB descriptor


isMonitoringEnabled

public static boolean isMonitoringEnabled()
Is (any) monitoring enabled -- private or public Statistics gathering is based on this value


isDebugMonitoringEnabled

public static boolean isDebugMonitoringEnabled()
Is private (internal) monitoring enabled


getAvailabilityEnabledFromConfig

public boolean getAvailabilityEnabledFromConfig()
Get the availability-enabled from domain.xml. return false if not found


getClusterName

public java.lang.String getClusterName()
Get the cluster name from domain.xml for this server. return null if not found


calculateEjbAvailabilityEnabledFromConfig

public boolean calculateEjbAvailabilityEnabledFromConfig()
Get the availability-enabled from domain.xml. This takes into account: global ejb-container-availability j2ee app if not stand-alone ejb-module (if stand-alone) return false if not found FIXME: need to add taking the availability-enabled of the bean itself


getPersistenceStoreType

public java.lang.String getPersistenceStoreType()

getEjbContainerAvailabilityEnabledFromConfig

public boolean getEjbContainerAvailabilityEnabledFromConfig()
Get the availability-enabled for the ejb container from domain.xml. return inherited global availability-enabled if not found


getEjbContainerAvailabilityEnabledFromConfig

public boolean getEjbContainerAvailabilityEnabledFromConfig(boolean inheritedValue)
Get the availability-enabled for the ejb container from domain.xml. return inherited global availability-enabled if not found


getAvailabilityEnabledFromEjbDescriptor

public boolean getAvailabilityEnabledFromEjbDescriptor()
Get the availability-enabled for the bean from sun-ejb-jar.xml. return true if not found


getAvailabilityEnabledFromEjbDescriptor

public boolean getAvailabilityEnabledFromEjbDescriptor(boolean inheritedValue)
Get the availability-enabled for the bean from sun-ejb-jar.xml. return defaultValue if not found


getStorePoolJndiNameFromConfig

public java.lang.String getStorePoolJndiNameFromConfig()
Get the store-pool-jndi-name from domain.xml. This is the store-pool-name in element it represents the default for both web & ejb container return DEFAULT_STORE_POOL_JNDI_NAME if not found


getHaStorePoolJndiNameFromConfig

public java.lang.String getHaStorePoolJndiNameFromConfig()
Get the sfsb-store-pool-name from domain.xml. return DEFAULT_STORE_POOL_JNDI_NAME if not found


getSfsbHaPersistenceTypeFromConfig

public java.lang.String getSfsbHaPersistenceTypeFromConfig()
Get the sfsb-ha-persistence-type from domain.xml. return DEFAULT_SFSB_HA_PERSISTENCE_TYPE if not found


getSfsbNonHaPersistenceTypeFromConfig

public java.lang.String getSfsbNonHaPersistenceTypeFromConfig()
Get the sfsb-non-ha-persistence-type from domain.xml. return DEFAULT_SFSB_NON_HA_PERSISTENCE_TYPE if not found


checkDebugMonitoringEnabled

public static boolean checkDebugMonitoringEnabled()

toBoolean

protected java.lang.Boolean toBoolean(java.lang.String value)
convert the input value to the appropriate Boolean value if input value is null, return null


needToAddSFSBVersionInterceptors

public boolean needToAddSFSBVersionInterceptors()


Copyright © 2012 GlassFish Community. All Rights Reserved.