Here are the examples of the java api com.ibm.ws.sib.utils.ras.SibTr.exit() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
4113 Examples
19
Source : SibDiagnosticModule.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* -------------------------------------------------------------------------- */
/* register method
/* -------------------------------------------------------------------------- */
/**
* Register a subclreplaced of this diagnostic module with FFDC
*
* @param specificPackageList The package list for which it is being registered
*/
protected void register(String[] specificPackageList) {
if (TraceComponent.isAnyTracingEnabled() && _tc.isEntryEnabled())
SibTr.entry(_tc, "register", new Object[] { this, specificPackageList });
synchronized (SibDiagnosticModule.clreplaced) {
if (!_registeredMasterDiagnosticModule) {
SibDiagnosticModule masterModule = new SibDiagnosticModule();
masterModule.registerModule(SIB_PACKAGE_LIST);
_registeredMasterDiagnosticModule = true;
}
}
this.registerModule(specificPackageList);
if (TraceComponent.isAnyTracingEnabled() && _tc.isEntryEnabled())
SibTr.exit(_tc, "register");
}
19
Source : SibDiagnosticModule.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* -------------------------------------------------------------------------- */
/* registerModule method
/* -------------------------------------------------------------------------- */
/**
* Register an instance of this clreplaced with FFDC.
*
* @param packageList The list of packages for which to register the module
*/
/* -------------------------------------------------------------------------- */
private void registerModule(String[] packageList) {
if (TraceComponent.isAnyTracingEnabled() && _tc.isEntryEnabled())
SibTr.entry(_tc, "registerModule", new Object[] { this, packageList });
for (int i = 0, rc = 0; (rc == 0) && (i < packageList.length); i++) {
if (TraceComponent.isAnyTracingEnabled() && _tc.isDebugEnabled())
SibTr.debug(_tc, "Registering diagnostic module " + this + " for package: " + packageList[i]);
rc = FFDC.registerDiagnosticModule(this, packageList[i]);
if (rc != 0) {
if (TraceComponent.isAnyTracingEnabled() && _tc.isDebugEnabled())
SibTr.debug(_tc, "Registration failed, return code=" + rc);
}
}
if (TraceComponent.isAnyTracingEnabled() && _tc.isEntryEnabled())
SibTr.exit(_tc, "registerModule");
}
19
Source : MessagingSecurityUtility.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/**
* Check if the Subject is Authenticated
*
* @param subject
* @return
* true if Subject is not authenticated
*/
public static boolean isUnauthenticated(Subject subject) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, CLreplaced_NAME + "isUnauthenticated", subject);
}
boolean result = subjectHelper.isUnauthenticated(subject);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.exit(tc, CLreplaced_NAME + "isUnauthenticated", result);
}
return result;
}
19
Source : MessagingAuthorizationServiceImpl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/*
*
* @see com.ibm.ws.messaging.security.authorization.MessagingAuthorizationService#checkTemporaryDestinationAccess(javax.security.auth.Subject, java.lang.String,
* java.lang.String)
*/
@Override
public boolean checkTemporaryDestinationAccess(Subject authenticatedSubject, String destinationName, String operationType) throws MessagingAuthorizationException {
SibTr.entry(tc, CLreplaced_NAME + "checkTemporaryDestinationAccess", new Object[] { authenticatedSubject, destinationName, operationType });
String busName = null;
String messagingEngine = null;
String[] roles = null;
if (auditManager != null) {
if (auditManager.getJMSBusName() != null)
busName = auditManager.getJMSBusName();
if (auditManager.getJMSMessagingEngine() != null)
messagingEngine = auditManager.getJMSMessagingEngine();
}
checkIfUserIsAuthenticated(authenticatedSubject);
String userName = null;
String user = authenticatedSubject.getPrincipals().iterator().next().getName();
Map<String, TemporaryDestinationPermission> mq = messagingSecurityService.getTemporaryDestinationPermissions();
roles = messagingSecurityService.getDestinationRoles(mq, destinationName, user);
SibTr.debug(tc, "checkTemporaryDestinationAccess, roles: " + Arrays.toString(roles));
boolean result = false;
try {
userName = MessagingSecurityUtility.getUniqueUserName(authenticatedSubject);
} catch (MessagingSecurityException e) {
if (auditManager != null && auditManager.getJMSConversationMetaData() != null) {
ConversationMetaData cmd = (ConversationMetaData) auditManager.getJMSConversationMetaData();
Audit.audit(Audit.EventID.SECURITY_JMS_AUTHZ_01, user, cmd.getRemoteAddress().getHostAddress(), new Integer(cmd.getRemotePort()).toString(), cmd.getChainName(), busName, messagingEngine, destinationName, operationType, roles, "temporaryDestination", Integer.valueOf("201"));
} else {
Audit.audit(Audit.EventID.SECURITY_JMS_AUTHZ_01, user, null, null, null, busName, messagingEngine, destinationName, operationType, roles, "temporaryDestination", Integer.valueOf("201"));
}
throw new MessagingAuthorizationException(Tr.formatMessage(tc, "USER_NOT_AUTHORIZED_MSE1010", userName, operationType, destinationName), e);
}
Map<String, TemporaryDestinationPermission> tempDestinationPermissions = messagingSecurityService.getTemporaryDestinationPermissions();
List<String> prefixList = getPrefixMatchingTemporaryDestination(tempDestinationPermissions.keySet(), destinationName);
for (String prefix : prefixList) {
TemporaryDestinationPermission permission = tempDestinationPermissions.get(prefix);
result = checkPermission(permission, operationType, userName);
if (result)
break;
}
if (!result) {
if (auditManager != null && auditManager.getJMSConversationMetaData() != null) {
ConversationMetaData cmd = (ConversationMetaData) auditManager.getJMSConversationMetaData();
Audit.audit(Audit.EventID.SECURITY_JMS_AUTHZ_01, user, cmd.getRemoteAddress().getHostAddress(), new Integer(cmd.getRemotePort()).toString(), cmd.getChainName(), busName, messagingEngine, destinationName, operationType, roles, "temporaryDestination", Integer.valueOf("201"));
} else {
Audit.audit(Audit.EventID.SECURITY_JMS_AUTHZ_01, user, null, null, null, busName, messagingEngine, destinationName, operationType, roles, "temporaryDestination", Integer.valueOf("201"));
}
SibTr.debug(tc, "USER_NOT_AUTHORIZED_MSE1010", new Object[] { userName, operationType, destinationName });
throw new MessagingAuthorizationException(Tr.formatMessage(tc, "USER_NOT_AUTHORIZED_MSE1010", userName, operationType, destinationName));
} else {
if (auditManager != null && auditManager.getJMSConversationMetaData() != null) {
ConversationMetaData cmd = (ConversationMetaData) auditManager.getJMSConversationMetaData();
Audit.audit(Audit.EventID.SECURITY_JMS_AUTHZ_01, user, cmd.getRemoteAddress().getHostAddress(), new Integer(cmd.getRemotePort()).toString(), cmd.getChainName(), busName, messagingEngine, destinationName, operationType, roles, "temporaryDestination", Integer.valueOf("200"));
} else {
Audit.audit(Audit.EventID.SECURITY_JMS_AUTHZ_01, user, null, null, null, busName, messagingEngine, destinationName, operationType, roles, "temporaryDestination", Integer.valueOf("200"));
}
}
SibTr.exit(tc, CLreplaced_NAME + "checkTemporaryDestinationAccess", result);
return result;
}
19
Source : MPAlarmManager.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
long getNextWakeup() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getNextWakeup");
synchronized (_pendingAlarmsLock) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getNextWakeup", _nextAlarm);
return _nextAlarm;
}
}
19
Source : BatchedTimeoutManager.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/**
* Update the timeout interval of this alarm, the change will come into effect the
* next time an alarm is scheduled (so the next alarm will pop on the old timeout)
*
* @param newTimeout
*/
public void updateTimeout(long newTimeout) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "updateTimeout", Long.valueOf(newTimeout));
this.delta = newTimeout;
long bucketInterval = delta / (numOfBuckets - 1);
percentLate = (int) (100 * bucketInterval / delta);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "updateTimeout", Integer.valueOf(percentLate));
}
19
Source : BatchedTimeoutManager.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/**
* Start a new alarm for a given entry in the active list.
*
* @param entry the entry in the active list
*/
private void startNewAlarm(LinkedListEntry entry) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "startNewAlarm", new Object[] { entry });
// start a new alarm
entry.alarm = am.create(delta, percentLate, this, entry);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "startNewAlarm");
}
19
Source : VirtualLinkControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
public SIMPIterator getLinkReceiverControllableIterator() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getLinkReceiverControllableIterator");
SIMPIterator itr = ((PtoPInputHandler) _link.getInputHandler()).getTargetStreamManager().getTargetStreamSetControlIterator();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getLinkReceiverControllableIterator", itr);
return itr;
}
19
Source : VirtualLinkControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPVirtualLinkControllable#getForeignBusControlAdapter()
*/
public SIMPForeignBusControllable getForeignBusControllable() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "getForeignBusControlAdapter");
SibTr.exit(tc, "getForeignBusControlAdapter");
}
return (SIMPForeignBusControllable) _messageProcessor.getDestinationManager().getForeignBusIndex().findByName(_link.getBusName(), null).getControlAdapter();
}
19
Source : VirtualLinkControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPControllable#getId()
*/
public String getId() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getId");
String id = "" + _link.getUuid();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getId", id);
return id;
}
19
Source : VirtualLinkControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
public String getState() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getState");
String state = _messageProcessor.getDestinationManager().getLinkIndex().getState(_link).toString();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getState", state);
return state;
}
19
Source : VirtualLinkControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.AbstractControllable#checkValidControllable()
*/
public void replacedertValidControllable() throws SIMPControllableNotFoundException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "replacedertValidControllable");
if (_link == null || !_link.isInStore()) {
SIMPControllableNotFoundException finalE = new SIMPControllableNotFoundException(nls.getFormattedMessage("INTERNAL_MESSAGING_ERROR_CWSIP0005", new Object[] { "VirtualLinkControl.replacedertValidControllable", "1:131:1.33", _link }, null));
SibTr.exception(tc, finalE);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exception(tc, finalE);
throw finalE;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "replacedertValidControllable");
}
19
Source : VirtualLinkControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
public SIMPIterator getLinkRemoteQueuePointControllableIterator() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getLinkRemoteQueuePointControllableIterator");
SIMPIterator returnItr = new BasicSIMPIterator(_remotePoints.iterator());
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getLinkRemoteQueuePointControllableIterator", returnItr);
return returnItr;
}
19
Source : VirtualLinkControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPControllable#getName()
*/
public String getName() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getName");
String name = _link.getName();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getName", name);
return name;
}
19
Source : VirtualLinkControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
public String getType() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getType");
String type = _link.getType();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getType", type);
return type;
}
19
Source : VirtualLinkControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.AbstractControllable#dereferenceControllable()
*/
public void dereferenceControllable() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "dereferenceControllable");
_link = null;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "dereferenceControllable");
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPTransmitMessageRequestControllable#getTick()
*/
public long getTick() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getTick");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getTick", new Long(tick));
return tick;
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.ControlAdapter#deregisterControlAdapterMBean()
*/
public void deregisterControlAdapterMBean() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "deregisterControlAdapterMBean");
SibTr.exit(tc, "deregisterControlAdapterMBean");
}
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.ControlAdapter#registerControlAdapterAsMBean()
*/
public void registerControlAdapterAsMBean() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "registerControlAdapterAsMBean");
SibTr.exit(tc, "registerControlAdapterAsMBean");
}
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPRemoteMessageControllable#getTransactionId()
*/
public String getTransactionId() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getTransactionId");
String tranID = null;
PersistentTranId pTranID = itemStream.getTransactionId();
if (pTranID != null) {
tranID = pTranID.toTMString();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getTransactionId", tranID);
return tranID;
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPRemoteMessageControllable#getStartTick()
*/
public long getStartTick() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getStateTick");
long startTick = getTickRange().startstamp;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getStartTick", new Long(startTick));
return startTick;
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.AbstractControllable#dereferenceControllable()
*/
public void dereferenceControllable() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "dereferenceControllable");
SibTr.exit(tc, "dereferenceControllable");
}
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPRemoteMessageControllable#getEndTick()
*/
public long getEndTick() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getEndTick");
long endTick = getTickRange().endstamp;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getEndTick", new Long(endTick));
return endTick;
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.AbstractControllable#checkValidControllable()
*/
public void replacedertValidControllable() throws SIMPControllableNotFoundException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "replacedertValidControllable");
if (aoStream.itemStream == null || tick < 0) {
SIMPControllableNotFoundException finalE = new SIMPControllableNotFoundException(nls.getFormattedMessage("INTERNAL_MESSAGING_ERROR_CWSIP0005", new Object[] { "QueuedMessage.replacedertValidControllable", "1:416:1.48", new Long(aoStream.getID()) }, null));
SibTr.exception(tc, finalE);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "replacedertValidControllable");
throw finalE;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "replacedertValidControllable");
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPControllable#getName()
*/
public String getName() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getName");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getName");
return null;
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPRemoteMessageControllable#getJsMessage()
*/
public JsMessage getJsMessage() throws SIMPControllableNotFoundException, SIMPException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getJsMessage");
replacedertValidControllable();
SIMPMessage message = null;
try {
message = getSIMPMessage();
if (message == null) {
SIMPControllableNotFoundException finalE = new SIMPControllableNotFoundException(nls.getFormattedMessage("INTERNAL_MESSAGING_ERROR_CWSIP0005", new Object[] { "TransmitMessageRequest.replacedertValidControllable", "1:169:1.48", aoStream.getID() }, null));
SibTr.exception(tc, finalE);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exception(tc, finalE);
throw finalE;
}
} catch (SIResourceException e) {
// No FFDC code needed
SIMPRuntimeOperationFailedException finalE = new SIMPRuntimeOperationFailedException(nls.getFormattedMessage("INTERNAL_MESSAGING_ERROR_CWSIP0003", new Object[] { "TransmitMessageRequest.getJsMessage", "1:187:1.48", e }, null), e);
SibTr.exception(tc, finalE);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "removeMessage", finalE);
throw finalE;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getJsMessage", message.getMessage());
return message.getMessage();
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPRemoteMessageControllable#getMEArrivalTimestamp()
*/
public long getMEArrivalTimestamp() throws SIMPControllableNotFoundException, SIMPException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getMEArrivalTimestamp");
long timestamp = getJsMessage().getCurrentMEArrivalTimestamp();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getMEArrivalTimestamp", new Long(timestamp));
return timestamp;
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.ControlAdapter#runtimeEventOccurred(com.ibm.ws.sib.admin.RuntimeEvent)
*/
public void runtimeEventOccurred(RuntimeEvent event) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "runtimeEventOccurred", event);
SibTr.exit(tc, "runtimeEventOccurred");
}
}
19
Source : TransmitMessageRequest.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPControllable#getId()
*/
public String getId() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "getId");
SibTr.exit(tc, "getId", "" + aoStream.getID());
}
return "" + aoStream.getID() + ":" + tick;
}
19
Source : TransmitMessage.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPControllable#getId()
*/
public String getId() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getId");
String id = "" + _messageID;
SibTr.exit(tc, "getId", id);
return id;
}
19
Source : TransmitMessage.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
public SIMPMessage getSIMPMessage() throws SIResourceException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getSIMPMessage");
SIMPMessage message = _msg;
if (// If committed msg, look it up
message == null)
message = _downControl.getValueMessage(_messageID);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getSIMPMessage", message);
return message;
}
19
Source : Topicspace.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPTopicSpaceControllable#getLocalSubscriptionIterator()
*/
public SIMPIterator getLocalSubscriptionIterator() throws SIMPException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getLocalSubscriptionIterator");
replacedertMessageHandlerNotCorrupt();
SubscriptionTypeFilter filter = new SubscriptionTypeFilter();
filter.LOCAL = Boolean.TRUE;
SIMPIterator itr = new ControllableIterator(getSubscriptionIndex().iterator(filter));
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getLocalSubscriptionIterator", itr);
return itr;
}
19
Source : Topicspace.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPTopicSpaceControllable#getAttachedRemoteSubscriberIterator()
*/
public SIMPIterator getAttachedRemoteSubscriberIterator() throws SIMPException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getAttachedRemoteSubscriberIterator");
replacedertMessageHandlerNotCorrupt();
Collection anycastInputHandlers = baseDest.getPseudoDurableAIHMap().values();
AttachedRemoteSubscriberIterator remoteSubscriberItr = new AttachedRemoteSubscriberIterator(anycastInputHandlers);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getAttachedRemoteSubscriberIterator", remoteSubscriberItr);
return remoteSubscriberItr;
}
19
Source : Topicspace.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/**
* Gets and returns the subscription based on the id.
* @param id
* @return
* @throws SIMPControllableNotFoundException
*/
private ControllableSubscription getSubscription(String id) throws SIMPControllableNotFoundException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getSubscription", id);
// id is replacedumed to be SIBUuid12
SIBUuid12 uuid = new SIBUuid12(id);
SubscriptionTypeFilter filter = new SubscriptionTypeFilter();
filter.LOCAL = Boolean.TRUE;
ControllableSubscription sub = getSubscriptionIndex().findByUuid(uuid, filter);
// If the sub is null, throw an exception
if (sub == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getLocalSubscriptionControlByID", "SIMPControllableNotFoundException");
throw new SIMPControllableNotFoundException(nls.getFormattedMessage("SUBSCRIPTION_NOT_FOUND_ERROR_CWSIP0271", new Object[] { id }, null));
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getSubscription", sub);
return sub;
}
19
Source : Topicspace.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
public SIMPLocalSubscriptionControllable getLocalSubscriptionControlByID(String id) throws SIMPInvalidRuntimeIDException, SIMPControllableNotFoundException, SIMPException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getLocalSubscriptionControlByID", id);
replacedertMessageHandlerNotCorrupt();
ControllableSubscription sub = getSubscription(id);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getLocalSubscriptionControlByID", sub.getControlAdapter());
return (SIMPLocalSubscriptionControllable) sub.getControlAdapter();
}
19
Source : Topicspace.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPTopicSpaceControllable#getRemoteTopicSpaceControlByID(java.lang.String)
*/
public SIMPRemoteTopicSpaceControllable getRemoteTopicSpaceControlByID(String id) throws SIMPControllableNotFoundException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getRemoteTopicSpaceControlByID", id);
SIMPIterator remoteTopicSpaces = this.getRemoteTopicSpaceIterator();
RemoteTopicSpaceControl returnControl = null;
while (remoteTopicSpaces.hasNext()) {
RemoteTopicSpaceControl topicSpace = (RemoteTopicSpaceControl) remoteTopicSpaces.next();
if (topicSpace.getId().equals(id)) {
returnControl = topicSpace;
}
}
if (returnControl == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getRemoteTopicSpaceControlByID", "SIMPControllableNotFoundException");
throw new SIMPControllableNotFoundException(nls.getFormattedMessage("SUBSCRIPTION_NOT_FOUND_ERROR_CWSIP0271", new Object[] { id }, null));
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getRemoteTopicSpaceControlByID", returnControl);
return returnControl;
}
19
Source : Topicspace.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPTopicSpaceControllable#getLocalTopicSpaceIterator()
*/
public SIMPLocalTopicSpaceControllable getLocalTopicSpaceControl() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getLocalTopicSpaceControl");
SIMPLocalTopicSpaceControllable control = null;
PubSubMessageItemStream is = baseDest.getPublishPoint();
if (is != null) {
control = (SIMPLocalTopicSpaceControllable) is.getControlAdapter();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getLocalTopicSpaceControl", control);
return control;
}
19
Source : Topicspace.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPTopicSpaceControllable#getLocalSubscriptionIterator()
*/
protected SIMPIterator getDurableSubscriptionIterator() throws SIMPException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getDurableSubscriptionIterator");
replacedertMessageHandlerNotCorrupt();
SubscriptionTypeFilter filter = new SubscriptionTypeFilter();
filter.DURABLE = Boolean.TRUE;
SIMPIterator itr = new ControllableIterator(getSubscriptionIndex().iterator(filter));
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getDurableSubscriptionIterator", itr);
return itr;
}
19
Source : Topicspace.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPTopicSpaceControllable#getLocalSubscriptionIterator()
*/
protected SIMPIterator getInternalLocalSubscriptionIterator() throws SIMPException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getInternalLocalSubscriptionIterator");
replacedertMessageHandlerNotCorrupt();
SubscriptionTypeFilter filter = new SubscriptionTypeFilter();
filter.LOCAL = Boolean.TRUE;
SIMPIterator itr = new BasicSIMPIterator(getSubscriptionIndex().iterator(filter));
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getInternalLocalSubscriptionIterator", itr);
return itr;
}
19
Source : TargetStreamSetControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
public void setTargetStreamManager(TargetStreamManager tsm) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setTargetStreamManager", tsm);
// yuk - nasty hack! Would rather have set this in the constructor
this.tsm = tsm;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "setTargetStreamManager");
}
19
Source : TargetStreamSetControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPControllable#getId()
*/
public String getId() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getId");
String returnString = streamID.toString();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getId", returnString);
return returnString;
}
19
Source : TargetStreamSetControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.ControlAdapter#replacedertValidControllable()
*/
public void replacedertValidControllable() throws SIMPControllableNotFoundException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "replacedertValidControllable");
if (streamSet == null || tsm == null) {
SIMPControllableNotFoundException finalE = new SIMPControllableNotFoundException(nls.getFormattedMessage("INTERNAL_MESSAGING_ERROR_CWSIP0002", new Object[] { "TargetStreamSetControl.replacedertValidControllable", "1:325:1.16", streamID }, null));
SibTr.exception(tc, finalE);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "replacedertValidControllable", finalE);
throw finalE;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "replacedertValidControllable");
}
19
Source : TargetStreamSetControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.ControlAdapter#dereferenceControllable()
*/
public void dereferenceControllable() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "dereferenceControllable", tsm);
streamSet = null;
tsm = null;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "dereferenceControllable");
}
19
Source : TargetStreamControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPDeliveryStreamReceiverControllable#getPriority
*/
public int getPriority() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getPriority");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getPriority", new Integer(_priority));
return _priority;
}
19
Source : TargetStreamControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPDeliveryStreamReceiverControllable#getReliability
*/
public Reliability getReliability() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getReliability");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getReliability", _targetStreamReliability);
return _targetStreamReliability;
}
19
Source : TargetStreamControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPControllable#getId()
*/
public String getId() {
String returnValue = _targetStream.getID();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getId", returnValue);
return returnValue;
}
19
Source : TargetStreamControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.SIMPDeliveryReceiverControllable#getStreamID
*/
public SIBUuid12 getStreamID() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getStreamID");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getStreamID", _streamSetID);
return _streamSetID;
}
19
Source : TargetStreamControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
public String getRemoteEngineUuid() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "getRemoteEngineUuid");
SibTr.exit(tc, "getRemoteEngineUuid", _remoteEngineUUID);
}
return _remoteEngineUUID.toString();
}
19
Source : TargetStreamControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
public HealthStateListener getHealthState() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "getHealthState");
SibTr.exit(tc, "getHealthState", _healthState);
}
return (HealthStateListener) _healthState;
}
19
Source : TargetStreamControl.java
with Eclipse Public License 1.0
from OpenLiberty
with Eclipse Public License 1.0
from OpenLiberty
/* (non-Javadoc)
* @see com.ibm.ws.sib.processor.runtime.ControlAdapter#replacedertValidControllable()
*/
public void replacedertValidControllable() throws SIMPControllableNotFoundException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "replacedertValidControllable");
if (_targetStream == null || _streamSetID == null || _targetStreamReliability == null) {
SIMPControllableNotFoundException finalE = new SIMPControllableNotFoundException(nls.getFormattedMessage("INTERNAL_MESSAGING_ERROR_CWSIP0002", new Object[] { "TargetStreamControl.replacedertValidControllable", "1:228:1.32", _streamSetID }, null));
SibTr.exception(tc, finalE);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "replacedertValidControllable", finalE);
throw finalE;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "replacedertValidControllable");
}
See More Examples