Package com.yahoo.jdisc.test
Class NonWorkingServerProvider
java.lang.Object
com.yahoo.jdisc.NoopSharedResource
com.yahoo.jdisc.test.NonWorkingServerProvider
- All Implemented Interfaces:
ServerProvider
,SharedResource
- Author:
- Simon Thoresen Hult
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.jdisc.SharedResource
SharedResource.Debug
-
Field Summary
Fields inherited from interface com.yahoo.jdisc.SharedResource
DEBUG, SYSTEM_PROPERTY_NAME_DEBUG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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, 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.service.ServerProvider
isMultiplexed
Methods inherited from interface com.yahoo.jdisc.SharedResource
refer, refer, release
-
Constructor Details
-
NonWorkingServerProvider
public NonWorkingServerProvider()
-
-
Method Details
-
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
-