01: /*
02: * This file or a portion of this file is licensed under the terms of
03: * the Globus Toolkit Public License, found in file GTPL, or at
04: * http://www.globus.org/toolkit/download/license.html. This notice must
05: * appear in redistributions of this file, with or without modification.
06: *
07: * Redistributions of this Software, with or without modification, must
08: * reproduce the GTPL in: (1) the Software, or (2) the Documentation or
09: * some other similar material which is provided with the Software (if
10: * any).
11: *
12: * Copyright 1999-2004 University of Chicago and The University of
13: * Southern California. All rights reserved.
14: */
15: package org.griphyn.vdl.invocation;
16:
17: /**
18: * This interface defines a common base for all File elements in an invocation
19: * record that carry a descriptor in their values. It exists primarily for
20: * grouping purposes and for easier access for the database manager.
21: *
22: * @author Jens-S. Vöckler
23: * @author Yong Zhao
24: * @version $Revision: 50 $
25: */
26: public interface HasDescriptor {
27: /**
28: * Accessor: Obtains the descriptor of the file handle
29: * @return the descriptor number, or -1 for none.
30: *
31: * @see #setDescriptor(int)
32: */
33: public int getDescriptor();
34:
35: /**
36: * Accessor: Sets the descriptor number of a file object.
37: * @param descriptor is the new descriptor to store.
38: * @see #getDescriptor()
39: */
40: public void setDescriptor(int descriptor);
41: }
|