PHP Class AppserverIo\Appserver\Core\Consoles\Telnet

Inheritance: extends Thread, implements AppserverIo\Appserver\Core\Consoles\ConsoleInterface
Show file Open project: appserver-io/appserver

Protected Properties

Property Type Description
$logo string appserver.io written in ASCII art.

Public Methods

Method Description
__construct ( AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface $applicationServer, AppserverIo\Appserver\Core\Api\Node\ConsoleNodeInterface $consoleNode ) : void Initialize and start the management console.
getName ( ) : string Return's the console name.
run ( ) : void The thread's run() method that runs asynchronously.
shutdown ( ) : void Shutdown handler that checks for fatal/user errors.
stop ( ) : void Stop the console and closes all connections.

Protected Methods

Method Description
getAddress ( ) : integer Returns the IP address to listen to.
getPort ( ) : integer Returns the port to listen to.

Method Details

__construct() public method

Initialize and start the management console.
public __construct ( AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface $applicationServer, AppserverIo\Appserver\Core\Api\Node\ConsoleNodeInterface $consoleNode ) : void
$applicationServer AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface The reference to the server
$consoleNode AppserverIo\Appserver\Core\Api\Node\ConsoleNodeInterface The console configuration
return void

getAddress() protected method

Returns the IP address to listen to.
protected getAddress ( ) : integer
return integer The IP address to listen to

getName() public method

Return's the console name.
public getName ( ) : string
return string The console name

getPort() protected method

Returns the port to listen to.
protected getPort ( ) : integer
return integer The port to listen to

run() public method

The thread's run() method that runs asynchronously.
public run ( ) : void
return void

shutdown() public method

Shutdown handler that checks for fatal/user errors.
public shutdown ( ) : void
return void

stop() public method

Stop the console and closes all connections.
public stop ( ) : void
return void

Property Details