Liferay 7.0-ce-b4

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

java.lang.Object
  extended by com.liferay.portal.kernel.resiliency.spi.remote.RemoteSPI
      extended by com.liferay.portal.kernel.resiliency.spi.MockRemoteSPI
All Implemented Interfaces:
ProcessCallable<SPI>, SPI, Serializable, Remote

public class MockRemoteSPI
extends RemoteSPI

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.liferay.portal.kernel.resiliency.spi.remote.RemoteSPI
RemoteSPI.RegisterCallback, RemoteSPI.SPIShutdownHook, RemoteSPI.UnregisterSPIProcessCallable
 
Field Summary
 
Fields inherited from class com.liferay.portal.kernel.resiliency.spi.remote.RemoteSPI
countDownLatch, mpi, registrationReference, spiAgent, spiConfiguration, uuid, welder
 
Fields inherited from interface com.liferay.portal.kernel.resiliency.spi.SPI
SPI_INSTANCE_PUBLICATION_KEY
 
Constructor Summary
MockRemoteSPI(SPIConfiguration spiConfiguration)
           
 
Method Summary
 void addServlet(String contextPath, String docBasePath, String mappingPattern, String servletClassName)
           
 void addWebapp(String contextPath, String docBasePath)
           
protected  void doDestroy()
           
 String getSPIProviderName()
           
 void init()
           
 void setFailOnDestroy(boolean failOnDestroy)
           
 void setFailOnStop(boolean failOnStop)
           
 void setSpiProviderName(String spiProviderName)
           
 void start()
           
 void stop()
           
 
Methods inherited from class com.liferay.portal.kernel.resiliency.spi.remote.RemoteSPI
call, destroy, getMPI, getRegistrationReference, getSPIAgent, getSPIConfiguration, getUUID, getWelder, isAlive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockRemoteSPI

public MockRemoteSPI(SPIConfiguration spiConfiguration)
Method Detail

addServlet

public void addServlet(String contextPath,
                       String docBasePath,
                       String mappingPattern,
                       String servletClassName)

addWebapp

public void addWebapp(String contextPath,
                      String docBasePath)

getSPIProviderName

public String getSPIProviderName()

init

public void init()

setFailOnDestroy

public void setFailOnDestroy(boolean failOnDestroy)

setFailOnStop

public void setFailOnStop(boolean failOnStop)

setSpiProviderName

public void setSpiProviderName(String spiProviderName)

start

public void start()

stop

public void stop()
          throws RemoteException
Throws:
RemoteException

doDestroy

protected void doDestroy()
                  throws RemoteException
Specified by:
doDestroy in class RemoteSPI
Throws:
RemoteException

Liferay 7.0-ce-b4