Liferay 7.0-ce-b4

com.liferay.portal.kernel.resiliency.spi
Class MockSPI

java.lang.Object
  extended by com.liferay.portal.kernel.resiliency.spi.MockSPI
All Implemented Interfaces:
SPI, Serializable, Remote

public class MockSPI
extends Object
implements SPI

See Also:
Serialized Form

Field Summary
 boolean destroyed
           
 boolean failOnDestroy
           
 boolean failOnGetConfiguration
           
 boolean failOnIsAlive
           
 boolean failOnStop
           
 MPI mpi
           
 RegistrationReference registrationReference
           
 SPIConfiguration spiConfiguration
           
 String spiProviderName
           
 boolean stopped
           
 
Fields inherited from interface com.liferay.portal.kernel.resiliency.spi.SPI
SPI_INSTANCE_PUBLICATION_KEY
 
Constructor Summary
MockSPI()
           
 
Method Summary
 void addServlet(String contextPath, String docBasePath, String mappingPattern, String servletClassName)
           
 void addWebapp(String contextPath, String docBasePath)
           
 void destroy()
           
 MPI getMPI()
           
 RegistrationReference getRegistrationReference()
           
 SPIAgent getSPIAgent()
           
 SPIConfiguration getSPIConfiguration()
           
 String getSPIProviderName()
           
 void init()
           
 boolean isAlive()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

destroyed

public boolean destroyed

failOnDestroy

public boolean failOnDestroy

failOnGetConfiguration

public boolean failOnGetConfiguration

failOnIsAlive

public boolean failOnIsAlive

failOnStop

public boolean failOnStop

mpi

public MPI mpi

registrationReference

public RegistrationReference registrationReference

spiConfiguration

public SPIConfiguration spiConfiguration

spiProviderName

public String spiProviderName

stopped

public boolean stopped
Constructor Detail

MockSPI

public MockSPI()
Method Detail

addServlet

public void addServlet(String contextPath,
                       String docBasePath,
                       String mappingPattern,
                       String servletClassName)
Specified by:
addServlet in interface SPI

addWebapp

public void addWebapp(String contextPath,
                      String docBasePath)
Specified by:
addWebapp in interface SPI

destroy

public void destroy()
             throws RemoteException
Specified by:
destroy in interface SPI
Throws:
RemoteException

getMPI

public MPI getMPI()
Specified by:
getMPI in interface SPI

getRegistrationReference

public RegistrationReference getRegistrationReference()
                                               throws RemoteException
Specified by:
getRegistrationReference in interface SPI
Throws:
RemoteException

getSPIAgent

public SPIAgent getSPIAgent()
Specified by:
getSPIAgent in interface SPI

getSPIConfiguration

public SPIConfiguration getSPIConfiguration()
                                     throws RemoteException
Specified by:
getSPIConfiguration in interface SPI
Throws:
RemoteException

getSPIProviderName

public String getSPIProviderName()
Specified by:
getSPIProviderName in interface SPI

init

public void init()
Specified by:
init in interface SPI

isAlive

public boolean isAlive()
                throws RemoteException
Specified by:
isAlive in interface SPI
Throws:
RemoteException

start

public void start()
Specified by:
start in interface SPI

stop

public void stop()
          throws RemoteException
Specified by:
stop in interface SPI
Throws:
RemoteException

Liferay 7.0-ce-b4