com.starteam.events
Class ServerControlEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.starteam.events.ServerControlEvent
All Implemented Interfaces:
java.io.Serializable

public final class ServerControlEvent
extends java.util.EventObject

An event triggered whenever a Server is stopped or restarted.

See Also:
ServerControlListener, Server.addServerControlListener(com.starteam.events.ServerControlListener), Serialized Form

Method Summary
 Server getServer()
          Gets the Server object whose status has changed.
 java.lang.String toString()
          Gets a short description of this ServerControlEvent.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getServer

public Server getServer()
Gets the Server object whose status has changed.

Returns the same physical Server object used to register the ServerControlListener. There is no way to listen for start or stop events for arbitrary servers on the network; you must explicitly login to the server of interest and register a listener.

Returns:
The Server object whose status has changed.
See Also:
Server

toString

public java.lang.String toString()
Gets a short description of this ServerControlEvent.

Overrides:
toString in class java.util.EventObject
Returns:
A short description of this ServerControlEvent.


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.