Package com.yahoo.jdisc.test
Class NonWorkingServerProvider
- java.lang.Object
-
- com.yahoo.jdisc.NoopSharedResource
-
- com.yahoo.jdisc.test.NonWorkingServerProvider
-
- All Implemented Interfaces:
ServerProvider
,SharedResource
public final class NonWorkingServerProvider extends NoopSharedResource implements ServerProvider
- Author:
- Simon Thoresen Hult
-
-
Field Summary
-
Fields inherited from interface com.yahoo.jdisc.SharedResource
DEBUG, SYSTEM_PROPERTY_NAME_DEBUG
-
-
Constructor Summary
Constructors Constructor Description NonWorkingServerProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
This is a synchronous method to close the listen port (or equivalent) of this ServerProvider and flush any input buffers that will cause calls toCurrentContainer.newReference(URI)
.void
start()
This is a synchronous method to configure this ServerProvider and bind the listen port (or equivalent).-
Methods inherited from class com.yahoo.jdisc.NoopSharedResource
refer, release
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.yahoo.jdisc.SharedResource
refer, release
-
-
-
-
Method Detail
-
start
public void start()
Description copied from interface:ServerProvider
This is a synchronous method to configure this ServerProvider and bind the listen port (or equivalent). The
Container
does not call this method, instead it is a required step in theApplication
initialization code.- Specified by:
start
in interfaceServerProvider
-
close
public void close()
Description copied from interface:ServerProvider
This is a synchronous method to close the listen port (or equivalent) of this ServerProvider and flush any input buffers that will cause calls to
CurrentContainer.newReference(URI)
. This method must not return until the implementation can guarantee that there will be no further calls to CurrentContainer. All previously dispatchedRequest
s are processed as before.The
Container
does not call this method, instead it is a required step in theApplication
shutdown code.- Specified by:
close
in interfaceServerProvider
-
-