com.starbase.starteam
Class ServerControlEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.starbase.starteam.ServerControlEvent
All Implemented Interfaces:
java.io.Serializable

public class ServerControlEvent
extends java.util.EventObject

An event triggered whenever a Server is stopped or restarted.

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

Method Summary
 boolean equals(java.lang.Object source)
          returns true if this object instance is equal to the source
 Server getServer()
          Gets the Server object whose status has changed.
 java.lang.Object getSource()
          The object on which the Event initially occurred.
 int hashCode()
          returns a unique hash for all instances of this type
 java.lang.String toString()
          Gets a short description of this ServerControlEvent.
 
Methods inherited from class java.lang.Object
getClass, 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

getSource

public java.lang.Object getSource()
The object on which the Event initially occurred.

Overrides:
getSource in class java.util.EventObject
Returns:
The object on which the Event initially occurred.

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.

equals

public boolean equals(java.lang.Object source)
returns true if this object instance is equal to the source

Overrides:
equals in class java.lang.Object
Parameters:
source - Object the source to comapre with
Returns:
boolean true if this object is equal to the source

hashCode

public int hashCode()
returns a unique hash for all instances of this type

Overrides:
hashCode in class java.lang.Object
Returns:
int a unique hash for all instances of this type


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.