rename net.hyperic.sigar -> org.hyperic.sigar

This commit is contained in:
Doug MacEachern 2006-06-27 12:44:52 +00:00
parent 2b812125f3
commit 09e476c9ae
186 changed files with 544 additions and 544 deletions

View File

@ -59,8 +59,8 @@
<target name="javadoc" depends="javadoc_check">
<mkdir dir="${build.javadoc}"/>
<javadoc packagenames="net.hyperic.sigar.*"
excludepackagenames="net.hyperic.sigar.test.*,net.hyperic.jni.*,net.hyperic.sigar.pager.*,net.hyperic.sigar.jmx.*,net.hyperic.sigar.win32.test.*"
<javadoc packagenames="org.hyperic.sigar.*"
excludepackagenames="org.hyperic.sigar.test.*,org.hyperic.jni.*,org.hyperic.sigar.pager.*,org.hyperic.sigar.jmx.*,org.hyperic.sigar.win32.test.*"
useexternalfile="yes"
sourcepathref="javadoc.path"
destdir="${build.javadoc}"
@ -68,10 +68,10 @@
version="false"
windowtitle="Sigar API"
doctitle="Sigar">
<group title="Sigar" packages="net.hyperic.sigar" />
<group title="Sigar" packages="org.hyperic.sigar" />
<classpath refid="libjars"/>
<classpath><path path="${env.ANT_HOME}/lib/ant.jar"/></classpath>
<bottom>Copyright &#169; ${copyright.year} <![CDATA[<a target="_top" href="http://www.hyperic.net/">Hyperic, LLC</a>]]>. All Rights Reserved.</bottom>
<bottom>Copyright &#169; ${copyright.year} <![CDATA[<a target="_top" href="http://www.hyperic.com/">Hyperic</a>]]>. All Rights Reserved.</bottom>
</javadoc>
</target>
@ -118,7 +118,7 @@
<antcall target="version-file">
<param name="version.file"
value="src/net/hyperic/sigar/SigarVersion.java"/>
value="src/org/hyperic/sigar/SigarVersion.java"/>
</antcall>
<antcall target="version-file">
@ -263,7 +263,7 @@
<manifest>
<attribute name="Main-Class"
value="net.hyperic.sigar.cmd.Runner"/>
value="org.hyperic.sigar.cmd.Runner"/>
</manifest>
</jar>
</target>
@ -291,8 +291,8 @@
<batchtest fork="yes" todir="${build}/testresults">
<fileset dir="${src}">
<include name="net/hyperic/sigar/test/Test*.java"/>
<include name="net/hyperic/sigar/${win32.test}/Test*.java"/>
<include name="org/hyperic/sigar/test/Test*.java"/>
<include name="org/hyperic/sigar/${win32.test}/Test*.java"/>
<exclude name="**/.java"/>
<!-- slow; run by hand with bin/run_tests.sh Threads -->
<exclude name="**/TestThreads*.java"/>
@ -395,7 +395,7 @@
<mkdir dir="${dist}/examples/csharp"/>
<copy toDir="${dist}/examples/java" overwrite="true">
<fileset dir="src/net/hyperic/sigar/cmd">
<fileset dir="src/org/hyperic/sigar/cmd">
<include name="*.java"/>
</fileset>
<fileset dir="examples">

View File

