Search in sources :

Example 1 with ClusterDestInfo

use of com.sun.messaging.jmq.jmsserver.multibroker.raptor.ClusterDestInfo in project openmq by eclipse-ee4j.

the class ChangeRecord method recordRemoveDestination.

public static void recordRemoveDestination(Destination d, ChangeRecordCallback cb) throws BrokerException {
    ClusterDestInfo cdi = ClusterDestInfo.newInstance(d);
    GPacket gp = cdi.getGPacket(ProtocolGlobals.G_REM_DESTINATION, true);
    ChangeRecordInfo cri = storeChangeRecord(gp, cb);
    d.setCurrentChangeRecordInfo(ProtocolGlobals.G_UPDATE_DESTINATION, cri);
}
Also used : ClusterDestInfo(com.sun.messaging.jmq.jmsserver.multibroker.raptor.ClusterDestInfo) ChangeRecordInfo(com.sun.messaging.jmq.jmsserver.persist.api.ChangeRecordInfo) GPacket(com.sun.messaging.jmq.io.GPacket)

Example 2 with ClusterDestInfo

use of com.sun.messaging.jmq.jmsserver.multibroker.raptor.ClusterDestInfo in project openmq by eclipse-ee4j.

the class ChangeRecord method recordUpdateDestination.

public static synchronized void recordUpdateDestination(Destination d, ChangeRecordCallback cb) throws BrokerException {
    ClusterDestInfo cdi = ClusterDestInfo.newInstance(d);
    GPacket gp = cdi.getGPacket(ProtocolGlobals.G_UPDATE_DESTINATION, true);
    ChangeRecordInfo cri = storeChangeRecord(gp, cb);
    d.setCurrentChangeRecordInfo(ProtocolGlobals.G_UPDATE_DESTINATION, cri);
}
Also used : ClusterDestInfo(com.sun.messaging.jmq.jmsserver.multibroker.raptor.ClusterDestInfo) ChangeRecordInfo(com.sun.messaging.jmq.jmsserver.persist.api.ChangeRecordInfo) GPacket(com.sun.messaging.jmq.io.GPacket)

Aggregations

GPacket (com.sun.messaging.jmq.io.GPacket)2 ClusterDestInfo (com.sun.messaging.jmq.jmsserver.multibroker.raptor.ClusterDestInfo)2 ChangeRecordInfo (com.sun.messaging.jmq.jmsserver.persist.api.ChangeRecordInfo)2