English 中文(简体)
另一页监测目录
原标题:monitoring directory on another pc

I want to monitor a folder located on another computer using the FileSystemWatcher.

如何做到这一点?

最佳回答

用户,你的计算机 想看到计算机B硬驾驶名录。 下面是实现这一目标的一些途径:

  • 计算机 采用SMB、NFS或其他一些网络档案系统程序,在B建立遥控档案系统。 之后,你申请A应能够:

    • 利用Java 7 Watch Service在名录上进行档案系统活动,

    • 在 Java6和6之前,对名录的修改日期等进行投票,以了解何时修改或修改。

    • 使用本土节目或图书馆读到inotify(7),或视窗等。

  • 如果你能够把B的档案系统排在A上,那么你就必须在B实施和管理某种远程服务,这种服务可以由在A上运行的客户申请解决。 这样做有多种可能的办法。

问题回答

它取决于你运行的平台,或档案系统是可边远的目录。 如果你在窗户上,仅用指挥网(NET USE)绘制偏远地区的地图,那么你可以由NFS、SSHFS、FTPFS(fuse)或任何其他方面站起来。 Java只是需要安装在档案系统等级上的倍数。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签