Package com.iizix.comm
Interface IPortController
public interface IPortController
Interface implemented by a Jetty ServerConnector for a port in order to control it from the server administration.
- Author:
- Christopher Mindus
- Nested Class SummaryNested ClassesModifier and TypeInterfaceDescription- static enumThe state enumeration of the connector.
- Method SummaryModifier and TypeMethodDescription- close- (boolean doPerform) Closes the connector.- void- dispose()Disposes of the port when it has been removed from the server configuration.The port configuration.- getState()Returns the state of the connector.- open- (boolean doPerform) Opens the connector.- void- restart()Restarts the port after server certificate KeyStore update.- start- (boolean doPerform) Starts the port.- stop- (boolean doPerform) Stops the port.
- Method Details- getConfigurationPortConfig getConfiguration()The port configuration.- Returns:
- The port config instance.
 
- getStateIPortController.State getState()Returns the state of the connector.
- startStarts the port.- Parameters:
- doPerform- Flag indicating action should be performed (true) or just testing (false).
- Returns:
- null for success, otherwise an error the admin-human readable error.
 
- openOpens the connector.- Parameters:
- doPerform- Flag indicating action should be performed (true) or just testing (false).
- Returns:
- null for success, otherwise an error the admin-human readable error.
 
- closeCloses the connector.- Parameters:
- doPerform- Flag indicating action should be performed (true) or just testing (false).
- Returns:
- null for success, otherwise an error the admin-human readable error.
 
- restartvoid restart()Restarts the port after server certificate KeyStore update.
- stopStops the port.- Parameters:
- doPerform- Flag indicating action should be performed (true) or just testing (false).
- Returns:
- null for success, otherwise an error the admin-human readable error.
 
- disposevoid dispose()Disposes of the port when it has been removed from the server configuration.