public class MockSPI extends Object implements com.liferay.portal.kernel.resiliency.spi.SPI
| Modifier and Type | Field and Description |
|---|---|
boolean |
destroyed |
boolean |
failOnDestroy |
boolean |
failOnGetConfiguration |
boolean |
failOnIsAlive |
boolean |
failOnStop |
com.liferay.portal.kernel.resiliency.mpi.MPI |
mpi |
com.liferay.portal.kernel.nio.intraband.RegistrationReference |
registrationReference |
com.liferay.portal.kernel.resiliency.spi.SPIConfiguration |
spiConfiguration |
String |
spiProviderName |
boolean |
stopped |
| Constructor and Description |
|---|
MockSPI() |
| Modifier and Type | Method and Description |
|---|---|
void |
addServlet(String contextPath,
String docBasePath,
String mappingPattern,
String servletClassName) |
void |
addWebapp(String contextPath,
String docBasePath) |
void |
destroy() |
com.liferay.portal.kernel.resiliency.mpi.MPI |
getMPI() |
com.liferay.portal.kernel.nio.intraband.RegistrationReference |
getRegistrationReference() |
com.liferay.portal.kernel.resiliency.spi.agent.SPIAgent |
getSPIAgent() |
com.liferay.portal.kernel.resiliency.spi.SPIConfiguration |
getSPIConfiguration() |
String |
getSPIProviderName() |
void |
init() |
boolean |
isAlive() |
void |
start() |
void |
stop() |
public boolean destroyed
public boolean failOnDestroy
public boolean failOnGetConfiguration
public boolean failOnIsAlive
public boolean failOnStop
public com.liferay.portal.kernel.resiliency.mpi.MPI mpi
public com.liferay.portal.kernel.nio.intraband.RegistrationReference registrationReference
public com.liferay.portal.kernel.resiliency.spi.SPIConfiguration spiConfiguration
public String spiProviderName
public boolean stopped
public void addServlet(String contextPath, String docBasePath, String mappingPattern, String servletClassName)
addServlet in interface com.liferay.portal.kernel.resiliency.spi.SPIpublic void addWebapp(String contextPath, String docBasePath)
addWebapp in interface com.liferay.portal.kernel.resiliency.spi.SPIpublic void destroy()
throws RemoteException
destroy in interface com.liferay.portal.kernel.resiliency.spi.SPIRemoteExceptionpublic com.liferay.portal.kernel.resiliency.mpi.MPI getMPI()
getMPI in interface com.liferay.portal.kernel.resiliency.spi.SPIpublic com.liferay.portal.kernel.nio.intraband.RegistrationReference getRegistrationReference()
throws RemoteException
getRegistrationReference in interface com.liferay.portal.kernel.resiliency.spi.SPIRemoteExceptionpublic com.liferay.portal.kernel.resiliency.spi.agent.SPIAgent getSPIAgent()
getSPIAgent in interface com.liferay.portal.kernel.resiliency.spi.SPIpublic com.liferay.portal.kernel.resiliency.spi.SPIConfiguration getSPIConfiguration()
throws RemoteException
getSPIConfiguration in interface com.liferay.portal.kernel.resiliency.spi.SPIRemoteExceptionpublic String getSPIProviderName()
getSPIProviderName in interface com.liferay.portal.kernel.resiliency.spi.SPIpublic void init()
init in interface com.liferay.portal.kernel.resiliency.spi.SPIpublic boolean isAlive()
throws RemoteException
isAlive in interface com.liferay.portal.kernel.resiliency.spi.SPIRemoteExceptionpublic void start()
start in interface com.liferay.portal.kernel.resiliency.spi.SPIpublic void stop()
throws RemoteException
stop in interface com.liferay.portal.kernel.resiliency.spi.SPIRemoteException