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.String
APPLICATION
static java.lang.String
CONFIG_DIR
static java.lang.String
NXT_DEFAULT_PROPERTIES
static java.lang.String
NXT_PROPERTIES
static java.lang.String
VERSION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Blockchain
getBlockchain()
static BlockchainProcessor
getBlockchainProcessor()
static java.lang.Boolean
getBooleanProperty(java.lang.String name)
static java.io.File
getConfDir()
static java.lang.String
getDbDir(java.lang.String dbDir)
static int
getEpochTime()
static int
getIntProperty(java.lang.String name)
static int
getIntProperty(java.lang.String name, int defaultValue)
static java.lang.String
getProcessId()
static java.util.List<java.lang.String>
getStringListProperty(java.lang.String name)
static java.lang.String
getStringProperty(java.lang.String name)
static java.lang.String
getStringProperty(java.lang.String name, java.lang.String defaultValue)
static java.lang.String
getStringProperty(java.lang.String name, java.lang.String defaultValue, boolean doNotLog)
static TransactionProcessor
getTransactionProcessor()
static java.lang.String
getUserHomeDir()
static void
init()
static void
init(java.util.Properties customProperties)
static boolean
isDesktopApplicationEnabled()
static java.util.Properties
loadProperties(java.util.Properties properties, java.lang.String propertiesFile, boolean isDefault)
static void
main(java.lang.String[] args)
static Transaction.Builder
newTransactionBuilder(byte[] transactionBytes)
static Transaction.Builder
newTransactionBuilder(byte[] senderPublicKey, long amountNQT, long feeNQT, short deadline, Attachment attachment)
static Transaction.Builder
newTransactionBuilder(byte[] transactionBytes, org.json.simple.JSONObject prunableAttachments)
static Transaction.Builder
newTransactionBuilder(org.json.simple.JSONObject transactionJSON)
static void
shutdown()
static void
updateLogFileHandler(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()
-
-