com.liferay.portal.kernel.resiliency.spi
Class MockSPI
java.lang.Object
com.liferay.portal.kernel.resiliency.spi.MockSPI
- All Implemented Interfaces:
- com.liferay.portal.kernel.resiliency.spi.SPI, Serializable, Remote
public class MockSPI
- extends Object
- implements com.liferay.portal.kernel.resiliency.spi.SPI
- See Also:
- Serialized Form
| Fields inherited from interface com.liferay.portal.kernel.resiliency.spi.SPI |
SPI_INSTANCE_PUBLICATION_KEY |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
destroyed
public boolean destroyed
failOnDestroy
public boolean failOnDestroy
failOnGetConfiguration
public boolean failOnGetConfiguration
failOnIsAlive
public boolean failOnIsAlive
failOnStop
public boolean failOnStop
mpi
public com.liferay.portal.kernel.resiliency.mpi.MPI mpi
registrationReference
public com.liferay.portal.kernel.nio.intraband.RegistrationReference registrationReference
spiConfiguration
public com.liferay.portal.kernel.resiliency.spi.SPIConfiguration spiConfiguration
spiProviderName
public String spiProviderName
stopped
public boolean stopped
MockSPI
public MockSPI()
addServlet
public void addServlet(String contextPath,
String docBasePath,
String mappingPattern,
String servletClassName)
- Specified by:
addServlet in interface com.liferay.portal.kernel.resiliency.spi.SPI
addWebapp
public void addWebapp(String contextPath,
String docBasePath)
- Specified by:
addWebapp in interface com.liferay.portal.kernel.resiliency.spi.SPI
destroy
public void destroy()
throws RemoteException
- Specified by:
destroy in interface com.liferay.portal.kernel.resiliency.spi.SPI
- Throws:
RemoteException
getMPI
public com.liferay.portal.kernel.resiliency.mpi.MPI getMPI()
- Specified by:
getMPI in interface com.liferay.portal.kernel.resiliency.spi.SPI
getRegistrationReference
public com.liferay.portal.kernel.nio.intraband.RegistrationReference getRegistrationReference()
throws RemoteException
- Specified by:
getRegistrationReference in interface com.liferay.portal.kernel.resiliency.spi.SPI
- Throws:
RemoteException
getSPIAgent
public com.liferay.portal.kernel.resiliency.spi.agent.SPIAgent getSPIAgent()
- Specified by:
getSPIAgent in interface com.liferay.portal.kernel.resiliency.spi.SPI
getSPIConfiguration
public com.liferay.portal.kernel.resiliency.spi.SPIConfiguration getSPIConfiguration()
throws RemoteException
- Specified by:
getSPIConfiguration in interface com.liferay.portal.kernel.resiliency.spi.SPI
- Throws:
RemoteException
getSPIProviderName
public String getSPIProviderName()
- Specified by:
getSPIProviderName in interface com.liferay.portal.kernel.resiliency.spi.SPI
init
public void init()
- Specified by:
init in interface com.liferay.portal.kernel.resiliency.spi.SPI
isAlive
public boolean isAlive()
throws RemoteException
- Specified by:
isAlive in interface com.liferay.portal.kernel.resiliency.spi.SPI
- Throws:
RemoteException
start
public void start()
- Specified by:
start in interface com.liferay.portal.kernel.resiliency.spi.SPI
stop
public void stop()
throws RemoteException
- Specified by:
stop in interface com.liferay.portal.kernel.resiliency.spi.SPI
- Throws:
RemoteException