This rather depends on where the instance of OrientDb is located. (I'm
assuming here that you're talking of a server instance, not embedded,
where your question would make no sense.)
If the server is located on a remote machine, I can see no other way to
check that to attempt the connection. In any case, you're going to have
to contact the remote machine somehow to determine if OrientDb is running.
It it's on the same Linux machine you could, if you had sufficient
privileges, check for an instance of the server process. I'm not sure
how you do this with Windows, but I recall that there is some kind of
mechanism for this.
It seems to me that there's little advantage in trying to find out if
the server is running. Just try to open the socket. If that succeeds,
the server is running. If that doesn't, the server isn't running and
needs to be started.
I'm not sure that even the most widely-used DBMSs (MySQL, PostgreSQL,
DB2, etc) provide the functionality you're asking for. Even if OrientDb
provided it, you would still have to attempt to open a network
connection to the server because such a feature would have to work with
a server located remotely.
Warmests
Nicole
Nicole
On 02/27/2012 09:12 AM, Luca Garulli wrote:
> Hi all,
> it would be useful having a simple web service that returns the status
> of a OrientDB server. Something like:
>
> http://localhost:2480/serverStatus
>
> {
> "upSince" : "2012-02-20 10:10:10"
> }
>
> By default "guest" user can execute it but if removed only authenticated
> server users can execute it.
>
> WDYT?
>
>
>
> On 27 February 2012 06:48, Adolfo Rodriguez <pelly...@yahoo.es
> <mailto:pelly...@yahoo.es>> wrote:
>
> Thanks Nicole, agree with you.
>
> Just wanted to check if I was missing anything.
>
> Adolfo
>
> On Feb 26, 12:26 pm, Nicole <nic...@cats-muvva.net