org.compass.needle.gigaspaces.store
Class FileEntry

java.lang.Object
  extended by org.compass.needle.gigaspaces.store.FileEntry
All Implemented Interfaces:
Externalizable, Serializable, net.jini.core.entry.Entry

public class FileEntry
extends Object
implements net.jini.core.entry.Entry, Externalizable

A file entry holds the meta data of a file, without its content.

Author:
kimchy
See Also:
Serialized Form

Field Summary
 String fileName
           
 String indexName
           
 Long lastModified
           
 Long size
           
 
Constructor Summary
FileEntry()
           
FileEntry(String indexName, String fileName)
           
FileEntry(String indexName, String fileName, long size)
           
 
Method Summary
static String[] __getSpaceIndexedFields()
           
 String getFileName()
           
 String getIndexName()
           
 long getLastModified()
           
 long getSize()
           
 void readExternal(ObjectInput in)
           
 void touch()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indexName

public String indexName

fileName

public String fileName

lastModified

public Long lastModified

size

public Long size
Constructor Detail

FileEntry

public FileEntry()

FileEntry

public FileEntry(String indexName,
                 String fileName)

FileEntry

public FileEntry(String indexName,
                 String fileName,
                 long size)
Method Detail

getIndexName

public String getIndexName()

getFileName

public String getFileName()

getLastModified

public long getLastModified()

getSize

public long getSize()

touch

public void touch()

writeExternal

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

readExternal

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

__getSpaceIndexedFields

public static String[] __getSpaceIndexedFields()


Copyright (c) 2004-2008 The Compass Project.