jp.terasoluna.fw.web.thin
Interface ServerBlockageController


public interface ServerBlockageController

Interface that executes server bloackage check in Filter.

Server blockage check functionality is provided by the class that implements this interface.

Implementation class of this interface should be thread safe.

*To see the configuration method of the class which implements this interface, refer to ServerBlockageControlFilter.

See Also:
AuthorizationControlFilter, AuthorizationController, AuthenticationControlFilter, AuthenticationController, BlockageControlFilter, BlockageController, ServerBlockageControlFilter

Method Summary
 void blockade()
          Transits to blocked state.
 boolean isBlockaded()
          Checks if the server is in blocked state.
 boolean isBlockaded(java.lang.String pathInfo)
          Checks if the server is in blocked state.
 boolean isPreBlockaded()
          Checks if the server is in preblockage state.
 void open()
          Transits to normal state.
 void preBlockade()
          Transits to preblockage state.
 void preBlockade(java.util.Date time)
          Transits to preblockage state. On the specified date and time, transits to blocked state.
 

Method Detail

blockade

void blockade()
Transits to blocked state.


isBlockaded

boolean isBlockaded()
Checks if the server is in blocked state.

Returns:
It is true when it is in blocked state

isBlockaded

boolean isBlockaded(java.lang.String pathInfo)
Checks if the server is in blocked state.

Parameters:
pathInfo - Path information
Returns:
It is true when it is in blocked state

isPreBlockaded

boolean isPreBlockaded()
Checks if the server is in preblockage state.

Returns:
It is true when it is in preblockage state

open

void open()
Transits to normal state.


preBlockade

void preBlockade()
Transits to preblockage state.


preBlockade

void preBlockade(java.util.Date time)
Transits to preblockage state. On the specified date and time, transits to blocked state

Parameters:
time - Date and time when it transits to blocked state.