EjbTimerEventpublic class EjbTimerEvent extends AdminEvent implements CommandEventEjbTimerEvent - emitted by DAS to send requests to Ejb Timer Service
Attibutes: actionType, from, servers |
Fields Summary |
---|
public static final String | EJB_TIMER_CALL_RESULT_ATTRNAMEAttribute name in EventResult to return results of calls to timer service | public static final int | ACTION_MIGRATETIMERConstant denoting action code | public static final int | ACTION_LISTTIMERS | static final String | eventTypeEvent type | private int | actionTypeAttributes () | private String | from | private String[] | servers | private static com.sun.enterprise.util.i18n.StringManager | localStrings |
Constructors Summary |
---|
public EjbTimerEvent(String instance, int action, String serverFrom, String[] serverNames)Create a new EjbTimerEvent.
this(eventType, instance, action, serverFrom, serverNames);
| public EjbTimerEvent(String type, String instance, int action, String serverFrom, String[] serverNames)Create a new EjbTimerEvent.
super(type, instance);
from = serverFrom;
servers = serverNames;
setAction(action);
|
Methods Summary |
---|
public int | getActionType()Get action type for this event.
return actionType;
| public java.lang.String | getFromServerName()Get from param
return from;
| public java.lang.String[] | getServerNames()Get servers param
return servers;
| private void | setAction(int action)Set action to specified value. If action is not one of allowed,
then IllegalArgumentException is thrown.
boolean valid = false;
if (action==ACTION_MIGRATETIMER ||
action==ACTION_LISTTIMERS )
valid = true;
if (!valid) {
String msg = localStrings.getString( "admin.event.invalid_action", ""+action );
throw new IllegalArgumentException( msg );
}
this.actionType = action;
|
|