ConnectorNamingEventpublic class ConnectorNamingEvent extends Object Class representing Connector Naming Event.
Can be used to represent different states. Eg: Object-Bind, Object-Rebind, Object-Remove |
Fields Summary |
---|
private String | jndiName | private int | eventType | public static final int | EVENT_OBJECT_REBIND |
Constructors Summary |
---|
public ConnectorNamingEvent(String jndiName, int eventType)
this.jndiName=jndiName;
this.eventType= eventType;
|
Methods Summary |
---|
private java.lang.String | getEventName(int eventType)returns the name of event type.
String eventName = "Undefined";
switch(eventType){
case EVENT_OBJECT_REBIND :
eventName= "OBJECT_REBIND_EVENT";
break;
default:
}
return eventName;
| public int | getEventType()Info about the type of event that has occurred.
return eventType;
| public java.lang.String | getJndiName()To get JndiName of the object
return jndiName;
| public java.lang.String | toString()Returns the state of the object
StringBuffer objectState = new StringBuffer( "ConnectorNamingEvent : " +
"{"+ jndiName +", " + getEventName(eventType) + "}" );
return objectState.toString();
|
|