Core API 7.8

net.juniper.smgt.sae.portal
Class OneTimeScheduleEntry

java.lang.Object
  extended by net.juniper.smgt.sae.portal.ScheduleEntry
      extended by net.juniper.smgt.sae.portal.OneTimeScheduleEntry

public class OneTimeScheduleEntry
extends ScheduleEntry

The OneTimeScheduleEntry class encapsulates one time event that can be configured by the subscriber to taken.

The EventTIme is used as the key to schedule one time events. There is only a maximum of one

Since:
4.0

Constructor Summary
OneTimeScheduleEntry()
          Default constrcutor
OneTimeScheduleEntry(long eventTime, Action[] actions)
          Constrcutor with eventDate and actions
 
Method Summary
 long getEventTime()
          Gets the time for the event using the given milliseconds time value.
 java.lang.String getId()
           
 ScheduledTime getScheduledTime()
          Gets the time for the event using the given milliseconds time value
 void setEventTime(long date)
          Sets the time for the event using the given milliseconds time value.
 java.lang.String toString()
          For debugging only.
 
Methods inherited from class net.juniper.smgt.sae.portal.ScheduleEntry
getActions, setActions, setId, setScheduledTime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OneTimeScheduleEntry

public OneTimeScheduleEntry()
Default constrcutor


OneTimeScheduleEntry

public OneTimeScheduleEntry(long eventTime,
                            Action[] actions)
Constrcutor with eventDate and actions

Parameters:
long - eventTime The event time
Action[] - actions The actions to take at the event time.
Method Detail

setEventTime

public void setEventTime(long date)
Sets the time for the event using the given milliseconds time value.

If the given milliseconds value contains time information, the driver will set the time components to the time in the default time zone (the time zone of the Java virtual machine running the application) that corresponds to zero GMT.

Parameters:
date - milliseconds since January 1, 1970, 00:00:00 GMT not to exceed the milliseconds representation for the year 8099. A negative number indicates the number of milliseconds before January 1, 1970, 00:00:00 GMT.
See Also:
getEventTime(), Date.setTime(long)

getEventTime

public long getEventTime()
Gets the time for the event using the given milliseconds time value.

Returns:
date - milliseconds since January 1, 1970, 00:00:00 GMT not to exceed the milliseconds representation for the year 8099. A negative number indicates the number of milliseconds before January 1, 1970, 00:00:00 GMT.
See Also:
setEventTime(long), Date.setTime(long)

getId

public java.lang.String getId()
Overrides:
getId in class ScheduleEntry

getScheduledTime

public ScheduledTime getScheduledTime()
Description copied from class: ScheduleEntry
Gets the time for the event using the given milliseconds time value. *

Overrides:
getScheduledTime in class ScheduleEntry
Returns:
date - milliseconds since January 1, 1970, 00:00:00 GMT not to exceed the milliseconds representation for the year 8099. A negative number indicates the number of milliseconds before January 1, 1970, 00:00:00 GMT. * @see #setEventTime
See Also:
Date.setTime(long)

toString

public java.lang.String toString()
For debugging only. Returns a description of this bean.

Overrides:
toString in class ScheduleEntry

Core API 7.8