private ModelNode createCPUNode ( ) throws OperationFailedException { ModelNode cpu = new ModelNode ( ) . setEmptyObject ( ) ; cpu . get ( ARCH ) . set ( getProperty ( "os.arch" ) ) ; cpu . get ( AVAILABLE_PROCESSORS ) . set ( ProcessorInfo . availableProcessors ( ) ) ; return cpu ; }
Create a ModelNode representing the CPU the instance is running on .