Package nxt
Class Nxt
- java.lang.Object
-
- nxt.Nxt
-
public final class Nxt extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPPLICATIONstatic java.lang.StringCONFIG_DIRstatic java.lang.StringNXT_DEFAULT_PROPERTIESstatic java.lang.StringNXT_PROPERTIESstatic java.lang.StringVERSION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlockchaingetBlockchain()static BlockchainProcessorgetBlockchainProcessor()static java.lang.BooleangetBooleanProperty(java.lang.String name)static java.io.FilegetConfDir()static java.lang.StringgetDbDir(java.lang.String dbDir)static intgetEpochTime()static intgetIntProperty(java.lang.String name)static intgetIntProperty(java.lang.String name, int defaultValue)static java.lang.StringgetProcessId()static java.util.List<java.lang.String>getStringListProperty(java.lang.String name)static java.lang.StringgetStringProperty(java.lang.String name)static java.lang.StringgetStringProperty(java.lang.String name, java.lang.String defaultValue)static java.lang.StringgetStringProperty(java.lang.String name, java.lang.String defaultValue, boolean doNotLog)static TransactionProcessorgetTransactionProcessor()static java.lang.StringgetUserHomeDir()static voidinit()static voidinit(java.util.Properties customProperties)static booleanisDesktopApplicationEnabled()static java.util.PropertiesloadProperties(java.util.Properties properties, java.lang.String propertiesFile, boolean isDefault)static voidmain(java.lang.String[] args)static Transaction.BuildernewTransactionBuilder(byte[] transactionBytes)static Transaction.BuildernewTransactionBuilder(byte[] senderPublicKey, long amountNQT, long feeNQT, short deadline, Attachment attachment)static Transaction.BuildernewTransactionBuilder(byte[] transactionBytes, org.json.simple.JSONObject prunableAttachments)static Transaction.BuildernewTransactionBuilder(org.json.simple.JSONObject transactionJSON)static voidshutdown()static voidupdateLogFileHandler(java.util.Properties loggingProperties)
-
-
-
Field Detail
-
VERSION
public static final java.lang.String VERSION
- See Also:
- Constant Field Values
-
APPLICATION
public static final java.lang.String APPLICATION
- See Also:
- Constant Field Values
-
NXT_DEFAULT_PROPERTIES
public static final java.lang.String NXT_DEFAULT_PROPERTIES
- See Also:
- Constant Field Values
-
NXT_PROPERTIES
public static final java.lang.String NXT_PROPERTIES
- See Also:
- Constant Field Values
-
CONFIG_DIR
public static final java.lang.String CONFIG_DIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadProperties
public static java.util.Properties loadProperties(java.util.Properties properties, java.lang.String propertiesFile, boolean isDefault)
-
getIntProperty
public static int getIntProperty(java.lang.String name)
-
getIntProperty
public static int getIntProperty(java.lang.String name, int defaultValue)
-
getStringProperty
public static java.lang.String getStringProperty(java.lang.String name)
-
getStringProperty
public static java.lang.String getStringProperty(java.lang.String name, java.lang.String defaultValue)
-
getStringProperty
public static java.lang.String getStringProperty(java.lang.String name, java.lang.String defaultValue, boolean doNotLog)
-
getStringListProperty
public static java.util.List<java.lang.String> getStringListProperty(java.lang.String name)
-
getBooleanProperty
public static java.lang.Boolean getBooleanProperty(java.lang.String name)
-
getBlockchain
public static Blockchain getBlockchain()
-
getBlockchainProcessor
public static BlockchainProcessor getBlockchainProcessor()
-
getTransactionProcessor
public static TransactionProcessor getTransactionProcessor()
-
newTransactionBuilder
public static Transaction.Builder newTransactionBuilder(byte[] senderPublicKey, long amountNQT, long feeNQT, short deadline, Attachment attachment)
-
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()
-
main
public static void main(java.lang.String[] args)
-
init
public static void init(java.util.Properties customProperties)
-
init
public static void init()
-
shutdown
public static void shutdown()
-
getProcessId
public static java.lang.String getProcessId()
-
getDbDir
public static java.lang.String getDbDir(java.lang.String dbDir)
-
updateLogFileHandler
public static void updateLogFileHandler(java.util.Properties loggingProperties)
-
getUserHomeDir
public static java.lang.String getUserHomeDir()
-
getConfDir
public static java.io.File getConfDir()
-
isDesktopApplicationEnabled
public static boolean isDesktopApplicationEnabled()
-
-