|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.mom.dest.DestinationImpl
org.objectweb.joram.mom.dest.TopicImpl
org.objectweb.joram.mom.dest.AdminTopicImpl
The AdminTopicImpl
class implements the admin topic behaviour,
basically processing administration requests.
Field Summary |
Fields inherited from class org.objectweb.joram.mom.dest.TopicImpl |
alreadySentLocally, fatherId, friends, selectors, subscribers |
Fields inherited from class org.objectweb.joram.mom.dest.DestinationImpl |
_rights, clients, creationDate, destId, dmqId, freeReading, freeWriting, nbMsgsDeliverSinceCreation, nbMsgsReceiveSinceCreation, nbMsgsSendToDMQSinceCreation, READ, READWRITE, WRITE |
Constructor Summary | |
AdminTopicImpl(fr.dyade.aaa.agent.AgentId topicId)
Constructs an AdminTopicImpl instance. |
Method Summary | |
protected void |
doProcess(fr.dyade.aaa.agent.UnknownAgent uA)
Specializes this TopicImpl reaction. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
AdminNotification adminNot)
Method implementing the reaction to a org.objectweb.joram.mom.proxies.AdminNotification
notification notifying of the creation of an admin proxy. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
AdminReply not)
Method implementing the reaction to a org.objectweb.joram.mom.notifications.AdminReply
notification replying to an administration request. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
org.objectweb.joram.mom.dest.AdminTopicImpl.AdminRequestNot adminNot)
Method implementing the reaction to a AdminRequest
notification notifying of the creation of an admin proxy. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
ClientMessages not)
Overrides this DestinationImpl method;
ClientMessages notifications hold requests sent by an
administrator. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
org.objectweb.joram.mom.dest.ClusterAck ack)
Overrides this TopicImpl method; a ClusterAck
is not expected by an AdminTopic. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
org.objectweb.joram.mom.dest.ClusterNot not)
Overrides this TopicImpl method; if this AdminTopic is on
server0, new cluster fellow is notified to other fellows and other
fellows are notified to it. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
ClusterRequest request)
Overrides this TopicImpl method; AdminTopics do not
accept ClusterRequest notifications. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
org.objectweb.joram.mom.dest.ClusterTest request)
Overrides this TopicImpl method; AdminTopics do not
accept to join clusters other than their admin topics cluster. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
fr.dyade.aaa.agent.DeleteNot not)
Overrides this DestinationImpl method; deletion requests are
not accepted by AdminTopics. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
org.objectweb.joram.mom.dest.FatherAck ack)
Overrides this TopicImpl method; a FatherAck
acknowledges the process of creating a hierarchy of topics. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
org.objectweb.joram.mom.dest.FatherTest not)
Overrides this TopicImpl method; AdminTopics do not
accept to join a hierarchy. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
SetDMQRequest request)
Overrides this DestinationImpl method; AdminTopics do not
accept SetDMQRequest notifications. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
SetFatherRequest request)
Overrides this TopicImpl method; AdminTopics do not
accept SetFatherRequest notifications. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
SetRightRequest request)
Overrides this DestinationImpl method; AdminTopics do not
accept SetRightRequest notifications. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
org.objectweb.joram.mom.dest.TopicForwardNot not)
Overrides this TopicImpl method; the forwarded messages
contain admin requests and will be processed. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
UnclusterRequest request)
Overrides this TopicImpl method; AdminTopics do not
accept UnclusterRequest notifications. |
protected void |
doReact(fr.dyade.aaa.agent.AgentId from,
UnsetFatherRequest request)
Overrides this TopicImpl method; AdminTopics do not
accept UnsetFatherRequest notifications. |
protected void |
doReact(GetProxyIdListNot not)
|
protected void |
doReact(GetProxyIdNot not)
|
fr.dyade.aaa.agent.AgentId |
getId()
Method returning the id of the admin topic. |
java.lang.String |
getName(fr.dyade.aaa.agent.AgentId proxyId)
Method used by proxies for retrieving their name. |
java.lang.String |
getPassword(fr.dyade.aaa.agent.AgentId proxyId)
Method used by proxies for retrieving their password. |
fr.dyade.aaa.agent.AgentId |
getProxyId(java.lang.String name,
java.lang.String pass)
Method used by ConnectionManager proxies to check their
clients identification. |
static AdminTopicImpl |
getReference()
|
boolean |
isTaken(java.lang.String name)
Method used by proxies for checking if a given name is already used. |
void |
react(fr.dyade.aaa.agent.AgentId from,
fr.dyade.aaa.agent.Notification not)
Distributes the received notifications to the appropriate reactions. |
java.lang.String |
toString()
Returns a string representation of this destination. |
Methods inherited from class org.objectweb.joram.mom.dest.TopicImpl |
doProcess, doProcess, doProcess, doReact, doReact, doReact, doReact, doReact, doReact, forwardMessages, getSubscriberIds, processMessages, specialProcess |
Methods inherited from class org.objectweb.joram.mom.dest.DestinationImpl |
canBeDeleted, doReact, doReact, doReact, doReact, doReact, doReact, doReact, getCreationDate, getCreationTimeInMillis, getDestinationId, getDMQId, getNbMsgsDeliverSinceCreation, getNbMsgsReceiveSinceCreation, getNbMsgsSendToDMQSinceCreation, getRight, getRights, isAdministrator, isFreeReading, isFreeWriting, isReader, isWriter, processSetRight, sendToDMQ, setFreeReading, setFreeWriting, specialAdminProcess |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.objectweb.joram.mom.dest.DestinationImplMBean |
getCreationDate, getCreationTimeInMillis, getDestinationId, getDMQId, getNbMsgsDeliverSinceCreation, getNbMsgsReceiveSinceCreation, getNbMsgsSendToDMQSinceCreation, getRight, getRights, isFreeReading, isFreeWriting, setFreeReading, setFreeWriting |
Constructor Detail |
public AdminTopicImpl(fr.dyade.aaa.agent.AgentId topicId)
AdminTopicImpl
instance.
topicId
- Identifier of the agent hosting the AdminTopicImpl.Method Detail |
public static AdminTopicImpl getReference()
public java.lang.String toString()
TopicImpl
toString
in interface DestinationImplMBean
toString
in class TopicImpl
public fr.dyade.aaa.agent.AgentId getProxyId(java.lang.String name, java.lang.String pass) throws java.lang.Exception
ConnectionManager
proxies to check their
clients identification.
java.lang.Exception
- If the user does not exist, is wrongly identified,
or does not have any proxy deployed.ConnectionManager
public java.lang.String getName(fr.dyade.aaa.agent.AgentId proxyId)
public java.lang.String getPassword(fr.dyade.aaa.agent.AgentId proxyId)
public boolean isTaken(java.lang.String name)
public fr.dyade.aaa.agent.AgentId getId()
public void react(fr.dyade.aaa.agent.AgentId from, fr.dyade.aaa.agent.Notification not) throws fr.dyade.aaa.agent.UnknownNotificationException
react
in class TopicImpl
fr.dyade.aaa.agent.UnknownNotificationException
- If a received notification is
unexpected by the AdminTopic.protected void doReact(fr.dyade.aaa.agent.AgentId from, AdminNotification adminNot)
org.objectweb.joram.mom.proxies.AdminNotification
notification notifying of the creation of an admin proxy.
protected void doReact(fr.dyade.aaa.agent.AgentId from, org.objectweb.joram.mom.dest.AdminTopicImpl.AdminRequestNot adminNot)
AdminRequest
notification notifying of the creation of an admin proxy.
protected void doReact(fr.dyade.aaa.agent.AgentId from, AdminReply not)
org.objectweb.joram.mom.notifications.AdminReply
notification replying to an administration request.
A reply is sent back to the connected administrator if needed.
protected void doReact(GetProxyIdNot not)
protected void doReact(GetProxyIdListNot not)
protected void doReact(fr.dyade.aaa.agent.AgentId from, SetRightRequest request) throws AccessException
DestinationImpl
method; AdminTopics do not
accept SetRightRequest
notifications.
doReact
in class DestinationImpl
AccessException
- Not thrown.protected void doReact(fr.dyade.aaa.agent.AgentId from, SetDMQRequest request) throws AccessException
DestinationImpl
method; AdminTopics do not
accept SetDMQRequest
notifications.
doReact
in class DestinationImpl
AccessException
- Not thrown.protected void doReact(fr.dyade.aaa.agent.AgentId from, ClientMessages not) throws AccessException
DestinationImpl
method;
ClientMessages
notifications hold requests sent by an
administrator.
doReact
in class DestinationImpl
AccessException
- If the requester is not a WRITER on the
AdminTopic.protected void doReact(fr.dyade.aaa.agent.AgentId from, fr.dyade.aaa.agent.DeleteNot not)
DestinationImpl
method; deletion requests are
not accepted by AdminTopics.
doReact
in class DestinationImpl
protected void doReact(fr.dyade.aaa.agent.AgentId from, ClusterRequest request) throws AccessException
TopicImpl
method; AdminTopics do not
accept ClusterRequest
notifications.
doReact
in class TopicImpl
AccessException
- Not thrown.protected void doReact(fr.dyade.aaa.agent.AgentId from, org.objectweb.joram.mom.dest.ClusterTest request)
TopicImpl
method; AdminTopics do not
accept to join clusters other than their admin topics cluster.
doReact
in class TopicImpl
protected void doReact(fr.dyade.aaa.agent.AgentId from, org.objectweb.joram.mom.dest.ClusterAck ack)
TopicImpl
method; a ClusterAck
is not expected by an AdminTopic.
doReact
in class TopicImpl
protected void doReact(fr.dyade.aaa.agent.AgentId from, org.objectweb.joram.mom.dest.ClusterNot not)
TopicImpl
method; if this AdminTopic is on
server0, new cluster fellow is notified to other fellows and other
fellows are notified to it.
doReact
in class TopicImpl
protected void doReact(fr.dyade.aaa.agent.AgentId from, UnclusterRequest request) throws MomException
TopicImpl
method; AdminTopics do not
accept UnclusterRequest
notifications.
doReact
in class TopicImpl
AccessException
- Not thrown.
MomException
protected void doReact(fr.dyade.aaa.agent.AgentId from, SetFatherRequest request) throws MomException
TopicImpl
method; AdminTopics do not
accept SetFatherRequest
notifications.
doReact
in class TopicImpl
AccessException
- Not thrown.
MomException
protected void doReact(fr.dyade.aaa.agent.AgentId from, org.objectweb.joram.mom.dest.FatherTest not)
TopicImpl
method; AdminTopics do not
accept to join a hierarchy.
doReact
in class TopicImpl
protected void doReact(fr.dyade.aaa.agent.AgentId from, org.objectweb.joram.mom.dest.FatherAck ack)
TopicImpl
method; a FatherAck
acknowledges the process of creating a hierarchy of topics.
doReact
in class TopicImpl
protected void doReact(fr.dyade.aaa.agent.AgentId from, UnsetFatherRequest request) throws MomException
TopicImpl
method; AdminTopics do not
accept UnsetFatherRequest
notifications.
doReact
in class TopicImpl
AccessException
- Not thrown.
MomException
protected void doReact(fr.dyade.aaa.agent.AgentId from, org.objectweb.joram.mom.dest.TopicForwardNot not)
TopicImpl
method; the forwarded messages
contain admin requests and will be processed.
doReact
in class TopicImpl
protected void doProcess(fr.dyade.aaa.agent.UnknownAgent uA)
TopicImpl
reaction.
doProcess
in class TopicImpl
|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |