com.contrastsecurity.rest
Class Server

java.lang.Object
  extended by com.contrastsecurity.rest.Server

public class Server
extends Object

A server with the Contrast agent installed.


Constructor Summary
Server()
           
 
Method Summary
 String getAgentVersion()
          Return the version of the Contrast agent that's monitoring this server.
 String getHostname()
          Return the hostname of this server.
 long getLastActivity()
          Return the last time any activity was received from this server.
 long getLastStartup()
          Return the last time this server was restarted.
 long getLastTraceReceived()
          Return the last time a trace was received from this server.
 String getPath()
          Return the path on disk of this server, e.g., /opt/tomcat6/
 String getType()
          Return the Contrast "server code" for the server, e.g., "jboss5".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server()
Method Detail

getHostname

public String getHostname()
Return the hostname of this server.

Returns:
the hostname of this server

getLastStartup

public long getLastStartup()
Return the last time this server was restarted.

Returns:
the epoch time of the last server restart

getLastTraceReceived

public long getLastTraceReceived()
Return the last time a trace was received from this server.

Returns:
the epoch time of the last time the server received a trace

getLastActivity

public long getLastActivity()
Return the last time any activity was received from this server.

Returns:
the epoch time of the last time any activity was received from this server

getPath

public String getPath()
Return the path on disk of this server, e.g., /opt/tomcat6/

Returns:
the path on disk of this server, e.g., /opt/tomcat6

getType

public String getType()
Return the Contrast "server code" for the server, e.g., "jboss5".

Returns:
the code for the server, e.g., "websphere85"

getAgentVersion

public String getAgentVersion()
Return the version of the Contrast agent that's monitoring this server.

Returns:
the version of the Contrast agent installed on this server


Copyright © 2014. All Rights Reserved.