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.SPI
public void addWebapp(String contextPath, String docBasePath)
addWebapp
in interface com.liferay.portal.kernel.resiliency.spi.SPI
public void destroy() throws RemoteException
destroy
in interface com.liferay.portal.kernel.resiliency.spi.SPI
RemoteException
public com.liferay.portal.kernel.resiliency.mpi.MPI getMPI()
getMPI
in interface com.liferay.portal.kernel.resiliency.spi.SPI
public com.liferay.portal.kernel.nio.intraband.RegistrationReference getRegistrationReference() throws RemoteException
getRegistrationReference
in interface com.liferay.portal.kernel.resiliency.spi.SPI
RemoteException
public com.liferay.portal.kernel.resiliency.spi.agent.SPIAgent getSPIAgent()
getSPIAgent
in interface com.liferay.portal.kernel.resiliency.spi.SPI
public com.liferay.portal.kernel.resiliency.spi.SPIConfiguration getSPIConfiguration() throws RemoteException
getSPIConfiguration
in interface com.liferay.portal.kernel.resiliency.spi.SPI
RemoteException
public String getSPIProviderName()
getSPIProviderName
in interface com.liferay.portal.kernel.resiliency.spi.SPI
public void init()
init
in interface com.liferay.portal.kernel.resiliency.spi.SPI
public boolean isAlive() throws RemoteException
isAlive
in interface com.liferay.portal.kernel.resiliency.spi.SPI
RemoteException
public void start()
start
in interface com.liferay.portal.kernel.resiliency.spi.SPI
public void stop() throws RemoteException
stop
in interface com.liferay.portal.kernel.resiliency.spi.SPI
RemoteException