API Documentation: Class MachineProfile
| Name | MachineProfile |
| Package | com.mckoi.network |
Describes a machine in a Mchoi distributed network, used by administration functions.
Methods Summary
| ServiceAddress | getServiceAddress() | ||
| boolean | isBlock() | ||
| boolean | isRoot() | ||
| boolean | isManager() | ||
| boolean | isError() | ||
| String | getProblemMessage() | ||
| long | getHeapUsed() | ||
| long | getHeapTotal() | ||
| long | getStorageUsed() | ||
| long | getStorageTotal() |
Method Details
ServiceAddress getServiceAddress()
Returns the ServerAddress that locates the machine on the network.
boolean isBlock()
Returns true if this machine is assigned as a block server role.
boolean isRoot()
Returns true if this machine is assigned as a root server role.
boolean isManager()
Returns true if this machine is assigned as a manager server role.
boolean isError()
Returns true if there was an error when optaining information about this machine.
String getProblemMessage()
Returns the error message describing why 'isError' returned true.
long getHeapUsed()
Returns the amount of heap space reported to be used by the machine.
long getHeapTotal()
Returns the total amount of heap space reported by the machine.
long getStorageUsed()
Returns the amount of storage space reported to be used by the machine.
long getStorageTotal()
Returns the total amount of storage space reported by the machine.
