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

Quick Search    Search Deep

com.flexstor.ejb.server.persist
Interface ServerPersist  view ServerPersist download ServerPersist.java

All Superinterfaces:
com.flexstor.ejb.EjbObject, javax.ejb.EJBObject, java.rmi.Remote

public interface ServerPersist
extends com.flexstor.ejb.EjbObject

ServerPersist

Inserts, updates, remove and queries information from the SERVER table.

Uses cache: yes State Management Type: Stateless

Configurable properties in flexdm.properties:

NONE


Field Summary
static java.lang.String IDENTIFIER
           
 
Method Summary
 com.flexstor.common.data.ejb.server.ServerData getServer(com.flexstor.common.keys.ejb.ServerKey aKey)
          Retrieve a Server data object Transaction Attribute: Not Supported
 com.flexstor.common.data.ejb.server.ServerData getServer(java.lang.String aServerName)
          Retrieve a Server data object Transaction Attribute: Not Supported
 java.util.Hashtable getServerList()
          Retrieve a list of all servers registered in the system Transaction Attribute: Not Supported
 java.util.Hashtable getServers(com.flexstor.common.keys.ejb.ServerCollectionKey aKey)
          Retrieve a collection of Server data objects Transaction Attribute: Not Supported
 java.util.Hashtable getServers(java.util.Vector aServerKeyCollection)
          Retrieve a collection of ServerData from a collection of ServerCollectionKeys Transaction Attribute: Not Supported
 com.flexstor.common.keys.ejb.ServerKey insert(com.flexstor.common.data.ejb.server.ServerData aServer)
          Insert a new server into the server database.
 void loadServersToCache()
          Load all servers into the EJB Server's cache directory
 void remove(com.flexstor.common.keys.ejb.ServerKey aServerKey)
          Remove a server from the server database.
 void update(com.flexstor.common.data.ejb.server.ServerData aDataObject)
          Save the current state of the object to the database.
 
Methods inherited from interface com.flexstor.ejb.EjbObject
keepAlive
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Field Detail

IDENTIFIER

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

getServer

public com.flexstor.common.data.ejb.server.ServerData getServer(com.flexstor.common.keys.ejb.ServerKey aKey)
                                                         throws com.flexstor.common.exceptions.ejb.EjbException,
                                                                java.rmi.RemoteException
Retrieve a Server data object Transaction Attribute: Not Supported


getServer

public com.flexstor.common.data.ejb.server.ServerData getServer(java.lang.String aServerName)
                                                         throws com.flexstor.common.exceptions.ejb.EjbException,
                                                                java.rmi.RemoteException,
                                                                com.flexstor.common.exceptions.ejb.NotFoundException
Retrieve a Server data object Transaction Attribute: Not Supported


getServerList

public java.util.Hashtable getServerList()
                                  throws com.flexstor.common.exceptions.ejb.EjbException,
                                         java.rmi.RemoteException
Retrieve a list of all servers registered in the system Transaction Attribute: Not Supported


getServers

public java.util.Hashtable getServers(com.flexstor.common.keys.ejb.ServerCollectionKey aKey)
                               throws com.flexstor.common.exceptions.ejb.EjbException,
                                      java.rmi.RemoteException
Retrieve a collection of Server data objects Transaction Attribute: Not Supported


getServers

public java.util.Hashtable getServers(java.util.Vector aServerKeyCollection)
                               throws com.flexstor.common.exceptions.ejb.EjbException,
                                      java.rmi.RemoteException
Retrieve a collection of ServerData from a collection of ServerCollectionKeys Transaction Attribute: Not Supported


insert

public com.flexstor.common.keys.ejb.ServerKey insert(com.flexstor.common.data.ejb.server.ServerData aServer)
                                              throws com.flexstor.common.exceptions.ejb.DuplicateRecordException,
                                                     com.flexstor.common.exceptions.ejb.EjbException,
                                                     java.rmi.RemoteException
Insert a new server into the server database. Transaction Attribute: Required


remove

public void remove(com.flexstor.common.keys.ejb.ServerKey aServerKey)
            throws com.flexstor.common.exceptions.ejb.EjbException,
                   java.rmi.RemoteException
Remove a server from the server database. Transaction Attribute: Required


update

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


loadServersToCache

public void loadServersToCache()
                        throws com.flexstor.common.exceptions.ejb.EjbException,
                               java.rmi.RemoteException
Load all servers into the EJB Server's cache directory