Joram ${version}

org.objectweb.joram.shared.admin
Class AdminReply

java.lang.Object
  extended byorg.objectweb.joram.shared.admin.AdminReply
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CreateDestinationReply, CreateUserReply, GetDomainNamesRep, GetLocalServerRep, GetQueueMessageIdsRep, GetQueueMessageRep, GetSubscriberIdsRep, GetSubscriptionMessageIdsRep, GetSubscriptionMessageRep, GetSubscriptionRep, GetSubscriptionsRep, Monitor_Reply

public class AdminReply
extends java.lang.Object
implements java.io.Serializable

An AdminReply is a reply sent by a org.objectweb.joram.mom.dest.AdminTopic topic and containing data or information destinated to a client administrator.

See Also:
Serialized Form

Field Summary
static int NAME_ALREADY_USED
           
static int SERVER_ID_ALREADY_USED
           
static int START_FAILURE
           
static int UNKNOWN_SERVER
           
 
Constructor Summary
AdminReply(boolean success, int errorCode, java.lang.String info, java.lang.Object replyObj)
          Constructs an AdminReply instance.
AdminReply(boolean success, java.lang.String info)
          Constructs an AdminReply instance.
AdminReply(boolean success, java.lang.String info, java.lang.Object replyObj)
          Constructs an AdminReply instance.
 
Method Summary
 int getErrorCode()
           
 java.lang.String getInfo()
          Returns the carried info.
 java.lang.Object getReplyObject()
          Returns the carried object.
 boolean succeeded()
          Returns true if this reply replies to a successful request.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME_ALREADY_USED

public static final int NAME_ALREADY_USED
See Also:
Constant Field Values

START_FAILURE

public static final int START_FAILURE
See Also:
Constant Field Values

SERVER_ID_ALREADY_USED

public static final int SERVER_ID_ALREADY_USED
See Also:
Constant Field Values

UNKNOWN_SERVER

public static final int UNKNOWN_SERVER
See Also:
Constant Field Values
Constructor Detail

AdminReply

public AdminReply(boolean success,
                  java.lang.String info)
Constructs an AdminReply instance.

Parameters:
success - true if this reply replies to a successful request.
info - Information to carry.

AdminReply

public AdminReply(boolean success,
                  java.lang.String info,
                  java.lang.Object replyObj)
Constructs an AdminReply instance.

Parameters:
success - true if this reply replies to a successful request.
info - Information to carry.
replyObj - Object to carry.

AdminReply

public AdminReply(boolean success,
                  int errorCode,
                  java.lang.String info,
                  java.lang.Object replyObj)
Constructs an AdminReply instance.

Parameters:
success - true if this reply replies to a successful request.
errorCode - error code defining the type of the error
info - Information to carry.
replyObj - Object to carry.
Method Detail

succeeded

public final boolean succeeded()
Returns true if this reply replies to a successful request.


getInfo

public final java.lang.String getInfo()
Returns the carried info.


getReplyObject

public final java.lang.Object getReplyObject()
Returns the carried object.


getErrorCode

public final int getErrorCode()

toString

public java.lang.String toString()

Joram ${version}

Copyright © 2005 Scalagent - All rights reserved