Package org.rhq.core.system

Examples of org.rhq.core.system.SystemInfo


        }
        return (childResources.isEmpty()) ? null : childResources.iterator().next();
    }

    private List<ProcessInfo> getServerProcesses() {
        SystemInfo systemInfo = SystemInfoFactory.createSystemInfo();
        return systemInfo.getProcesses("arg|*|match=org\\.jboss\\.Main|-Djboss.service.binding.set|match="
            + SERVICE_BINDING_SET);
    }
View Full Code Here


import org.rhq.core.system.SystemInfo;

public class AixPlatformDiscoveryComponent extends PlatformDiscoveryComponent {
    protected boolean isPlatformSupported(ResourceDiscoveryContext context) {
        try {
            SystemInfo systemInfo = context.getSystemInformation();

            return systemInfo.getOperatingSystemType() == OperatingSystemType.AIX;
        } catch (Exception e) {
        }

        return false;
    }
View Full Code Here

            }
        }
    }

    private FileSystemInfo getFileSystemInfo() {
        SystemInfo systemInfo = resourceContext.getSystemInformation();
        return systemInfo.getFileSystem(resourceContext.getResourceKey());
    }
View Full Code Here

    public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<PlatformComponent> discoveryContext)
            throws Exception {
        Set<DiscoveredResourceDetails> results = new HashSet<DiscoveredResourceDetails>();

        SystemInfo sysInfo = discoveryContext.getSystemInformation();
        if (!sysInfo.isNative()) {
            log.debug("Skipping " + discoveryContext.getResourceType().getName() +
                    " discovery, since native system info is not available.");
            return results;
        }

        for (NetworkAdapterInfo info : sysInfo.getAllNetworkAdapters()) {
            Configuration configuration = discoveryContext.getDefaultPluginConfiguration();
            configuration.put(new PropertySimple("macAddress", info.getMacAddressString()));
            DiscoveredResourceDetails found = new DiscoveredResourceDetails(discoveryContext.getResourceType(),
                    info.getName(), info.getDisplayName(), null, info.getMacAddressString(), configuration, null);
            results.add(found);
View Full Code Here

TOP

Related Classes of org.rhq.core.system.SystemInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.