Atavism Version 2018.1AGIS API

atavism.server.engine
Class MasterServer

java.lang.Object
  extended by atavism.server.engine.MasterServer
All Implemented Interfaces:
ClientConnection.AcceptCallback, ClientConnection.MessageCallback

public class MasterServer
extends java.lang.Object
implements ClientConnection.AcceptCallback, ClientConnection.MessageCallback


Nested Class Summary
static class MasterServer.SocketHandler
           
 
Field Summary
static int AUTH_PROTOCOL_VERSION
           
static int defaultRdpPort
           
static int defaultTcpPort
           
static long masterTokenValidTime
           
static java.util.Properties properties
          The Properties instance, typically read from file $AO_HOME/bin/master.properties
 
Constructor Summary
MasterServer()
           
 
Method Summary
 void acceptConnection(ClientConnection con)
           
 void chatMsg(ClientConnection con, AOByteBuffer buf)
           
 void connectionReset(ClientConnection con)
           
 void dbConnect()
           
static java.lang.String getDBHostname()
          Gets The database host name.
static java.lang.String getDBName()
          Gets the database name - default is "atavism".
static java.lang.String getDBPassword()
          Gets the database password.
static java.lang.String getDBType()
          Gets the database type - default is "mysql".
static java.lang.String getDBUrl()
          Gets the JDBC connection string (URL).
static java.lang.String getDBUser()
          Gets the database user name.
 MasterDatabase getMasterDatabase()
           
static MasterServer getMasterServer()
           
 int getRDPPort()
           
static java.lang.String getRemoteAccountTableName()
          Gets the remote account table name.
static java.lang.String getRemoteDBHostname()
          Gets The database host name.
static java.lang.String getRemoteDBName()
          Gets the database name.
static java.lang.String getRemoteDBPassword()
          Gets the database password.
static java.lang.String getRemoteDBUrl()
          Gets the JDBC connection string (URL).
static java.lang.String getRemoteDBUser()
          Gets the database user name.
 int getTCPPort()
           
static void main(java.lang.String[] args)
           
 void processPacket(ClientConnection con, AOByteBuffer buf)
           
static boolean remoteDatabaseEnabled()
          Gets the remote account table name.
 void resolveName(ClientConnection con, AOByteBuffer buf)
           
 void setRDPPort(int port)
           
 void setRemoteConnector(RemoteAccountConnector connector)
           
 void setTCPPort(int port)
           
static boolean useSaltedMd5Passwords()
          Checks whether the passwords are being stored with salts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

masterTokenValidTime

public static long masterTokenValidTime

AUTH_PROTOCOL_VERSION

public static final int AUTH_PROTOCOL_VERSION
See Also:
Constant Field Values

defaultTcpPort

public static final int defaultTcpPort
See Also:
Constant Field Values

defaultRdpPort

public static final int defaultRdpPort
See Also:
Constant Field Values

properties

public static java.util.Properties properties
The Properties instance, typically read from file $AO_HOME/bin/master.properties

Constructor Detail

MasterServer

public MasterServer()
Method Detail

dbConnect

public void dbConnect()

setTCPPort

public void setTCPPort(int port)

getTCPPort

public int getTCPPort()

setRDPPort

public void setRDPPort(int port)

getRDPPort

public int getRDPPort()

setRemoteConnector

public void setRemoteConnector(RemoteAccountConnector connector)

acceptConnection

public void acceptConnection(ClientConnection con)
Specified by:
acceptConnection in interface ClientConnection.AcceptCallback

processPacket

public void processPacket(ClientConnection con,
                          AOByteBuffer buf)
Specified by:
processPacket in interface ClientConnection.MessageCallback

connectionReset

public void connectionReset(ClientConnection con)
Specified by:
connectionReset in interface ClientConnection.MessageCallback

resolveName

public void resolveName(ClientConnection con,
                        AOByteBuffer buf)

chatMsg

public void chatMsg(ClientConnection con,
                    AOByteBuffer buf)

getMasterDatabase

public MasterDatabase getMasterDatabase()

getMasterServer

public static MasterServer getMasterServer()

getDBType

public static java.lang.String getDBType()
Gets the database type - default is "mysql".

Returns:
The database type.

getDBUrl

public static java.lang.String getDBUrl()
Gets the JDBC connection string (URL).

Returns:
The JDBC connection string.

getDBUser

public static java.lang.String getDBUser()
Gets the database user name.

Returns:
The database user name.

getDBPassword

public static java.lang.String getDBPassword()
Gets the database password.

Returns:
The database password.

getDBHostname

public static java.lang.String getDBHostname()
Gets The database host name.

Returns:
The database host name.

getDBName

public static java.lang.String getDBName()
Gets the database name - default is "atavism".

Returns:
The database name.

getRemoteDBUrl

public static java.lang.String getRemoteDBUrl()
Gets the JDBC connection string (URL).

Returns:
The JDBC connection string.

getRemoteDBUser

public static java.lang.String getRemoteDBUser()
Gets the database user name.

Returns:
The database user name.

getRemoteDBPassword

public static java.lang.String getRemoteDBPassword()
Gets the database password.

Returns:
The database password.

getRemoteDBHostname

public static java.lang.String getRemoteDBHostname()
Gets The database host name.

Returns:
The database host name.

getRemoteDBName

public static java.lang.String getRemoteDBName()
Gets the database name.

Returns:
The database name.

getRemoteAccountTableName

public static java.lang.String getRemoteAccountTableName()
Gets the remote account table name.

Returns:
The remote account table name.

remoteDatabaseEnabled

public static boolean remoteDatabaseEnabled()
Gets the remote account table name.

Returns:
The remote account table name.

useSaltedMd5Passwords

public static boolean useSaltedMd5Passwords()
Checks whether the passwords are being stored with salts


main

public static void main(java.lang.String[] args)


Copyright © 2018 Dragonsan Studios Sp. z o.o.