Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.agent
Class FileData

java.lang.Object
  extended by org.hyperic.hq.agent.FileData
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class FileData
extends java.lang.Object
implements java.io.Externalizable

See Also:
Serialized Form

Field Summary
static int WRITETYPE_CREATEONLY
           
static int WRITETYPE_CREATEOROVERWRITE
           
static int WRITETYPE_REWRITE
           
 
Constructor Summary
FileData()
          Default constructor for externalization only.
FileData(java.lang.String destFile, long size, int writeType)
           
 
Method Summary
 java.lang.String getDestFile()
           
 java.lang.String getMD5CheckSum()
           
 long getSize()
           
 int getWriteType()
           
 void readExternal(java.io.ObjectInput in)
           
 void setMD5CheckSum(java.lang.String md5sum)
          Set the MD5 check sum for this file.
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WRITETYPE_CREATEONLY

public static final int WRITETYPE_CREATEONLY
See Also:
Constant Field Values

WRITETYPE_CREATEOROVERWRITE

public static final int WRITETYPE_CREATEOROVERWRITE
See Also:
Constant Field Values

WRITETYPE_REWRITE

public static final int WRITETYPE_REWRITE
See Also:
Constant Field Values
Constructor Detail

FileData

public FileData()
Default constructor for externalization only.


FileData

public FileData(java.lang.String destFile,
                long size,
                int writeType)
Method Detail

setMD5CheckSum

public void setMD5CheckSum(java.lang.String md5sum)
Set the MD5 check sum for this file.

Parameters:
md5sum - The check sum.
Throws:
java.lang.NullPointerException - if the check sum is null.

getMD5CheckSum

public java.lang.String getMD5CheckSum()
Returns:
The MD5 check sum or null if never set.

getDestFile

public java.lang.String getDestFile()

getSize

public long getSize()

getWriteType

public int getWriteType()

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.