@ -1,4 +1,4 @@
import net.hyperic.sigar.*;
import org.hyperic.sigar.*;
/*

View File

@ -1,7 +1,7 @@
import java.util.Arrays;
import java.util.List;
import net.hyperic.sigar.win32.Service;
import net.hyperic.sigar.win32.Win32Exception;
import org.hyperic.sigar.win32.Service;
import org.hyperic.sigar.win32.Win32Exception;
/*

View File

@ -1,7 +1,7 @@
use strict;
use File::Path;
my $package = 'net.hyperic.sigar';
my $package = 'org.hyperic.sigar';
my %platforms = (
A => "AIX",
@ -1122,7 +1122,7 @@ print "generating $cfile\n";
chdir $build_src;
my $jsrc = 'net/hyperic/sigar';
my $jsrc = 'org/hyperic/sigar';
mkpath([$jsrc], 0, 0755) unless -d $jsrc;
open CFH, ">$cfile" or die "open $cfile: $!";
@ -1547,7 +1547,7 @@ my $jsigar = "../../src/jni/javasigar.c";
open JSIGAR, $jsigar or die "open $jsigar: $!";
while (<JSIGAR>) {
next unless /SIGAR_JNI\(([A-Za-z_]+)\)/;
print DFH "Java_net_hyperic_sigar_$1\n";
print DFH "Java_org_hyperic_sigar_$1\n";
}
close CFH;

View File

@ -1,8 +1,8 @@
#define JENV (*env)
#define SIGAR_PACKAGE "net/hyperic/sigar/"
#define SIGAR_PACKAGE "org/hyperic/sigar/"
#define SIGAR_JNI(m) JNICALL Java_net_hyperic_sigar_##m
#define SIGAR_JNI(m) JNICALL Java_org_hyperic_sigar_##m
#define SIGAR_FIND_CLASS(name) \
JENV->FindClass(env, SIGAR_PACKAGE name)

View File

@ -12,7 +12,7 @@
/* Include java jni headers */
#include <jni.h>
#define WIN32_PACKAGE "net/hyperic/sigar/win32/"
#define WIN32_PACKAGE "org/hyperic/sigar/win32/"
#define WIN32_FIND_CLASS(name) \
JENV->FindClass(env, WIN32_PACKAGE name)

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
/**
* CPU percentage usage

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.io.PrintStream;

View File

@ -1,8 +1,8 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
/**
* This class provides a summary of current process states.
* @see net.hyperic.sigar.cmd.Top
* @see org.hyperic.sigar.cmd.Top
*/
public class CurrentProcessSummary {
private int total=0, sleeping=0, running=0, zombie=0, stopped=0;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.text.SimpleDateFormat;
import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.util.HashMap;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.io.FileReader;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.io.File;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.util.Collections;
import java.util.HashSet;

View File

@ -1,9 +1,9 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.util.HashMap;
import java.util.Map;
import net.hyperic.sigar.ptql.ProcessFinder;
import org.hyperic.sigar.ptql.ProcessFinder;
/**
* Provide multi process cpu metrics.

View File

@ -1,6 +1,6 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import net.hyperic.sigar.ptql.ProcessFinder;
import org.hyperic.sigar.ptql.ProcessFinder;
public class MultiProcMem extends ProcMem {

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
/**
* Flag constants for network related ops.
@ -135,7 +135,7 @@ public class NetFlags {
/**
* @param flags network interface flags.
* @return String representation of network interface flags.
* @see net.hyperic.sigar.NetInterfaceConfig#getFlags
* @see org.hyperic.sigar.NetInterfaceConfig#getFlags
*/
public static String getIfFlagsString(long flags) {
String retval = "";

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.io.BufferedReader;
import java.io.File;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.util.HashMap;
import java.util.Iterator;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.net.InetAddress;
import java.net.UnknownHostException;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
public class NfsUnreachableException extends SigarException {
public NfsUnreachableException () { super(); }

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.io.IOException;
import java.io.File;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.util.HashMap;
import java.util.Map;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.util.Map;
@ -14,7 +14,7 @@ class ProcEnv {
* @param pid Process id.
* @return Map of environment.
* @exception SigarException on failure.
* @see net.hyperic.sigar.Sigar#getProcEnv
* @see org.hyperic.sigar.Sigar#getProcEnv
*/
public static native Map getAll(Sigar sigar, long pid)
throws SigarException;
@ -25,7 +25,7 @@ class ProcEnv {
* @param key Environment variable name.
* @return Environment variable value.
* @exception SigarException on failure.
* @see net.hyperic.sigar.Sigar#getProcEnv
* @see org.hyperic.sigar.Sigar#getProcEnv
*/
public static native String getValue(Sigar sigar, long pid, String key)
throws SigarException;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.io.File;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.util.HashMap;
import java.util.List;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.io.BufferedReader;
import java.io.File;
@ -555,7 +555,7 @@ public class Sigar implements SigarProxy {
* @param name Name of the directory on which filesystem is mounted.
* @exception SigarException If given directory is not mounted.
* @exception NfsUnreachableException If NFS server is unreachable.
* @see net.hyperic.sigar.Sigar#getFileSystemUsage
* @see org.hyperic.sigar.Sigar#getFileSystemUsage
*/
public FileSystemUsage getMountedFileSystemUsage(String name)
throws SigarException, NfsUnreachableException {

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
class SigarCacheObject {

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
/**
* Sigar base exception class.

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
public class SigarFileNotFoundException extends SigarException {

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.util.Arrays;
import java.util.HashMap;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import net.hyperic.jni.ArchLoader;
import net.hyperic.jni.ArchLoaderException;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
/**
* Sigar exception class, thrown for methods which are not implemented

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
public class SigarPermissionDeniedException extends SigarException {

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.util.List;
import java.util.Map;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.util.Map;
@ -7,7 +7,7 @@ import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import net.hyperic.sigar.util.ReferenceMap;
import org.hyperic.sigar.util.ReferenceMap;
/**
* This class implements a caching mechanism to avoid system calls

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
class SigarVersion {

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar;
package org.hyperic.sigar;
import java.io.File;
import java.io.FileNotFoundException;

View File

@ -1,8 +1,8 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.CpuPerc;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.CpuPerc;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
/**
* Display cpu information for each cpu found on the system.
@ -34,13 +34,13 @@ public class CpuInfo extends SigarCommandBase {
}
public void output(String[] args) throws SigarException {
net.hyperic.sigar.CpuInfo[] infos =
org.hyperic.sigar.CpuInfo[] infos =
this.sigar.getCpuInfoList();
CpuPerc[] cpus = null;
println(infos.length + " total CPUs..");
net.hyperic.sigar.CpuInfo info = infos[0];
org.hyperic.sigar.CpuInfo info = infos[0];
long cacheSize = info.getCacheSize();
println("Vendor........" + info.getVendor());
println("Model........." + info.getModel());

View File

@ -1,16 +1,16 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.util.ArrayList;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.FileSystem;
import net.hyperic.sigar.FileSystemMap;
import net.hyperic.sigar.FileSystemUsage;
import net.hyperic.sigar.NfsFileSystem;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.FileSystem;
import org.hyperic.sigar.FileSystemMap;
import org.hyperic.sigar.FileSystemUsage;
import org.hyperic.sigar.NfsFileSystem;
import net.hyperic.sigar.shell.FileCompleter;
import net.hyperic.sigar.util.GetlineCompleter;
import org.hyperic.sigar.shell.FileCompleter;
import org.hyperic.sigar.util.GetlineCompleter;
/**
* Report filesytem disk space usage.

View File

@ -1,7 +1,7 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.DirUsage;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.DirUsage;
import org.hyperic.sigar.SigarException;
/**
* Display usage for a directory recursively

View File

@ -1,8 +1,8 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.Mem;
import net.hyperic.sigar.Swap;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.Mem;
import org.hyperic.sigar.Swap;
import org.hyperic.sigar.SigarException;
/**
* Display amount of free and used memory in the system.

View File

@ -1,13 +1,13 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.util.Arrays;
import java.util.Collection;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.NetInterfaceConfig;
import net.hyperic.sigar.NetInterfaceStat;
import net.hyperic.sigar.NetFlags;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.NetInterfaceConfig;
import org.hyperic.sigar.NetInterfaceStat;
import org.hyperic.sigar.NetFlags;
/**
* Display network interface configuration and metrics.

View File

@ -1,15 +1,15 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.util.ArrayList;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.FileSystem;
import net.hyperic.sigar.FileSystemMap;
import net.hyperic.sigar.FileSystemUsage;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.FileSystem;
import org.hyperic.sigar.FileSystemMap;
import org.hyperic.sigar.FileSystemUsage;
import net.hyperic.sigar.shell.FileCompleter;
import net.hyperic.sigar.util.GetlineCompleter;
import org.hyperic.sigar.shell.FileCompleter;
import org.hyperic.sigar.util.GetlineCompleter;
/**
* Report filesytem disk space usage.

View File

@ -1,6 +1,6 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarException;
/**
* Send a signal to a process.

View File

@ -1,7 +1,7 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.ProcMem;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.ProcMem;
/**
* Watch for changes in program memory usage.

View File

@ -1,10 +1,10 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.CpuPerc;
import net.hyperic.sigar.MultiProcCpu;
import net.hyperic.sigar.ProcMem;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.CpuPerc;
import org.hyperic.sigar.MultiProcCpu;
import org.hyperic.sigar.ProcMem;
/**
* Show multi process status.

View File

@ -1,6 +1,6 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarException;
/**
* Display network info.
@ -20,7 +20,7 @@ public class NetInfo extends SigarCommandBase {
}
public void output(String[] args) throws SigarException {
net.hyperic.sigar.NetInfo info =
org.hyperic.sigar.NetInfo info =
this.sigar.getNetInfo();
println("host name............." +

View File

@ -1,13 +1,13 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import net.hyperic.sigar.NetServices;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.NetConnection;
import net.hyperic.sigar.NetFlags;
import org.hyperic.sigar.NetServices;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.NetConnection;
import org.hyperic.sigar.NetFlags;
/**
* Display network connections.

View File

@ -1,26 +1,26 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.util.ArrayList;
import java.util.Map;
import java.lang.reflect.Method;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarException;
import net.hyperic.sigar.util.GetlineCompleter;
import org.hyperic.sigar.util.GetlineCompleter;
import net.hyperic.sigar.ptql.ProcessQueryBuilder;
import org.hyperic.sigar.ptql.ProcessQueryBuilder;
import net.hyperic.sigar.shell.CollectionCompleter;
import net.hyperic.sigar.shell.MultiwordShellCommand;
import net.hyperic.sigar.shell.ShellBase;
import net.hyperic.sigar.shell.ShellCommandExecException;
import net.hyperic.sigar.shell.ShellCommandInitException;
import net.hyperic.sigar.shell.ShellCommandHandler;
import net.hyperic.sigar.shell.ShellCommandUsageException;
import org.hyperic.sigar.shell.CollectionCompleter;
import org.hyperic.sigar.shell.MultiwordShellCommand;
import org.hyperic.sigar.shell.ShellBase;
import org.hyperic.sigar.shell.ShellCommandExecException;
import org.hyperic.sigar.shell.ShellCommandInitException;
import org.hyperic.sigar.shell.ShellCommandHandler;
import org.hyperic.sigar.shell.ShellCommandUsageException;
/**
* Run process table queries.
* @see net.hyperic.sigar.ptql.ProcessQueryBuilder
* @see org.hyperic.sigar.ptql.ProcessQueryBuilder
*/
public class PTQL
extends MultiwordShellCommand

View File

@ -1,9 +1,9 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarPermissionDeniedException;
import net.hyperic.sigar.ProcFd;
import net.hyperic.sigar.ProcExe;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarPermissionDeniedException;
import org.hyperic.sigar.ProcFd;
import org.hyperic.sigar.ProcExe;
/**
* Display process file information.

View File

@ -1,7 +1,7 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarPermissionDeniedException;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarPermissionDeniedException;
/**
* Display all process information.

View File

@ -1,9 +1,9 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.util.List;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarNotImplementedException;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarNotImplementedException;
/**
* Display process module info.

View File

@ -1,8 +1,8 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarException;
import net.hyperic.sigar.ptql.ProcessQueryGenerator;
import org.hyperic.sigar.ptql.ProcessQueryGenerator;
public class ProcessQueryGenerate extends SigarCommandBase {

View File

@ -1,13 +1,13 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarProxy;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.ProcCredName;
import net.hyperic.sigar.ProcMem;
import net.hyperic.sigar.ProcTime;
import net.hyperic.sigar.ProcState;
import net.hyperic.sigar.ProcUtil;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.ProcCredName;
import org.hyperic.sigar.ProcMem;
import org.hyperic.sigar.ProcTime;
import org.hyperic.sigar.ProcState;
import org.hyperic.sigar.ProcUtil;
import java.util.ArrayList;
import java.util.Iterator;

View File

@ -1,10 +1,10 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.util.ArrayList;
import net.hyperic.sigar.NetFlags;
import net.hyperic.sigar.NetRoute;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.NetFlags;
import org.hyperic.sigar.NetRoute;
import org.hyperic.sigar.SigarException;
public class Route extends SigarCommandBase {

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.io.File;
import java.io.FileFilter;
@ -13,7 +13,7 @@ import java.lang.reflect.InvocationTargetException;
import java.net.URLClassLoader;
import java.net.URL;
import net.hyperic.sigar.SigarLoader;
import org.hyperic.sigar.SigarLoader;
public class Runner {
@ -151,11 +151,11 @@ public class Runner {
Class cmd = null;
String[] packages = {
"net.hyperic.sigar.cmd.",
"net.hyperic.sigar.test.",
"net.hyperic.sigar.",
"net.hyperic.sigar.win32.",
"net.hyperic.sigar.jmx.",
"org.hyperic.sigar.cmd.",
"org.hyperic.sigar.test.",
"org.hyperic.sigar.",
"org.hyperic.sigar.win32.",
"org.hyperic.sigar.jmx.",
};
for (int i=0; i<packages.length; i++) {

View File

@ -1,27 +1,27 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.io.IOException;
import java.io.File;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarPermissionDeniedException;
import net.hyperic.sigar.SigarLoader;
import net.hyperic.sigar.SigarProxy;
import net.hyperic.sigar.SigarProxyCache;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarPermissionDeniedException;
import org.hyperic.sigar.SigarLoader;
import org.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.SigarProxyCache;
import net.hyperic.sigar.ptql.ProcessFinder;
import org.hyperic.sigar.ptql.ProcessFinder;
import net.hyperic.sigar.shell.ShellBase;
import net.hyperic.sigar.shell.ShellCommandExecException;
import net.hyperic.sigar.shell.ShellCommandHandler;
import net.hyperic.sigar.shell.ShellCommandInitException;
import net.hyperic.sigar.shell.ShellCommandUsageException;
import org.hyperic.sigar.shell.ShellBase;
import org.hyperic.sigar.shell.ShellCommandExecException;
import org.hyperic.sigar.shell.ShellCommandHandler;
import org.hyperic.sigar.shell.ShellCommandInitException;
import org.hyperic.sigar.shell.ShellCommandUsageException;
import net.hyperic.sigar.test.SigarTestCase;
import net.hyperic.sigar.test.SigarTestRunner;
import org.hyperic.sigar.test.SigarTestCase;
import org.hyperic.sigar.test.SigarTestRunner;
import net.hyperic.sigar.util.Getline;
import org.hyperic.sigar.util.Getline;
/**
* The Sigar Shell provides a command shell for running the example

View File

@ -1,7 +1,7 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarNotImplementedException;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarNotImplementedException;
/**
* Show process command line arguments.

View File

@ -1,9 +1,9 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.util.Map;
import java.util.Iterator;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarException;
/**
* Show process environment.

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.io.PrintStream;
@ -8,21 +8,21 @@ import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarProxy;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.SigarException;
import net.hyperic.sigar.pager.PageControl;
import net.hyperic.sigar.pager.PageFetchException;
import net.hyperic.sigar.pager.StaticPageFetcher;
import org.hyperic.sigar.pager.PageControl;
import org.hyperic.sigar.pager.PageFetchException;
import org.hyperic.sigar.pager.StaticPageFetcher;
import net.hyperic.sigar.util.GetlineCompleter;
import net.hyperic.sigar.util.PrintfFormat;
import org.hyperic.sigar.util.GetlineCompleter;
import org.hyperic.sigar.util.PrintfFormat;
import net.hyperic.sigar.shell.CollectionCompleter;
import net.hyperic.sigar.shell.ShellCommandBase;
import net.hyperic.sigar.shell.ShellCommandExecException;
import net.hyperic.sigar.shell.ShellCommandUsageException;
import org.hyperic.sigar.shell.CollectionCompleter;
import org.hyperic.sigar.shell.ShellCommandBase;
import org.hyperic.sigar.shell.ShellCommandExecException;
import org.hyperic.sigar.shell.ShellCommandUsageException;
public abstract class SigarCommandBase
extends ShellCommandBase

View File

@ -1,8 +1,8 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.util.Arrays;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarException;
/**
* Display System Information

View File

@ -1,14 +1,14 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.Reader;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.FileInfo;
import net.hyperic.sigar.FileTail;
import net.hyperic.sigar.FileWatcherThread;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.FileInfo;
import org.hyperic.sigar.FileTail;
import org.hyperic.sigar.FileWatcherThread;
/**
* Display the last part of files to the standard output.

View File

@ -1,7 +1,7 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.CpuTimer;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.CpuTimer;
public class Time extends SigarCommandBase {

View File

@ -1,14 +1,14 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.util.List;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarProxy;
import net.hyperic.sigar.CpuPerc;
import net.hyperic.sigar.SigarProxyCache;
import net.hyperic.sigar.ProcCpu;
import net.hyperic.sigar.CurrentProcessSummary;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.CpuPerc;
import org.hyperic.sigar.SigarProxyCache;
import org.hyperic.sigar.ProcCpu;
import org.hyperic.sigar.CurrentProcessSummary;
/**
* Display system resource utilization summaries and process information.
@ -19,7 +19,7 @@ import net.hyperic.sigar.CurrentProcessSummary;
* Example to display java processes only:<br>
* <code>% java -jar sigar-bin/lib/sigar.jar Top State.Name.eq=java</code>
*
* @see net.hyperic.sigar.ptql.ProcessQueryBuilder
* @see org.hyperic.sigar.ptql.ProcessQueryBuilder
*/
public class Top {
private static final int SLEEP_TIME = 1000 * 5;

View File

@ -1,8 +1,8 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.ResourceLimit;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.jmx.SigarInvokerJMX;
import org.hyperic.sigar.ResourceLimit;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.jmx.SigarInvokerJMX;
/**
* Display system resource limits.

View File

@ -1,9 +1,9 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import net.hyperic.sigar.SigarProxy;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarNotImplementedException;
import net.hyperic.sigar.util.PrintfFormat;
import org.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarNotImplementedException;
import org.hyperic.sigar.util.PrintfFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

View File

@ -1,14 +1,14 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.io.PrintStream;
import java.net.InetAddress;
import java.net.UnknownHostException;
import net.hyperic.sigar.OperatingSystem;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.OperatingSystem;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarLoader;
import org.hyperic.sigar.SigarLoader;
/**
* Display Sigar, java and system version information.
*/

View File

@ -1,16 +1,16 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.util.Date;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.DirStat;
import net.hyperic.sigar.FileInfo;
import net.hyperic.sigar.FileWatcher;
import net.hyperic.sigar.FileWatcherThread;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.DirStat;
import org.hyperic.sigar.FileInfo;
import org.hyperic.sigar.FileWatcher;
import org.hyperic.sigar.FileWatcherThread;
/**
* Watch a file or directory displaying attribute changes.

View File

@ -1,9 +1,9 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.util.Date;
import java.text.SimpleDateFormat;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarException;
public class Who extends SigarCommandBase {
@ -28,7 +28,7 @@ public class Who extends SigarCommandBase {
}
public void output(String[] args) throws SigarException {
net.hyperic.sigar.Who[] who = this.sigar.getWhoList();
org.hyperic.sigar.Who[] who = this.sigar.getWhoList();
for (int i=0; i<who.length; i++) {
String host = who[i].getHost();
if (host.length() != 0) {

View File

@ -1,12 +1,12 @@
package net.hyperic.sigar.cmd;
package org.hyperic.sigar.cmd;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.win32.Service;
import net.hyperic.sigar.win32.Win32Exception;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.win32.Service;
import org.hyperic.sigar.win32.Win32Exception;
public class Win32Service extends SigarCommandBase {

View File

@ -1,13 +1,13 @@
package net.hyperic.sigar.jmx;
package org.hyperic.sigar.jmx;
import java.util.Map;
import java.util.StringTokenizer;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarInvoker;
import net.hyperic.sigar.SigarNotImplementedException;
import net.hyperic.sigar.SigarProxy;
import net.hyperic.sigar.util.ReferenceMap;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarInvoker;
import org.hyperic.sigar.SigarNotImplementedException;
import org.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.util.ReferenceMap;
/**
* Extension of SigarInvoker to provide JMX style ObjectName

View File

@ -1,12 +1,12 @@
package net.hyperic.sigar.jmx;
package org.hyperic.sigar.jmx;
import net.hyperic.sigar.ProcFd;
import net.hyperic.sigar.ProcMem;
import net.hyperic.sigar.ProcTime;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarProxy;
import net.hyperic.sigar.SigarProxyCache;
import org.hyperic.sigar.ProcFd;
import org.hyperic.sigar.ProcMem;
import org.hyperic.sigar.ProcTime;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.SigarProxyCache;
/**
* Implement the SigarProcessMBean to provide current process info

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.jmx;
package org.hyperic.sigar.jmx;
/*
* yeah, yeah, we could generate this class via xdoclet,

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.pager;
package org.hyperic.sigar.pager;
/**
* The default page processor does not process any elements

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.pager;
package org.hyperic.sigar.pager;
import java.util.Collections;
import java.util.Comparator;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.pager;
package org.hyperic.sigar.pager;
import java.io.Serializable;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.pager;
package org.hyperic.sigar.pager;
public class PageFetchException extends Exception {
public PageFetchException() {

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.pager;
package org.hyperic.sigar.pager;
/**
* A class which abstracts the fetching of the data for the pages

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.pager;
package org.hyperic.sigar.pager;
import java.io.Serializable;
import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.pager;
package org.hyperic.sigar.pager;
import java.util.Collection;
import java.util.Collections;
@ -23,7 +23,7 @@ import java.util.Map;
public class Pager {
public static final String DEFAULT_PROCESSOR_CLASSNAME
= "net.hyperic.sigar.pager.DefaultPagerProcessor";
= "org.hyperic.sigar.pager.DefaultPagerProcessor";
private static Map PagerProcessorMap =
Collections.synchronizedMap(new HashMap());

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.pager;
package org.hyperic.sigar.pager;
/**
* This class is useful for classes that implement PagerProcessorExt and

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.pager;
package org.hyperic.sigar.pager;
/**
* Provides a point of extensibility in the paging behavior.

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.pager;
package org.hyperic.sigar.pager;
/**
* Provides a point of extensibility in the paging behavior.

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.pager;
package org.hyperic.sigar.pager;
import java.io.Serializable;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.pager;
package org.hyperic.sigar.pager;
import java.util.Arrays;
import java.util.List;

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.ptql;
package org.hyperic.sigar.ptql;
/**
* Exception for malformed process queries which cannot

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.ptql;
package org.hyperic.sigar.ptql;
import java.io.BufferedReader;
import java.io.File;
@ -6,7 +6,7 @@ import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import net.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarException;
public class PidFileQuery extends PidQuery {

View File

@ -1,7 +1,7 @@
package net.hyperic.sigar.ptql;
package org.hyperic.sigar.ptql;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarProxy;
public class PidQuery implements ProcessQuery {
protected long pid;

View File

@ -1,10 +1,10 @@
package net.hyperic.sigar.ptql;
package org.hyperic.sigar.ptql;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarNotImplementedException;
import net.hyperic.sigar.SigarProxy;
import net.hyperic.sigar.SigarProxyCache;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarNotImplementedException;
import org.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.SigarProxyCache;
public class ProcessFinder {

View File

@ -1,7 +1,7 @@
package net.hyperic.sigar.ptql;
package org.hyperic.sigar.ptql;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarProxy;
public interface ProcessQuery {

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.ptql;
package org.hyperic.sigar.ptql;
import java.io.FileOutputStream;
import java.io.IOException;
@ -9,9 +9,9 @@ import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import net.hyperic.sigar.NetFlags;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.NetFlags;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarProxy;
import org.apache.bcel.Constants;
import org.apache.bcel.generic.BranchInstruction;
@ -72,7 +72,7 @@ public class ProcessQueryBuilder {
private static int generation = 0;
private static final String SIGAR_PACKAGE =
"net.hyperic.sigar.";
"org.hyperic.sigar.";
private static final String PROC_PREFIX =
SIGAR_PACKAGE + "Proc";

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.ptql;
package org.hyperic.sigar.ptql;
class ProcessQueryClassLoader extends ClassLoader {
private byte[] bytecode;

View File

@ -1,11 +1,11 @@
package net.hyperic.sigar.ptql;
package org.hyperic.sigar.ptql;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Map;
import java.util.StringTokenizer;
import net.hyperic.sigar.util.ReferenceMap;
import org.hyperic.sigar.util.ReferenceMap;
public class ProcessQueryFactory implements Comparator {

View File

@ -1,9 +1,9 @@
package net.hyperic.sigar.ptql;
package org.hyperic.sigar.ptql;
import net.hyperic.sigar.ProcCred;
import net.hyperic.sigar.ProcState;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.ProcCred;
import org.hyperic.sigar.ProcState;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarProxy;
public class ProcessQueryGenerator {

View File

@ -1,11 +1,11 @@
package net.hyperic.sigar.ptql;
package org.hyperic.sigar.ptql;
import java.util.Map;
import java.util.HashMap;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarNotImplementedException;
import net.hyperic.sigar.SigarProxy;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.SigarNotImplementedException;
import org.hyperic.sigar.SigarProxy;
public class ProcessQueryHelper {

View File

@ -1,4 +1,4 @@
package net.hyperic.sigar.ptql;
package org.hyperic.sigar.ptql;
import java.util.NoSuchElementException;
import java.util.StringTokenizer;

Some files were not shown because too many files have changed in this diff Show More