Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.ejb.machine
Class MachineBean  view MachineBean download MachineBean.java

java.lang.Object
  extended bycom.flexstor.ejb.EjbBean
      extended bycom.flexstor.ejb.BusinessObjectSessionBean
          extended bycom.flexstor.ejb.machine.MachineBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean

public class MachineBean
extends com.flexstor.ejb.BusinessObjectSessionBean

Machine

This interface defines a machine that connects to FLEXSTOR.db.
At this point, there is no dirty write checking for updates. This bean functions under
the assumption that there should only one client updating a Machine.
Right now, this bean is configured for updating a small number of machine settings (<10).
Later, the bean may be needed to be changed because a larger number of machine settings are actually used.

Uses cache: no State Management Type: Stateless

Configurable properties in flexdm.properties:

NONE


Field Summary
static java.lang.String IDENTIFIER
           
 
Fields inherited from class com.flexstor.ejb.EjbBean
beanName, sCacheDirectory, sEJBVendor
 
Constructor Summary
MachineBean()
           
 
Method Summary
 void ejbCreate()
          EJB container calls ejbCreate in order to create an instance of the object.
 com.flexstor.common.data.ejb.machine.MachineData getDataObject(java.lang.String aMachineName)
          Retrieve Machine's state data object Transaction Attribute: Not Supported
private  com.flexstor.ejb.machine.persist.MachinePersist getMachinePersist()
          Retrieve the MachinePersist persistence bean associated with this business bean
 void update(com.flexstor.common.data.ejb.machine.MachineData aDataObject)
          Save the current state of the object to the database.
 
Methods inherited from class com.flexstor.ejb.EjbBean
assertBoolean, assertEmptyString, assertNull, buildInitialContext, cacheEnabled, cacheExists, ejbActivate, ejbPassivate, ejbRemove, fromCache, getBeanHome, getBooleanProperty, getCacheDirectory, getEJBObject, getInitialContext, getIntegerProperty, getIntegerProperty, getProperty, getProperty, getSessionContext, keepAlive, setSessionContext, toCache, xCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

MachineBean

public MachineBean()
Method Detail

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException,
                      java.rmi.RemoteException
EJB container calls ejbCreate in order to create an instance of the object. ejbCreate initalizes the state of
the EJB object. This method corresponds to the create method in the home interface MachineHome.


getDataObject

public com.flexstor.common.data.ejb.machine.MachineData getDataObject(java.lang.String aMachineName)
                                                               throws com.flexstor.common.exceptions.ejb.EjbException,
                                                                      java.rmi.RemoteException
Retrieve Machine's state data object Transaction Attribute: Not Supported


getMachinePersist

private com.flexstor.ejb.machine.persist.MachinePersist getMachinePersist()
                                                                   throws com.flexstor.common.exceptions.ejb.EjbException
Retrieve the MachinePersist persistence bean associated with this business bean


update

public void update(com.flexstor.common.data.ejb.machine.MachineData aDataObject)
            throws com.flexstor.common.exceptions.ejb.DuplicateRecordException,
                   com.flexstor.common.exceptions.ejb.EjbException,
                   java.rmi.RemoteException
Save the current state of the object to the database. Transaction Attribute: Required