Class OMIServerChildRepository

java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.sas.services.information.OMIServerRepository
com.sas.services.information.OMIServerChildRepository
All Implemented Interfaces:
com.sas.metadata.remote.MdObjectListener, ChildRepositoryInterface, com.sas.services.information.InformationServiceTimerClient, MetadataChangeListener, OMIRepositoryInterface, RepositoryInterface, Serializable, Remote, EventListener

public class OMIServerChildRepository extends OMIServerRepository implements ChildRepositoryInterface
See Also:
  • Constructor Details

    • OMIServerChildRepository

      public OMIServerChildRepository() throws RemoteException
      The default constructor.

      Initialize the instance. Make sure the Factory is configured, and get a LoggerInterface.

      Throws:
      RemoteException - if unable to export the remote object.
    • OMIServerChildRepository

      protected OMIServerChildRepository(Class theClass) throws RemoteException
      Constructs an instance exporting a remote object that employs RMI socket factories appropriate for the specified class.

      Initialize the instance. Make sure the Factory is configured, and get a LoggerInterface.

      Parameters:
      theClass - Class which will be used to determine the appropriate RMI socket factories.
      Throws:
      RemoteException - if unable to export the remote object.
  • Method Details

    • commit

      public void commit() throws ServiceException, RemoteException
      Description copied from interface: ChildRepositoryInterface
      Commit the changes in this child to its parent. If an exception is thrown during the commit, you must call rollback to close the transaction.
      Specified by:
      commit in interface ChildRepositoryInterface
      Throws:
      ServiceException - if unable to commit the changes to the parent.
      RemoteException - if a network anomaly is encountered.
    • rollback

      public void rollback() throws ServiceException, RemoteException
      Description copied from interface: ChildRepositoryInterface
      Roll back the changes in this child repository by deleting the cache without flushing it to the parent.
      Specified by:
      rollback in interface ChildRepositoryInterface
      Throws:
      ServiceException - if unable to rollback.
      RemoteException - if a network anomaly is encountered.