java.lang.Object
com.flexstor.ejb.EjbBean
com.flexstor.ejb.BusinessObjectSessionBean
com.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
| 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 |
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
MachineBean
public MachineBean()
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