Package nxt
Class Nxt
java.lang.Object
nxt.Nxt
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Blockchainstatic BlockchainProcessorstatic booleangetBooleanProperty(String name) static booleangetBooleanProperty(String name, boolean defaultValue) static Filestatic Stringstatic <T extends Enum<T>>
TgetEnumProperty(Class<T> clazz, String propertyName, T defaultValue) static intstatic intgetIntProperty(String name) static intgetIntProperty(String name, int defaultValue) static Stringstatic RuntimeModestatic ServerStatusgetStringListProperty(String name) static StringgetStringProperty(String name) static StringgetStringProperty(String name, String defaultValue) static StringgetStringProperty(String name, String defaultValue, boolean doNotLog) static StringgetStringProperty(String name, String defaultValue, boolean doNotLog, String encoding) static TransactionProcessorstatic Stringstatic voidinit()static voidstatic voidinit(Setup setup, Properties customProperties) static booleanstatic StringloadProperties(Properties properties, String propertiesFile, boolean isDefault) static voidstatic Transaction.BuildernewTransactionBuilder(byte[] transactionBytes) static Transaction.BuildernewTransactionBuilder(byte[] transactionBytes, org.json.simple.JSONObject prunableAttachments) static Transaction.BuildernewTransactionBuilder(org.json.simple.JSONObject transactionJSON) static BlockparseBlock(byte[] blockBytes, List<? extends FxtTransaction> blockTransactions) static TransactionparseTransaction(byte[] transactionBytes) static voidsetServerStatus(ServerStatus status, URI wallet) static voidstatic voidshutdown()Shutdown the application.static voidupdateLogFileHandler(Properties loggingProperties)
-
Field Details
-
VERSION
- See Also:
-
APPLICATION
- See Also:
-
NXT_DEFAULT_PROPERTIES
- See Also:
-
NXT_PROPERTIES
- See Also:
-
NXT_INSTALLER_PROPERTIES
- See Also:
-
CONFIG_DIR
- See Also:
-
-
Method Details
-
loadProperties
public static String loadProperties(Properties properties, String propertiesFile, boolean isDefault) -
getIntProperty
-
getIntProperty
-
getStringProperty
-
getStringProperty
-
getStringProperty
-
getEnumProperty
-
getStringProperty
-
getStringListProperty
-
getBooleanProperty
-
getBooleanProperty
-
getBlockchain
-
getBlockchainProcessor
-
getTransactionProcessor
-
parseBlock
public static Block parseBlock(byte[] blockBytes, List<? extends FxtTransaction> blockTransactions) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-
parseTransaction
public static Transaction parseTransaction(byte[] transactionBytes) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-
newTransactionBuilder
public static Transaction.Builder newTransactionBuilder(byte[] transactionBytes) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-
newTransactionBuilder
public static Transaction.Builder newTransactionBuilder(org.json.simple.JSONObject transactionJSON) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-
newTransactionBuilder
public static Transaction.Builder newTransactionBuilder(byte[] transactionBytes, org.json.simple.JSONObject prunableAttachments) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-
getEpochTime
public static int getEpochTime() -
setTime
-
main
-
init
-
init
public static void init() -
init
-
shutdown
public static void shutdown()Shutdown the application. -
getProcessId
-
getDbDir
-
updateLogFileHandler
-
getUserHomeDir
-
getConfDir
-
setServerStatus
-
getServerStatus
-
getRuntimeMode
-
isEnabled
-