uk.ac.rdg.resc.jstyx.client
Class TestClient

java.lang.Object
  extended by uk.ac.rdg.resc.jstyx.client.CStyxFileChangeAdapter
      extended by uk.ac.rdg.resc.jstyx.client.TestClient
All Implemented Interfaces:
CStyxFileChangeListener

public class TestClient
extends CStyxFileChangeAdapter

Simple test harness for the JStyx library

Author:
jdb

Constructor Summary
TestClient()
           
 
Method Summary
 void fileOpen(CStyxFile file, int mode)
          Called when the file has been opened.
static void main(java.lang.String[] args)
           
 void statChanged(CStyxFile file, DirEntry newDirEntry)
          Called after the stat of a file (permissions etc) has been changed.
 
Methods inherited from class uk.ac.rdg.resc.jstyx.client.CStyxFileChangeAdapter
childrenFound, dataArrived, dataWritten, downloadComplete, error, fileCreated, uploadComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestClient

public TestClient()
Method Detail

main

public static void main(java.lang.String[] args)

fileOpen

public void fileOpen(CStyxFile file,
                     int mode)
Description copied from class: CStyxFileChangeAdapter
Called when the file has been opened.

Specified by:
fileOpen in interface CStyxFileChangeListener
Overrides:
fileOpen in class CStyxFileChangeAdapter
Parameters:
file - The file that has been opened
mode - The mode with which the file was opened

statChanged

public void statChanged(CStyxFile file,
                        DirEntry newDirEntry)
Description copied from class: CStyxFileChangeAdapter
Called after the stat of a file (permissions etc) has been changed. Actually, this is called after an Rstat message arrives; it does not necessarily mean that the stat has changed.

Specified by:
statChanged in interface CStyxFileChangeListener
Overrides:
statChanged in class CStyxFileChangeAdapter


Copyright © 2004-2006 Reading e-Science Centre. All Rights Reserved.