Re: How to tell if ClassServer is running

Gregg Wonderly <[email protected]> Tue, 21 Oct 2008 11:32:56 -0500
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Rawlings, Bill A wrote:
> Hi guys:
> 
> I need to be able to figure out if a ClassServer is up and running.
> (This is for a startup/shutdown application).   I see in the
> documentation the class 
> com.sun.jini.start.HTTPDStatus, which looks like it "might" do the
> trick, however the documentation on this class is fairly useless. 
> 
> What is the "right" way to tell if a ClassServer is up and running,

Since it's an HTTP server, I'd guess anything that you'd devise that uses the 
protocol and requests a file would work.  You might imagine a local process that 
has access to the file store which the server serves from, making requests for 
files and checking what it receives against what it sees in the directory perhaps.

> and
> what is the "right" way to shut one down?

Depends on how you start it.  If it's Administrable, then you could wire that up 
to work, or use what is already in place if DestroyAdmin is implemented by the 
object Administrable.getAdmin() returns.

Gregg Wonderly

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]